Fixed bug #13015: Available languages are ordered by name in english and not in selec...
authorXavier Perseguers <typo3@perseguers.ch>
Sun, 13 Dec 2009 19:12:03 +0000 (19:12 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Sun, 13 Dec 2009 19:12:03 +0000 (19:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6666 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_index.php

index c79bc4d..0357ca6 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-12-13  Xavier Perseguers  <typo3@perseguers.ch>
 
+       * Fixed bug #13015: Available languages are ordered by name in english and not in selected language (thanks to Georg Ringer)
        * Fixed bug #13003: Move back methods belonging to t3lib_sqlparser
 
 2009-12-12  Xavier Perseguers  <typo3@perseguers.ch>
index e199763..3dd849a 100644 (file)
@@ -1259,7 +1259,7 @@ EXTENSION KEYS:
                        if ($val!='default')    {
                                $localLabel = '  -  ['.htmlspecialchars($GLOBALS['LOCAL_LANG']['default']['lang_'.$val]).']';
                                $selected = (is_array($selectedLanguages) && in_array($val, $selectedLanguages)) ? ' selected="selected"' : '';
-                               $opt[$GLOBALS['LOCAL_LANG']['default']['lang_'.$val].'--'.$val]='
+                               $opt[$GLOBALS['LANG']->getLL('lang_' . $val, 1) . '--' . $val] = '
                         <option value="'.$val.'"'.$selected.'>'.$LANG->getLL('lang_'.$val,1).$localLabel.'</option>';
                        }
                }