@@ -393,12 +398,13 @@ class Module extends \yii\base\Module
}
```
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', 'your custom validation message')` or `Module::t('form', 'some form label')` directly.
The same rule as applied for Modules above can be applied for widgets too, for example:
モジュールに適用できる同じ規則をウィジェットにも適用することが出来ます。例えば、
```php
<?php
...
...
@@ -443,9 +449,10 @@ 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', 'new messages {messages}', ['{messages}' => 10])` directly.