@@ -5,7 +5,7 @@ |
||
5 | 5 | 'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..', |
6 | 6 | // array, required, list of language codes that the extracted messages |
7 | 7 | // should be translated to. For example, ['zh-CN', 'de']. |
8 | - 'languages' => ['de', 'fa-IR', 'gr', 'it', 'pl','ru', 'uk', 'vn', 'th', 'zh-CN', 'zh-TW'], |
|
8 | + 'languages' => ['de', 'fa-IR', 'gr', 'it', 'pl', 'ru', 'uk', 'vn', 'th', 'zh-CN', 'zh-TW'], |
|
9 | 9 | // string, the name of the function for translating messages. |
10 | 10 | // Defaults to 'Yii::t'. This is used as a mark to find the messages to be |
11 | 11 | // translated. You may use a string for single function name or an array for |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @var pheme\settings\models\Setting $model |
15 | 15 | */ |
16 | 16 | |
17 | -$this->title = $model->section. '.' . $model->key; |
|
17 | +$this->title = $model->section . '.' . $model->key; |
|
18 | 18 | $this->params['breadcrumbs'][] = ['label' => Module::t('settings', 'Settings'), 'url' => ['index']]; |
19 | 19 | $this->params['breadcrumbs'][] = $this->title; |
20 | 20 | ?> |
@@ -37,8 +37,7 @@ |
||
37 | 37 | <div class="form-group"> |
38 | 38 | <?= |
39 | 39 | Html::submitButton( |
40 | - $model->isNewRecord ? Module::t('settings', 'Create') : |
|
41 | - Module::t('settings', 'Update'), |
|
40 | + $model->isNewRecord ? Module::t('settings', 'Create') : Module::t('settings', 'Update'), |
|
42 | 41 | [ |
43 | 42 | 'class' => $model->isNewRecord ? |
44 | 43 | 'btn btn-success' : 'btn btn-primary' |
@@ -19,7 +19,7 @@ |
||
19 | 19 | [ |
20 | 20 | 'modelClass' => Module::t('settings', 'Setting'), |
21 | 21 | ] |
22 | - ) . ' ' . $model->section. '.' . $model->key; |
|
22 | + ) . ' ' . $model->section . '.' . $model->key; |
|
23 | 23 | |
24 | 24 | $this->params['breadcrumbs'][] = ['label' => Module::t('settings', 'Settings'), 'url' => ['index']]; |
25 | 25 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | 'url' => ['value', 'url'], |
37 | 37 | 'object' => [ |
38 | 38 | 'value', |
39 | - function ($attribute, $params) { |
|
39 | + function($attribute, $params) { |
|
40 | 40 | $object = null; |
41 | 41 | try { |
42 | 42 | Json::decode($this->$attribute); |