Browse Source

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

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
b464125950
  1. 2
      framework/yii/i18n/I18N.php

2
framework/yii/i18n/I18N.php

@ -161,7 +161,7 @@ class I18N extends Component
protected function getPluralRules($language)
{
if (isset($this->_pluralRules[$language])) {
return $this->_pluralRules;
return $this->_pluralRules[$language];
}
$allRules = require(Yii::getAlias($this->pluralRuleFile));
if (isset($allRules[$language])) {

Loading…
Cancel
Save