Commit b4641259 by Qiang Xue

Fixes issue #592: I18N t() plural forms possibly broken

parent 452fe3e3
...@@ -161,7 +161,7 @@ class I18N extends Component ...@@ -161,7 +161,7 @@ class I18N extends Component
protected function getPluralRules($language) protected function getPluralRules($language)
{ {
if (isset($this->_pluralRules[$language])) { if (isset($this->_pluralRules[$language])) {
return $this->_pluralRules; return $this->_pluralRules[$language];
} }
$allRules = require(Yii::getAlias($this->pluralRuleFile)); $allRules = require(Yii::getAlias($this->pluralRuleFile));
if (isset($allRules[$language])) { if (isset($allRules[$language])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment