From d4f8db500ba68684173736df78f87488c278425d Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 2 Feb 2014 14:46:40 +0400 Subject: [PATCH] docs improved --- docs/guide/i18n.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guide/i18n.md b/docs/guide/i18n.md index c6953a4..463f761 100644 --- a/docs/guide/i18n.md +++ b/docs/guide/i18n.md @@ -356,7 +356,8 @@ class Module extends \yii\base\Module } ``` -In the example above we are using wildcard for matching and then filtering each category per needed file. +In the example above we are using wildcard for matching and then filtering each category per needed file. Instead of using `fileMap` you can simply +use convention of category mapping to the same named file and use `Module::t('validation')` or `Module::t('form)` directly. ###Translating widgets messages @@ -405,6 +406,8 @@ class Menu extends Widget } ``` +Instead of using `fileMap` you can simply use convention of category mapping to the same named file and use `Menu::t('messages')` directly. + > **Note**: For widgets you also can use i18n views, same rules as for controllers are applied to them too. TBD: provided classes overview.