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