Commit 78239d0a42154550d70ea53b5be0eedbbbf6e7f7

Authored by Administrator
1 parent 9e62a95c

add create_item to translate

views/seo-category/create.php
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 * @var SeoCategoryLang[] $modelLangs 11 * @var SeoCategoryLang[] $modelLangs
12 */ 12 */
13 13
14 - $this->title = Yii::t('app', 'Create Seo Category'); 14 + $this->title = \Yii::t('app', 'create_item',['item'=>'Seo Category']);
15 $this->params[ 'breadcrumbs' ][] = [ 15 $this->params[ 'breadcrumbs' ][] = [
16 'label' => Yii::t('app', 'Seo Categories'), 16 'label' => Yii::t('app', 'Seo Categories'),
17 'url' => [ 'index' ], 17 'url' => [ 'index' ],
views/seo-category/index.php
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <h1><?= Html::encode($this->title) ?></h1> 17 <h1><?= Html::encode($this->title) ?></h1>
18 18
19 <p> 19 <p>
20 - <?= Html::a(Yii::t('app', 'Create Seo Category'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> 20 + <?= Html::a(\Yii::t('app', 'create_item',['item'=>'Seo Category']), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
21 </p> 21 </p>
22 <?= GridView::widget( 22 <?= GridView::widget(
23 [ 23 [
views/seo-dynamic/create.php
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 * @var SeoCategory $seo_category 14 * @var SeoCategory $seo_category
15 */ 15 */
16 16
17 - $this->title = Yii::t('app', 'Create Seo Dynamic'); 17 + $this->title = \Yii::t('app', 'create_item',['item'=>'Seo Dynamic']);
18 $this->params[ 'breadcrumbs' ][] = [ 18 $this->params[ 'breadcrumbs' ][] = [
19 'label' => Yii::t('app', 'Seo Categories'), 19 'label' => Yii::t('app', 'Seo Categories'),
20 'url' => [ '/seo-category/index' ], 20 'url' => [ '/seo-category/index' ],
views/seo-dynamic/index.php
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 30
31 <p> 31 <p>
32 <?= Html::a( 32 <?= Html::a(
33 - Yii::t('app', 'Create Seo Dynamic'), 33 + \Yii::t('app', 'create_item',['item'=>'Seo Dynamic']),
34 Url::toRoute( 34 Url::toRoute(
35 [ 35 [
36 'create', 36 'create',
views/seo/create.php
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 * @var SeoLang[] $modelLangs 11 * @var SeoLang[] $modelLangs
12 */ 12 */
13 13
14 - $this->title = Yii::t('app', 'Create Seo'); 14 + $this->title = \Yii::t('app', 'create_item',['item'=>'Seo']);
15 $this->params[ 'breadcrumbs' ][] = [ 15 $this->params[ 'breadcrumbs' ][] = [
16 'label' => Yii::t('app', 'Seos'), 16 'label' => Yii::t('app', 'Seos'),
17 'url' => [ 'index' ], 17 'url' => [ 'index' ],
views/seo/index.php
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 <h1><?= Html::encode($this->title) ?></h1> 16 <h1><?= Html::encode($this->title) ?></h1>
17 17
18 <p> 18 <p>
19 - <?= Html::a(Yii::t('app', 'Create Seo'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> 19 + <?= Html::a(\Yii::t('app', 'create_item',['item'=>'Seo']), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
20 </p> 20 </p>
21 <?= GridView::widget( 21 <?= GridView::widget(
22 [ 22 [