From a8e2543313287b9fb8ebcaa0591984e88ebabdf9 Mon Sep 17 00:00:00 2001 From: Leorne Date: Fri, 6 Dec 2019 12:05:14 +0300 Subject: [PATCH] translate buttons and breadcrumbs --- backend/modules/accesses/views/accesses/create.php | 2 +- backend/modules/accesses/views/accesses/update.php | 4 ++-- backend/modules/accesses/views/accesses/view.php | 4 ++-- backend/modules/card/views/user-card/index.php | 2 +- backend/modules/notes/views/notes/_form.php | 2 +- backend/modules/settings/views/additional-fields/view.php | 2 +- backend/modules/settings/views/status/index.php | 2 +- common/models/Note.php | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/backend/modules/accesses/views/accesses/create.php b/backend/modules/accesses/views/accesses/create.php index be6b7d6..552caff 100644 --- a/backend/modules/accesses/views/accesses/create.php +++ b/backend/modules/accesses/views/accesses/create.php @@ -6,7 +6,7 @@ use yii\helpers\Html; /* @var $model common\models\Accesses */ $this->title = 'Добавить доступ'; -$this->params['breadcrumbs'][] = ['label' => 'Accesses', 'url' => ['index']]; +$this->params['breadcrumbs'][] = ['label' => 'Доступы', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
diff --git a/backend/modules/accesses/views/accesses/update.php b/backend/modules/accesses/views/accesses/update.php index f28ec72..1ac2001 100644 --- a/backend/modules/accesses/views/accesses/update.php +++ b/backend/modules/accesses/views/accesses/update.php @@ -6,9 +6,9 @@ use yii\helpers\Html; /* @var $model common\models\Accesses */ $this->title = 'Редактировать доступ: ' . $model->name; -$this->params['breadcrumbs'][] = ['label' => 'Accesses', 'url' => ['index']]; +$this->params['breadcrumbs'][] = ['label' => 'Доступы', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update'; +$this->params['breadcrumbs'][] = 'Редактировать'; ?>
diff --git a/backend/modules/accesses/views/accesses/view.php b/backend/modules/accesses/views/accesses/view.php index 2ea10ea..7310ef2 100644 --- a/backend/modules/accesses/views/accesses/view.php +++ b/backend/modules/accesses/views/accesses/view.php @@ -7,7 +7,7 @@ use yii\widgets\DetailView; /* @var $model common\models\Accesses */ $this->title = $model->name; -$this->params['breadcrumbs'][] = ['label' => 'Accesses', 'url' => ['index']]; +$this->params['breadcrumbs'][] = ['label' => 'Доступы', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?> @@ -19,7 +19,7 @@ $this->params['breadcrumbs'][] = $this->title; $model->id], [ 'class' => 'btn btn-danger', 'data' => [ - 'confirm' => 'Вы уверены, что хотите удалить эот элемент?', + 'confirm' => 'Вы уверены, что хотите удалить этот элемент?', 'method' => 'post', ], ]) ?> diff --git a/backend/modules/card/views/user-card/index.php b/backend/modules/card/views/user-card/index.php index 207a537..c4b2494 100755 --- a/backend/modules/card/views/user-card/index.php +++ b/backend/modules/card/views/user-card/index.php @@ -27,7 +27,7 @@ $this->params['breadcrumbs'][] = $this->title; //'id', [ - 'label' => 'photo', + 'label' => 'Фото', 'format' => 'raw', 'value' => function ($model) { return Html::img(Url::to($model->photo), [ diff --git a/backend/modules/notes/views/notes/_form.php b/backend/modules/notes/views/notes/_form.php index e339fd2..5ca7a08 100755 --- a/backend/modules/notes/views/notes/_form.php +++ b/backend/modules/notes/views/notes/_form.php @@ -22,7 +22,7 @@ use yii\widgets\ActiveForm;
field($model, 'fields')->widget(MultipleInput::class, [ - + 'cloneButton' => true, 'columns' => [ [ 'name' => 'field_id', diff --git a/backend/modules/settings/views/additional-fields/view.php b/backend/modules/settings/views/additional-fields/view.php index b1a3f97..6f3081b 100755 --- a/backend/modules/settings/views/additional-fields/view.php +++ b/backend/modules/settings/views/additional-fields/view.php @@ -13,6 +13,7 @@ $this->params['breadcrumbs'][] = $this->title;

+ $model->id], ['class' => 'btn btn-primary']) ?> $model->id], ['class' => 'btn btn-primary']) ?> $model->id], [ 'class' => 'btn btn-danger', @@ -22,7 +23,6 @@ $this->params['breadcrumbs'][] = $this->title; ], ]) ?> $model->id], ['class' => 'btn btn-success']) ?> - $model->id], ['class' => 'btn btn-primary']) ?>

params['breadcrumbs'][] = $this->title; render('_search', ['model' => $searchModel]); ?>

- 'btn btn-success']) ?> + 'btn btn-success']) ?>

'ID', 'name' => 'Название', 'description' => 'Описание', - 'created_at' => 'Created At', - 'updated_at' => 'Updated At', + 'created_at' => 'Создано', + 'updated_at' => 'Обновлено', ]; } }