mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
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:
parent
71dc9533bd
commit
328f84d5cc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user