From e5b462a0923b4cd9dfa34a862ccff17dfd4ad460 Mon Sep 17 00:00:00 2001
From: Frederic Gaus <gaus@flagbit.de>
Date: Fri, 6 Feb 2015 08:56:40 +0100
Subject: [PATCH] [TASK] Recycler: Rename table to record type

Rename label "table" to "record type" in recycler

Change-Id: I81226203e3bcb705320563bc508d74f69d8142c1
Resolves: #43368
Releases: master
Reviewed-on: http://review.typo3.org/36710
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 typo3/sysext/recycler/Classes/Domain/Model/Tables.php    | 2 +-
 .../recycler/Resources/Private/Language/locallang.xlf    | 9 ++++++---
 .../Private/Partials/RecordsTable/DeletedRecord.html     | 4 ++--
 .../Private/Templates/RecyclerModule/Index.html          | 2 +-
 .../recycler/Resources/Public/JavaScript/Recycler.js     | 2 +-
 5 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/typo3/sysext/recycler/Classes/Domain/Model/Tables.php b/typo3/sysext/recycler/Classes/Domain/Model/Tables.php
index 108a6d9f4406..4bc6af6f7607 100644
--- a/typo3/sysext/recycler/Classes/Domain/Model/Tables.php
+++ b/typo3/sysext/recycler/Classes/Domain/Model/Tables.php
@@ -60,7 +60,7 @@ class Tables {
 		array_unshift($jsonArray, array(
 			'',
 			$deletedRecordsTotal,
-			$lang->sL('LLL:EXT:recycler/mod1/locallang.xlf:label_alltables')
+			$lang->sL('LLL:EXT:recycler/mod1/locallang.xlf:label_allrecordtypes')
 		));
 		return $jsonArray;
 	}
diff --git a/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf b/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf
index 9c786c3bd073..84216198d91d 100644
--- a/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf
+++ b/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf
@@ -9,9 +9,12 @@
 			<trans-unit id="description" xml:space="preserve">
 				<source>The recycler allows you to select any deleted data and undelete it. You can undelete recursive if the parent of the element is deleted too.</source>
 			</trans-unit>
-			<trans-unit id="label_alltables" xml:space="preserve">
+			<trans-unit id="label_alltables" xml:space="preserve" deprecated="Unused since CMS 7">
 				<source>All tables</source>
 			</trans-unit>
+			<trans-unit id="label_allrecordtypes" xml:space="preserve">
+				<source>All Record Types</source>
+			</trans-unit>
 			<trans-unit id="button.cancel" xml:space="preserve">
 				<source>Cancel</source>
 			</trans-unit>
@@ -102,8 +105,8 @@
 			<trans-unit id="table.header.actions" xml:space="preserve">
 				<source>Actions</source>
 			</trans-unit>
-			<trans-unit id="table.header.table" xml:space="preserve">
-				<source>Table</source>
+			<trans-unit id="table.header.recordtype" xml:space="preserve">
+				<source>Record Type</source>
 			</trans-unit>
 			<trans-unit id="table.header.tstamp" xml:space="preserve">
 				<source>Last edit</source>
diff --git a/typo3/sysext/recycler/Resources/Private/Partials/RecordsTable/DeletedRecord.html b/typo3/sysext/recycler/Resources/Private/Partials/RecordsTable/DeletedRecord.html
index 16ce89fcb77b..5337ea19962f 100644
--- a/typo3/sysext/recycler/Resources/Private/Partials/RecordsTable/DeletedRecord.html
+++ b/typo3/sysext/recycler/Resources/Private/Partials/RecordsTable/DeletedRecord.html
@@ -29,7 +29,7 @@
 		<table class="table">
 			<thead>
 				<tr>
-					<th><f:translate key="LLL:EXT:recycler/Resources/Private/Language/locallang.xlf:table.header.table" /></th>
+					<th><f:translate key="LLL:EXT:recycler/Resources/Private/Language/locallang.xlf:table.header.recordtype" /></th>
 					<th><f:translate key="LLL:EXT:recycler/Resources/Private/Language/locallang.xlf:table.header.crdate" /></th>
 					<th><f:translate key="LLL:EXT:recycler/Resources/Private/Language/locallang.xlf:table.header.owner" /></th>
 					<th><f:translate key="LLL:EXT:recycler/Resources/Private/Language/locallang.xlf:table.header.path" /></th>
@@ -45,4 +45,4 @@
 			</tbody>
 		</table>
 	</td>
-</tr>
\ No newline at end of file
+</tr>
diff --git a/typo3/sysext/recycler/Resources/Private/Templates/RecyclerModule/Index.html b/typo3/sysext/recycler/Resources/Private/Templates/RecyclerModule/Index.html
index f6ac036e104d..d37e0ba7939c 100644
--- a/typo3/sysext/recycler/Resources/Private/Templates/RecyclerModule/Index.html
+++ b/typo3/sysext/recycler/Resources/Private/Templates/RecyclerModule/Index.html
@@ -28,7 +28,7 @@
 				<thead>
 					<tr>
 						<th><f:translate key="table.header.actions" /></th>
-						<th><f:translate key="table.header.table" /></th>
+						<th><f:translate key="table.header.recordtype" /></th>
 						<th><f:translate key="table.header.record" /></th>
 						<th><f:translate key="table.header.tstamp" /></th>
 						<th><f:translate key="table.header.uid" /></th>
diff --git a/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js b/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js
index 286b5fae3995..da207c5f1da2 100644
--- a/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js
+++ b/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js
@@ -269,7 +269,7 @@ define(['jquery', 'nprogress', 'jquery/jquery.clearable'], function($, NProgress
 						tableDescription = value[2];
 
 					if (tableDescription === '') {
-						tableDescription = TYPO3.lang['label_alltables'];
+						tableDescription = TYPO3.lang['label_allrecordtypes'];
 					}
 					var optionText = tableDescription + ' (' + deletedRecords + ')';
 					tables.push($('<option />').val(tableName).text(optionText))
-- 
GitLab