From 328f84d5cc66a57714dee07b07cf0c5fccb7f29c Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Mon, 29 Dec 2008 23:03:39 +0000 Subject: [PATCH] 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 --- src/messenger/webim/libs/common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index ed24e8fe..96623c9e 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -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; }