diff --git a/docs/guide/i18n.md b/docs/guide/i18n.md index f2609b5..d772702 100644 --- a/docs/guide/i18n.md +++ b/docs/guide/i18n.md @@ -289,7 +289,7 @@ Examples ###Translating module messages -If you want to translate messages for module and you dont use one translation file for all messages, you can make it like following: +If you want to translate messages for a module and avoid using a single translation file for all messages, you can make it like the following: ```php i18n; - $i18n->translations['modules/users/*'] = [ + Yii::$app->i18n->translations['modules/users/*'] = [ 'class' => 'yii\i18n\PhpMessageSource', 'sourceLanguage' => 'en', 'basePath' => '@app/modules/users/messages',