Skip to content

Commit

Permalink
Merge pull request #4 from sitegeist/typo3-10.1
Browse files Browse the repository at this point in the history
[BUGFIX] Remove LLL:EXT: prefix from labels with full path in transla…
  • Loading branch information
galoppi authored Oct 2, 2019
2 parents 4899418 + b0ab91c commit dc65d06
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Utility/TranslationLabelUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit dc65d06

Please sign in to comment.