From 63f9426aa7c5491615adeeab3995ac9228fc05b5 Mon Sep 17 00:00:00 2001
From: Sybille Peters <sypets@gmx.de>
Date: Sun, 19 Dec 2021 01:46:24 +0100
Subject: [PATCH] [TASK] Remove unused language labels
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

In a previous patch, some language labels were unified in
EXT:redirects to that the same label was used for each
field in the list module as well as in the edit view.

Due to this some of the labels have become redundant and
are now removed.

Resolves: #96015
Related: #95832
Releases: main
Change-Id: I2fd9c650dcca0aea81999a3de2b427895984c70f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72708
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Benni Mack <benni@typo3.org>
---
 .../Language/locallang_module_redirect.xlf     | 18 ------------------
 .../Private/Templates/Management/Overview.html |  2 +-
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/typo3/sysext/redirects/Resources/Private/Language/locallang_module_redirect.xlf b/typo3/sysext/redirects/Resources/Private/Language/locallang_module_redirect.xlf
index 0fea76af16f6..2934246f83df 100644
--- a/typo3/sysext/redirects/Resources/Private/Language/locallang_module_redirect.xlf
+++ b/typo3/sysext/redirects/Resources/Private/Language/locallang_module_redirect.xlf
@@ -45,9 +45,6 @@
 			<trans-unit id="filter.source_host.showAll" resname="filter.source_host.showAll">
 				<source>Show All</source>
 			</trans-unit>
-			<trans-unit id="filter.destination" resname="filter.destination">
-				<source>Destination (Path or Page ID)</source>
-			</trans-unit>
 			<trans-unit id="filter.targetStatusCode" resname="filter.targetStatusCode">
 				<source>Status Code</source>
 			</trans-unit>
@@ -64,27 +61,15 @@
 			<trans-unit id="record_disabled" resname="record_disabled">
 				<source>Redirect is not activated!</source>
 			</trans-unit>
-			<trans-unit id="source_host" resname="source_host">
-				<source>Source Host</source>
-			</trans-unit>
-			<trans-unit id="source_path" resname="source_path">
-				<source>Source Path</source>
-			</trans-unit>
 			<trans-unit id="source_path.placeholder" resname="source_path.placeholder">
 				<source>/my-path/ or #^/my-path/$# (when regex enabled)</source>
 			</trans-unit>
-			<trans-unit id="destination" resname="destination">
-				<source>Destination</source>
-			</trans-unit>
 			<trans-unit id="pageID" resname="pageID">
 				<source>Page ID</source>
 			</trans-unit>
 			<trans-unit id="destination_status_code" resname="destination_status_code">
 				<source>Status Code</source>
 			</trans-unit>
-			<trans-unit id="hits" resname="hits">
-				<source># Hits</source>
-			</trans-unit>
 			<trans-unit id="hit_text" resname="hit_text">
 				<source>%s hit</source>
 			</trans-unit>
@@ -100,9 +85,6 @@
 			<trans-unit id="hit_reset.confirm.content" resname="hit_reset.confirm.content">
 				<source>Are you sure you want to reset the hitcounter of this record?</source>
 			</trans-unit>
-			<trans-unit id="hit_last" resname="hit_last">
-				<source>Last Hit on</source>
-			</trans-unit>
 			<trans-unit id="hit_last_never" resname="hit_last_never">
 				<source>Never</source>
 			</trans-unit>
diff --git a/typo3/sysext/redirects/Resources/Private/Templates/Management/Overview.html b/typo3/sysext/redirects/Resources/Private/Templates/Management/Overview.html
index 6d1d8123f0f0..68b63c435be3 100644
--- a/typo3/sysext/redirects/Resources/Private/Templates/Management/Overview.html
+++ b/typo3/sysext/redirects/Resources/Private/Templates/Management/Overview.html
@@ -186,7 +186,7 @@
                 </select>
             </div>
             <div class="col">
-                <label for="demand-source-path" class="form-label"><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_path"/></label>
+                <label for="demand-source-path" class="form-label"><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.source_path"/></label>
                 <input type="text" id="demand-source-path" class="form-control" name="demand[source_path]" value="{demand.sourcePath}"/>
             </div>
             <div class="col">
-- 
GitLab