Avoid reparsing locale definition file.

This commit is contained in:
ADmad 2013-08-27 04:04:39 +05:30
parent f750c7d943
commit fc47bf9e1d

View file

@ -326,7 +326,7 @@ class I18n {
if (is_file($localeDef)) { if (is_file($localeDef)) {
$definitions = self::loadLocaleDefinition($localeDef); $definitions = self::loadLocaleDefinition($localeDef);
if ($definitions !== false) { if ($definitions !== false) {
$this->_domains[$domain][$this->_lang][$this->category] = self::loadLocaleDefinition($localeDef); $this->_domains[$domain][$this->_lang][$this->category] = $definitions;
$this->_noLocale = false; $this->_noLocale = false;
return $domain; return $domain;
} }