mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:38:54 +01:00
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:
parent
057a08f866
commit
71b71ac7c4
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user