issue 496 when lang change to english, cmd_save lang still showed korean lang

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9657 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-10-17 05:09:12 +00:00
parent ed69e96191
commit f592979ce5

View file

@ -505,10 +505,9 @@ class Context {
}
function _loadPhpLang($path) {
if(substr($path,-1)!='/') $path .= '/';
$path_tpl = $path.'%s.lang.php';
$file = sprintf($path_tpl, $self->lang_type);
$file = sprintf($path_tpl, $this->lang_type);
$langs = array('ko','en'); // this will be configurable.
while(!is_readable($file) && $langs[0]) {