[BUGFIX] CSH labels are always in English
[Packages/TYPO3.CMS.git] / typo3 / sysext / lang / lang.php
index 214f1e6..8f5f8c6 100755 (executable)
@@ -449,11 +449,12 @@ class language {
                                                }
 
                                                        // Append label
+                                               $label = $lVal[0]['target'] ?: $lVal[0]['source'];
                                                if ($specialInstruction) {
-                                                       $GLOBALS['TCA_DESCR'][$table]['columns'][$fieldName][$type] .= LF . $lVal[0]['source'];
+                                                       $GLOBALS['TCA_DESCR'][$table]['columns'][$fieldName][$type] .= LF . $label;
                                                } else {
                                                                // Substitute label
-                                                       $GLOBALS['TCA_DESCR'][$table]['columns'][$fieldName][$type] = $lVal[0]['source'];
+                                                       $GLOBALS['TCA_DESCR'][$table]['columns'][$fieldName][$type] = $label;
                                                }
                                        }
                                }