[BUGFIX] Option labels not translated anymore 57/28657/2
authorFrancois Suter <francois@typo3.org>
Sun, 23 Mar 2014 09:46:11 +0000 (10:46 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 23 Mar 2014 10:26:55 +0000 (11:26 +0100)
The configuration options labels are not translated anymore
in the Extension Manger.

This is due to a recent refactoring, which encapsulated
the translation process in a separate method,
but forgot to return the translated value.

Resolves: #57198
Releases: 6.2
Change-Id: Ib0051225860c408b00827bf7212835beafbbd2fa
Reviewed-on: https://review.typo3.org/28657
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/extensionmanager/Classes/Domain/Repository/ConfigurationItemRepository.php

index dbd6930..bd37712 100644 (file)
@@ -267,9 +267,11 @@ class ConfigurationItemRepository {
         * @return string|NULL The value from LOCAL_LANG or NULL if no translation was found.
         */
        protected function translate($key, $extensionName) {
+               $translation = NULL;
                if (\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, $extensionName)) {
-                       $configurationOption['label'] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, $extensionName);
+                       $translation = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, $extensionName);
                }
+               return $translation;
        }
 
 }
\ No newline at end of file