From 39ab28c13fe551aa6e257b03fb093b27d6dac5e9 Mon Sep 17 00:00:00 2001 From: ste101 Date: Wed, 4 Aug 2021 11:14:57 +0200 Subject: [PATCH 1/3] Use plugin name from locallang for easier translation --- .../Extbase/Configuration/TCA/Overrides/tt_content.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt b/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt index b1bf69a3d..016bb60a2 100644 --- a/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt +++ b/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt @@ -4,7 +4,7 @@ defined('TYPO3_MODE') || die(); \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( '{extension.extensionName}', - '{plugin.key}', + 'LLL:EXT:{extension.extensionName}/Resources/Private/Language/locallang_db.xlf:tx_{extension.extensionName}_{plugin.key}.name', '{plugin.name}' ); From 5b3446852a852bb552d50e297c8d2f5cfd962928 Mon Sep 17 00:00:00 2001 From: ste101 Date: Wed, 4 Aug 2021 11:18:42 +0200 Subject: [PATCH 2/3] Adjust test --- .../test_extension/Configuration/TCA/Overrides/tt_content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Fixtures/TestExtensions/test_extension/Configuration/TCA/Overrides/tt_content.php b/Tests/Fixtures/TestExtensions/test_extension/Configuration/TCA/Overrides/tt_content.php index f6d61356c..d4f0fdd7a 100644 --- a/Tests/Fixtures/TestExtensions/test_extension/Configuration/TCA/Overrides/tt_content.php +++ b/Tests/Fixtures/TestExtensions/test_extension/Configuration/TCA/Overrides/tt_content.php @@ -4,5 +4,5 @@ \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'TestExtension', 'Testplugin', - 'Test plugin' + 'LLL:EXT:testExtension/Resources/Private/Language/locallang_db.xlf:tx_testExtension_testplugin.name' ); From d65560ea4dad1d4831c9fa702ffdd1701e3b5712 Mon Sep 17 00:00:00 2001 From: ste101 Date: Wed, 4 Aug 2021 11:22:21 +0200 Subject: [PATCH 3/3] Update tt_content.phpt --- .../Extbase/Configuration/TCA/Overrides/tt_content.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt b/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt index 016bb60a2..65ed678dd 100644 --- a/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt +++ b/Resources/Private/CodeTemplates/Extbase/Configuration/TCA/Overrides/tt_content.phpt @@ -4,7 +4,7 @@ defined('TYPO3_MODE') || die(); \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( '{extension.extensionName}', - 'LLL:EXT:{extension.extensionName}/Resources/Private/Language/locallang_db.xlf:tx_{extension.extensionName}_{plugin.key}.name', - '{plugin.name}' + '{plugin.key}', + 'LLL:EXT:{extension.extensionName}/Resources/Private/Language/locallang_db.xlf:tx_{extension.extensionName}_{plugin.key}.name' );