show english message when absent in current locale

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@259 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2008-12-29 23:03:39 +00:00
parent 71dc9533bd
commit 328f84d5cc

View File

@ -165,6 +165,9 @@ function getstring_($text,$locale) {
$localized = $messages[$locale];
if( isset($localized[$text]) )
return $localized[$text];
if( $locale != 'en' ) {
return getstring_($text,'en');
}
return "!".$text;
}