"fix loginscreen-message (was depending on * for not existing)"

This commit is contained in:
Ralf Becker 2007-05-17 19:04:02 +00:00
parent b29095430d
commit 7f8b7fb92f

View File

@ -311,11 +311,11 @@
$GLOBALS['egw']->translation->init(); // this will set the language according to the (new) set prefs
$GLOBALS['egw']->translation->add_app('login');
$GLOBALS['egw']->translation->add_app('loginscreen');
if(lang('loginscreen_message') == 'loginscreen_message*')
if($GLOBALS['egw']->translation->translate('loginscreen_message',false,'') == 'loginscreen_message')
{
$GLOBALS['egw']->translation->add_app('loginscreen','en'); // trying the en one
}
if(lang('loginscreen_message') != 'loginscreen_message*')
if($GLOBALS['egw']->translation->translate('loginscreen_message',false,'') != 'loginscreen_message')
{
// for now store login message in globals so it is available for the login.inc.php
$GLOBALS['loginscreenmessage']=stripslashes(lang('loginscreen_message'));