Fixed bug #12032: The message "The selected language is not available..." in EM tranl...
authorRupert Germann <rupi@gmx.li>
Tue, 29 Sep 2009 21:42:31 +0000 (21:42 +0000)
committerRupert Germann <rupi@gmx.li>
Tue, 29 Sep 2009 21:42:31 +0000 (21:42 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6071 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/setup/mod/index.php

index 184e382..c452470 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 
        * Added feature #9355: Add an error and exception handler (backported from FLOW3) (thanks to Ingo Renner)
        * Added improvement #11855: security related links in EM are not marked as links.
+       * Fixed bug #12032: The message "The selected language is not available..." in EM tranlation handling wrong if no language can be chosen (Thanks to Georg Ringer)
 
 2009-09-29  Oliver Hader  <oliver@typo3.org>
 
index c67cdfd..3796a17 100755 (executable)
@@ -631,8 +631,10 @@ class SC_mod_user_setup_index {
                                <select id="field_lang" name="data[lang]" class="select">' .
                                        implode('', $languageOptions) . '
                                </select>';
-               if ($GLOBALS['BE_USER']->uc['lang'] && !@is_dir(PATH_typo3conf . 'l10n/' . $GLOBALS['BE_USER']->uc['lang'])) {
-                       $languageUnavailableWarning = 'The selected language is not available before the language pack is installed.<br />'
+               if ( $GLOBALS['BE_USER']->uc['lang'] && !@is_dir(PATH_typo3conf . 'l10n/' . $GLOBALS['BE_USER']->uc['lang'])) {
+                       $languageUnavailableWarning = 'The selected language "' 
+                               . $GLOBALS['LANG']->getLL('lang_' . $GLOBALS['BE_USER']->uc['lang'], 1) 
+                               . '" is not available before the language pack is installed.<br />'
                                . ($GLOBALS['BE_USER']->isAdmin() ?
                                        'You can use the Extension Manager to easily download and install new language packs.'
                                :       'Please ask your system administrator to do this.');