From b0ab91c3d3fbbcc957be20719d2dc356d08cecec Mon Sep 17 00:00:00 2001 From: Alexander Bohndorf Date: Wed, 2 Oct 2019 18:35:59 +0200 Subject: [PATCH] [BUGFIX] Remove LLL:EXT: prefix from labels with full path in translate view-helper --- Classes/Utility/TranslationLabelUtility.php | 2 +- Readme.md | 8 ++++++++ composer.json | 2 +- ext_emconf.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Classes/Utility/TranslationLabelUtility.php b/Classes/Utility/TranslationLabelUtility.php index 265415b..1a88233 100644 --- a/Classes/Utility/TranslationLabelUtility.php +++ b/Classes/Utility/TranslationLabelUtility.php @@ -196,7 +196,7 @@ public static function getExtendLabelKeyWithLanguageFilePath($labelKey, $extensi // $extendedLabelKey = 'LLL:EXT:' . self::getDefaultLanguageFile($extensionName) . ':' . $labelKey; $extendedLabelKey = self::getDefaultLanguageFile($extensionName) . ':' . $labelKey; } - return $extendedLabelKey; + return self::getLabelKeyWithoutPrefixes($extendedLabelKey); } public static function getLabelKeyWithoutPrefixes($labelKey) diff --git a/Readme.md b/Readme.md index f195b29..114a56c 100644 --- a/Readme.md +++ b/Readme.md @@ -98,6 +98,14 @@ Without this patch TYPO3 is not able to create translations of label records having the same key as their related record in the default language. +## Change Log + +| translatelabels | TYPO3 | Changes | +| --------------- | ----- | --------| +| 1.0.x | 9.5.x | Initial release | +| 1.1.x | 9.5.x | Removed LLL:EXT: prefix from label keys | +| 2.0.x | 10.1.x | Compatibility for TYPO3 10.1 | + ## How to activate for BE users 1. [Enable admin panel for BE users.](https://docs.typo3.org/m/typo3/reference-tsconfig/9.5/en-us/UserTsconfig/AdmPanel.html) diff --git a/composer.json b/composer.json index 93f7c34..5e277b7 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "sitegeist/translatelabels", "type": "typo3-cms-extension", "description": "", - "version": "2.0.0", + "version": "2.0.1", "license": ["GPL-2.0-or-later"], "authors": [ { diff --git a/ext_emconf.php b/ext_emconf.php index fb9ec33..e52469e 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -10,7 +10,7 @@ 'uploadfolder' => 0, 'createDirs' => '', 'clearCacheOnLoad' => 0, - 'version' => '2.0.0', + 'version' => '2.0.1', 'constraints' => [ 'depends' => [ 'typo3' => '10.0.0-10.1.99',