From 71b71ac7c4d2eacc3166cc12c6794524eff22454 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 1 Oct 2010 14:15:47 +0000 Subject: [PATCH] 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 --- home/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/index.php b/home/index.php index 4b32c1e41e..b2b0813362 100755 --- a/home/index.php +++ b/home/index.php @@ -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 '
' . lang('mainscreen_message') . "
\n"; }