| 1 | <?php |
||
| 11 | class Module extends BaseModule |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @inheritdoc |
||
| 15 | */ |
||
| 16 | public $controllerNamespace = 'zacksleo\yii2\apprelease\controllers'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * |
||
| 20 | * @var string source language for translation |
||
| 21 | */ |
||
| 22 | public $sourceLanguage = 'en-US'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function init() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Registers the translation files |
||
| 35 | */ |
||
| 36 | protected function registerTranslations() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Translates a message. This is just a wrapper of Yii::t |
||
| 50 | * |
||
| 51 | * @see Yii::t |
||
| 52 | * |
||
| 53 | * @param $category |
||
| 54 | * @param $message |
||
| 55 | * @param array $params |
||
| 56 | * @param null $language |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public static function t($category, $message, $params = [], $language = null) |
||
| 63 | } |
||
| 64 |