Commit 618f9811 by Alexander Makarov

Renamed i18n to be all lowecase when accessed as a property

parent bcc0cbeb
......@@ -541,7 +541,7 @@ class BaseYii
public static function t($category, $message, $params = array(), $language = null)
{
if (self::$app !== null) {
return self::$app->getI18N()->translate($category, $message, $params, $language ?: self::$app->language);
return self::$app->getI18n()->translate($category, $message, $params, $language ?: self::$app->language);
} else {
return is_array($params) ? strtr($message, $params) : $message;
}
......
......@@ -383,7 +383,7 @@ abstract class Application extends Module
* Returns the internationalization (i18n) component
* @return \yii\i18n\I18N the internationalization component
*/
public function getI18N()
public function getI18n()
{
return $this->getComponent('i18n');
}
......
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