enable the fallback to english mainscreen_message as default/fallback, if there is no mainscreen_message defined for your language. Make sure there is one, if you want that. You may have to clear the egw_cache, to get this thing working, as caching languages as we do, makes this one a hard case

This commit is contained in:
Klaus Leithoff 2010-10-01 14:15:47 +00:00
parent 057a08f866
commit 71b71ac7c4

View File

@ -78,7 +78,11 @@
** Display the mainscreen message
*/
$GLOBALS['egw']->translation->add_app('mainscreen');
if((lang('mainscreen_message') != 'mainscreen_message*') && (lang('mainscreen_message') != 'mainscreen_message'))
if(translation::translate('mainscreen_message',false,'') == 'mainscreen_message')
{
translation::add_app('mainscreen','en'); // trying the en one
}
if(translation::translate('mainscreen_message',false,'') != 'mainscreen_message')
{
echo '<div style="text-align: center;">' . lang('mainscreen_message') . "</div>\n";
}