mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +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
5d17c31867
commit
1d9ff72ba5
@ -78,7 +78,11 @@
|
|||||||
** Display the mainscreen message
|
** Display the mainscreen message
|
||||||
*/
|
*/
|
||||||
$GLOBALS['egw']->translation->add_app('mainscreen');
|
$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";
|
echo '<div style="text-align: center;">' . lang('mainscreen_message') . "</div>\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user