diff --git a/backend/views/articles/_search.php b/backend/views/articles/_search.php
index afb9cfc..f88fc76 100755
--- a/backend/views/articles/_search.php
+++ b/backend/views/articles/_search.php
@@ -38,8 +38,8 @@ use yii\widgets\ActiveForm;
field($model, 'h1') ?>
- = Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
- = Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
+ = Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
+ = Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>
diff --git a/backend/views/banner/index.php b/backend/views/banner/index.php
index 424a0ea..5bb38fc 100755
--- a/backend/views/banner/index.php
+++ b/backend/views/banner/index.php
@@ -36,8 +36,13 @@
[
'attribute' => 'title',
'value' => 'lang.title',
+ 'label' => \Yii::t('app', 'Title'),
+ ],
+ [
+ 'attribute' => 'lang.imageUrl',
+ 'label' => \Yii::t('app', 'Lang_Image_Url'),
+ 'format' => 'image',
],
- 'lang.imageUrl:image',
[
'attribute' => 'status',
'value' => function($model) {
diff --git a/backend/views/bg/_search.php b/backend/views/bg/_search.php
index 70a8e3a..d75888f 100755
--- a/backend/views/bg/_search.php
+++ b/backend/views/bg/_search.php
@@ -1,5 +1,5 @@
field($model, 'image') ?>
- = Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
- = Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
+ = Html::submitButton(\Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
+ = Html::resetButton(\Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>
diff --git a/backend/views/delivery/_form.php b/backend/views/delivery/_form.php
index f048ff9..fd6fa44 100755
--- a/backend/views/delivery/_form.php
+++ b/backend/views/delivery/_form.php
@@ -35,7 +35,7 @@
]) ?>
- = Html::submitButton($model->isNewRecord ? 'Create' : 'Update', [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ]) ?>
+ = Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ]) ?>
diff --git a/backend/views/delivery/_search.php b/backend/views/delivery/_search.php
index 92fed1c..c97c322 100644
--- a/backend/views/delivery/_search.php
+++ b/backend/views/delivery/_search.php
@@ -24,8 +24,8 @@ use yii\widgets\ActiveForm;
= $form->field($model, 'sort') ?>
- = Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
- = Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
+ = Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
+ = Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>
diff --git a/backend/views/delivery/update.php b/backend/views/delivery/update.php
index 6d5244c..2d19561 100755
--- a/backend/views/delivery/update.php
+++ b/backend/views/delivery/update.php
@@ -24,7 +24,7 @@
'id' => $model->id,
],
];
- $this->params[ 'breadcrumbs' ][] = 'Update';
+ $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Update');
?>
diff --git a/backend/views/delivery/view.php b/backend/views/delivery/view.php
index 5d7e28b..abc4345 100755
--- a/backend/views/delivery/view.php
+++ b/backend/views/delivery/view.php
@@ -30,17 +30,17 @@
= Html::encode($this->title) ?>
- = Html::a('Update', [
+ = Html::a(Yii::t('app', 'Update'), [
'update',
'id' => $model->id,
], [ 'class' => 'btn btn-primary' ]) ?>
- = Html::a('Delete', [
+ = Html::a(Yii::t('app', 'Delete'), [
'delete',
'id' => $model->id,
], [
'class' => 'btn btn-danger',
'data' => [
- 'confirm' => 'Are you sure you want to delete this item?',
+ 'confirm' => Yii::t('app', 'you_sure'),
'method' => 'post',
],
]) ?>
diff --git a/backend/views/label/_form.php b/backend/views/label/_form.php
index d15ad5f..0bbae0d 100644
--- a/backend/views/label/_form.php
+++ b/backend/views/label/_form.php
@@ -28,7 +28,7 @@
]) ?>
- = Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
+ = Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
diff --git a/backend/views/label/_search.php b/backend/views/label/_search.php
index b989f4f..8748380 100644
--- a/backend/views/label/_search.php
+++ b/backend/views/label/_search.php
@@ -20,8 +20,8 @@ use yii\widgets\ActiveForm;
= $form->field($model, 'label') ?>
- = Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
- = Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
+ = Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
+ = Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>
diff --git a/common/modules/product/views/manage/_form.php b/common/modules/product/views/manage/_form.php
index 8f90cb4..1abc2f4 100755
--- a/common/modules/product/views/manage/_form.php
+++ b/common/modules/product/views/manage/_form.php
@@ -31,11 +31,11 @@
]); ?>
= $form->field($model, 'is_top')
- ->checkbox([ 'label' => 'ТОП' ]) ?>
+ ->checkbox([ 'label' => Yii::t('app', 'top_form') ]) ?>
= $form->field($model, 'is_new')
- ->checkbox([ 'label' => 'Новинка' ]) ?>
+ ->checkbox([ 'label' => Yii::t('app', 'new_form') ]) ?>
= $form->field($model, 'akciya')
- ->checkbox([ 'label' => 'Акционный' ]) ?>
+ ->checkbox([ 'label' => Yii::t('app', 'action_form') ]) ?>
= $form->field($model, 'video')
->textarea(); ?>
diff --git a/common/modules/product/views/manage/index.php b/common/modules/product/views/manage/index.php
index 938b841..1986a6a 100755
--- a/common/modules/product/views/manage/index.php
+++ b/common/modules/product/views/manage/index.php
@@ -33,6 +33,7 @@
'columns' => [
'product_id',
[
+ 'label' => Yii::t('product', 'Product Name'),
'attribute' => 'product_name',
'value' => 'lang.name',
],
@@ -95,6 +96,7 @@
]),
],
[
+ 'label' => Yii::t('product', 'Variant Count'),
'attribute' => 'variant_count',
'value' => function($model) {
/**
@@ -109,17 +111,17 @@
'buttons' => [
'is_top' => function($url, $model) {
return Html::a('
', $url, [
- 'title' => Yii::t('product', ( $model->is_top ? 'Set not is top' : 'Set is top' )),
+ 'title' => Yii::t('product', ( $model->is_top ? Yii::t('app', 'Set not is top') : Yii::t('app', 'Set is top') )),
]);
},
'is_new' => function($url, $model) {
return Html::a('
', $url, [
- 'title' => Yii::t('product', ( $model->is_new ? 'Set not is new' : 'Set is new' )),
+ 'title' => Yii::t('product', ( $model->is_new ? Yii::t('app', 'Set not is new') : Yii::t('app', 'Set is new') )),
]);
},
'akciya' => function($url, $model) {
return Html::a('
', $url, [
- 'title' => Yii::t('product', ( $model->akciya ? 'Set not is promotion' : 'Set is promotion' )),
+ 'title' => Yii::t('product', ( $model->akciya ? Yii::t('app', 'Set not is promotion') : Yii::t('app', 'Set is promotion') )),
]);
},
'items' => function($url, $model) {
diff --git a/common/translation/ru/app.php b/common/translation/ru/app.php
index 131f7d0..d45a328 100755
--- a/common/translation/ru/app.php
+++ b/common/translation/ru/app.php
@@ -60,7 +60,7 @@ return [
'body' => 'Тело',
'meta_title' => 'Мета заголовок',
'h1' => 'H1',
- 'seo_text' => 'Сео Текст',
+ 'seo_text' => 'SEO Текст',
'end_at' => 'Срок действия по',
'order_items_id' => 'Order Items ID',
'order_id' => 'Сортировка ID',
@@ -70,10 +70,10 @@ return [
'customer_id' => 'Customer ID',
'delivery' => 'Доставка',
'payment' => 'Оплата',
- 'seo_id' => 'Seo ID',
+ 'seo_id' => 'SEO ID',
'controller' => 'Контроллер',
- 'seo_category_id' => 'Seo категория ID',
- 'seo_dynamic_id' => 'Seo Dynamic ID',
+ 'seo_category_id' => 'SEO категория ID',
+ 'seo_dynamic_id' => 'SEO Dynamic ID',
'action' => 'Action',
'fields' => 'Поля',
'param' => 'Параметры',
@@ -107,7 +107,7 @@ return [
'language_id' => 'ID языка',
'bg_id' => 'ID фона',
- 'feedback_id' => 'Feedback ID',
+ 'feedback_id' => 'ID отзыва',
'ip' => 'IP',
'product_name'=>'Продукт',
@@ -122,11 +122,11 @@ return [
'meta_description' => 'Meta описание',
'product_spec_id' => 'Product Spec ID',
'product_id' => 'ID товара',
- 'tech_spec_link' => 'Tech Spec Link',
- 'tech_char_link' => 'Tech Char Link',
- 'techSpecFile' => 'techSpecFile',
- 'techCharFile' => 'techCharFile',
- 'tech_spec_text' => 'Tech Spec Text',
+ 'tech_spec_link' => 'Ссылка на тех. спец.',
+ 'tech_char_link' => 'Ссылка на тех. хар.',
+ 'techSpecFile' => 'Файл тех. спец.',
+ 'techCharFile' => 'Файл тех. характеристик',
+ 'tech_spec_text' => 'Тех. спец. текст',
'instruction' => 'Инструкция',
'product_to_project_id' => 'Product To Project ID',
'product_variant_id' => 'Product Variant ID',
@@ -208,60 +208,83 @@ return [
'orders_shipping_by' => 'Отправка за счет',
'orders_city' => 'Город',
'orders_datetime' => 'Дата и время заказа',
- 'Add Orders' => 'Добавить заказ',
+ 'Add Orders' => 'Добавить заказ',
- 'pr_category_id' => 'ID категории',
- 'pr_brand_id' => 'ID бренда',
- 'pr_product_name' => 'Название товара',
- 'pr_variant_count' => 'Вариант подсчёта',
- 'Create Delivery' => 'Создать доставку',
- 'Deliveries' => 'Доставка',
+ 'pr_category_id' => 'ID категории',
+ 'pr_brand_id' => 'ID бренда',
+ 'pr_product_name' => 'Название товара',
+ 'pr_variant_count' => 'Вариант подсчёта',
+ 'Create Delivery' => 'Создать доставку',
+ 'Deliveries' => 'Доставка',
- 'Create Seo' => 'Создать SEO',
- 'certificate_id' => 'ID сертификата',
- 'certname' => 'Название',
- 'certlink' => 'Ссылка',
- 'certfile' => 'Файл сертификата',
- 'certcreate' => 'Создать сертификат',
- 'All-list ' => 'Весь ',
- 'Return back' => 'Вернуться назад',
- 'Orders' => 'Заказы',
- 'Create' => 'Создать',
- 'Update' => 'Обновить',
- 'Labels' => 'Статус товара',
- 'Create Label' => 'Создать статус товара',
- 'Slider' => 'слайдер',
- 'Sliders' => 'Слайдер',
- 'Create Slider' => 'Создать слайдер',
- 'Select status...' => 'Выберите статус...',
- 'Active' => 'Активный',
- 'Inactive' => 'Неактивный',
- 'Create Banner' => 'Создать баннер',
- 'Banners' => 'Баннеры',
- 'Pages' => 'Текстовые страницы',
- 'Create Page' => 'Создать страницу',
- 'Project' => 'Проекты',
- 'Create Project' => 'Создать проект',
- 'Articles' => 'Статьи',
- 'Create Articles' => 'Создать статью',
- 'Certificates' => 'Сертификаты',
- 'Create Certificate' => 'Создать сертификат',
- 'Events' => 'Акции',
- 'Create Event' => 'Создать акцию',
- 'Seo' => 'SEO',
- 'Seo Categories' => 'SEO категории',
- 'Create Seo Category' => 'Создать SEO категорию',
- 'Bgs' => 'Фоны',
- 'Create Bg' => 'Создать фон',
- 'Customers' => 'Пользователи',
- 'Create Customer' => 'Создать пользователя',
- 'Feedback' => 'Обратная связь',
- 'Users' => 'Пользователи',
- 'Create User' => 'Создать пользователя',
- 'parent_title' => 'Корневой заголовок',
- 'Parent Id' => 'Корневой ID',
- 'Date' => 'Дата',
- 'Image' => 'Изображение',
- 'Slide count' => 'Количество слайдов',
+ 'Create Seo' => 'Создать SEO',
+ 'certificate_id' => 'ID сертификата',
+ 'certname' => 'Название',
+ 'certlink' => 'Ссылка',
+ 'certfile' => 'Файл сертификата',
+ 'certcreate' => 'Создать сертификат',
+ 'All-list ' => 'Весь ',
+ 'Return back' => 'Вернуться назад',
+ 'Orders' => 'Заказы',
+ 'Create' => 'Создать',
+ 'Update' => 'Обновить',
+ 'Labels' => 'Статус товара',
+ 'Create Label' => 'Создать статус товара',
+ 'Slider' => 'слайдер',
+ 'Sliders' => 'Слайдер',
+ 'Create Slider' => 'Создать слайдер',
+ 'Select status...' => 'Выберите статус...',
+ 'Active' => 'Активный',
+ 'Inactive' => 'Неактивный',
+ 'Create Banner' => 'Создать баннер',
+ 'Banners' => 'Баннеры',
+ 'Pages' => 'Текстовые страницы',
+ 'Create Page' => 'Создать страницу',
+ 'Project' => 'Проекты',
+ 'Create Project' => 'Создать проект',
+ 'Articles' => 'Статьи',
+ 'Create Articles' => 'Создать статью',
+ 'Certificates' => 'Сертификаты',
+ 'Create Certificate' => 'Создать сертификат',
+ 'Events' => 'Акции',
+ 'Create Event' => 'Создать акцию',
+ 'Seo' => 'SEO',
+ 'Seo Categories' => 'SEO категории',
+ 'Create Seo Category' => 'Создать SEO категорию',
+ 'Bgs' => 'Фоны',
+ 'Create Bg' => 'Создать фон',
+ 'Customers' => 'Пользователи',
+ 'Create Customer' => 'Создать пользователя',
+ 'Feedback' => 'Обратная связь',
+ 'Users' => 'Пользователи',
+ 'Create User' => 'Создать пользователя',
+ 'parent_title' => 'Корневой заголовок',
+ 'Parent Id' => 'Корневой ID',
+ 'Date' => 'Дата',
+ 'Image' => 'Изображение',
+ 'Slide count' => 'Количество слайдов',
'Update {modelClass}: ' => 'Обновить {modelClass}: ',
+
+ 'Product ID' => 'ID продукта',
+ 'Language ID' => 'ID языка',
+ 'Name' => 'Имя',
+ 'Description' => 'Описание',
+ 'Alias' => 'Псведоним',
+
+ 'Set not is top' => 'Установить не как топовый',
+ 'Set is top' => 'Установить как топовый',
+ 'Set not is new' => 'Установить не как новый ',
+ 'Set is new' => 'Установить как новый',
+ 'Set not is promotion' => 'Установить не как промо',
+ 'Set is promotion' => 'Установить как промо',
+
+ 'top_form' => 'ТОП',
+ 'new_form' => 'Новинка',
+ 'action_form' => 'Акционный',
+ 'Search' => 'Поиск',
+ 'Reset' => 'Сброс',
+ 'Delete' => 'Удалить',
+ 'you_sure' => 'Вы уверены, что хотите удалить этот элемент?',
+ 'Lang_Image_Url' => 'Url языковой картинки',
+ 'Title' => 'Заголовок',
];
\ No newline at end of file
diff --git a/common/translation/ru/product.php b/common/translation/ru/product.php
index b011b17..106792b 100755
--- a/common/translation/ru/product.php
+++ b/common/translation/ru/product.php
@@ -34,4 +34,14 @@ return [
'Image' => 'Изображение',
'Product Unit ID' => '',
'Parent category' => 'Корневая категория',
+ 'Product Name' => 'Название товара',
+ 'Variant Count' => 'Количество товара',
+ 'ID' => 'ID',
+ 'Images' => 'Изображения',
+ 'Video embeded' => 'Встроенное видео',
+ 'Is top' => 'Топ',
+ 'Is new' => 'Новое',
+ 'Is promo' => 'Промо',
+ 'Description' => 'Описание',
+ 'Select categories' => 'Выберите категории',
];
\ No newline at end of file
--
libgit2 0.21.4