[BUGFIX] Fix undefined language labels 37/38337/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 29 Mar 2015 15:26:37 +0000 (17:26 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Sun, 29 Mar 2015 15:31:18 +0000 (17:31 +0200)
Resolves: #66121
Releases: master
Change-Id: Iedf8e66b7991e1a67cf690596812f84676786718
Reviewed-on: http://review.typo3.org/38337
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/lang/Resources/Public/JavaScript/Lang.js

index 15fd8c7..bef5e38 100644 (file)
@@ -23,7 +23,7 @@ define('TYPO3/CMS/Lang/Lang', ['jquery'], function($) {
                var originalLangObject = $.extend(true, {}, TYPO3.lang);
                TYPO3.lang = [];
                $.each(originalLangObject, function(index, value) {
-                       TYPO3.lang[index] = value[0].target || value[0].source;
+                       TYPO3.lang[index] = value[0].target || value[0].source || value;
                });
 
                delete originalLangObject;