diff --git a/backend/views/articles/_form.php b/backend/views/articles/_form.php
index 07698f5..79e9587 100755
--- a/backend/views/articles/_form.php
+++ b/backend/views/articles/_form.php
@@ -60,7 +60,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/brand/index.php b/backend/views/brand/index.php
index 29a43c8..c95cecd 100755
--- a/backend/views/brand/index.php
+++ b/backend/views/brand/index.php
@@ -21,7 +21,7 @@
- = Html::a(Yii::t('product', 'Create Brand'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
+ = Html::a(Yii::t('product', Yii::t('product', 'Create Brand')), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
= GridView::widget([
'dataProvider' => $dataProvider,
diff --git a/backend/views/certificate/index.php b/backend/views/certificate/index.php
index b781a92..d81162b 100755
--- a/backend/views/certificate/index.php
+++ b/backend/views/certificate/index.php
@@ -9,7 +9,7 @@
* @var common\models\CertificateSearch $searchModel
* @var yii\data\ActiveDataProvider $dataProvider
*/
- $this->title = 'Certificates';
+ $this->title = Yii::t('app', 'Certificates');
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
@@ -17,7 +17,7 @@
= Html::encode($this->title) ?>
- = Html::a('Create Certificate', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
+ = Html::a(Yii::t('app', 'Create Certificate'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
= GridView::widget([
'dataProvider' => $dataProvider,
diff --git a/backend/views/customer/index.php b/backend/views/customer/index.php
index 7433dd0..287af24 100755
--- a/backend/views/customer/index.php
+++ b/backend/views/customer/index.php
@@ -8,7 +8,7 @@
* @var common\models\CustomerSearch $searchModel
* @var yii\data\ActiveDataProvider $dataProvider
*/
- $this->title = 'Customers';
+ $this->title = Yii::t('app', 'Customers');
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
@@ -16,7 +16,7 @@
= Html::encode($this->title) ?>
- = Html::a('Create Customer', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
+ = Html::a(Yii::t('app', 'Create Customer'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
= GridView::widget([
'dataProvider' => $dataProvider,
diff --git a/backend/views/delivery/create.php b/backend/views/delivery/create.php
index 4f0a208..c020d1a 100755
--- a/backend/views/delivery/create.php
+++ b/backend/views/delivery/create.php
@@ -12,9 +12,9 @@
* @var array $parent_items
*/
- $this->title = \Yii::t('product', 'Create Delivery');
+ $this->title = \Yii::t('app', 'Create Delivery');
$this->params[ 'breadcrumbs' ][] = [
- 'label' => \Yii::t('product', 'Deliveries'),
+ 'label' => \Yii::t('app', 'Deliveries'),
'url' => [ 'index' ],
];
$this->params[ 'breadcrumbs' ][] = $this->title;
diff --git a/backend/views/delivery/index.php b/backend/views/delivery/index.php
index 867cf95..c5c926f 100755
--- a/backend/views/delivery/index.php
+++ b/backend/views/delivery/index.php
@@ -29,15 +29,16 @@
'id',
[
- 'attribute' => 'title',
+ 'attribute' => Yii::t('app', 'title'),
'value' => 'lang.title',
],
[
- 'attribute' => 'parent_title',
+ 'attribute' => Yii::t('app', 'parent_title'),
'value' => 'parent.lang.title',
],
'value',
- [ 'class' => 'yii\grid\ActionColumn' ],
+ [
+ 'class' => 'yii\grid\ActionColumn'],
],
]); ?>
diff --git a/backend/views/feedback/index.php b/backend/views/feedback/index.php
index fbe1921..4052104 100755
--- a/backend/views/feedback/index.php
+++ b/backend/views/feedback/index.php
@@ -9,7 +9,7 @@
* @var FeedbackSearch $searchModel
* @var View $this
*/
- $this->title = 'Feedback';
+ $this->title = Yii::t('app', 'Feedback');
$this->params['breadcrumbs'][] = $this->title;
?>
diff --git a/backend/views/label/index.php b/backend/views/label/index.php
index 2fe14db..225568c 100644
--- a/backend/views/label/index.php
+++ b/backend/views/label/index.php
@@ -12,7 +12,7 @@
* @var ActiveDataProvider $dataProvider
*/
- $this->title = 'Labels';
+ $this->title = Yii::t('app', 'Labels');
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
@@ -21,7 +21,7 @@
render('_search', ['model' => $searchModel]); ?>
- = Html::a('Create Label', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
+ = Html::a(Yii::t('app', 'Create Label'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
= GridView::widget([
'dataProvider' => $dataProvider,
diff --git a/backend/views/orders/_form.php b/backend/views/orders/_form.php
index a2e6c7c..c1f4db7 100755
--- a/backend/views/orders/_form.php
+++ b/backend/views/orders/_form.php
@@ -62,7 +62,7 @@ use kartik\date\DatePicker;
- = 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/orders/create.php b/backend/views/orders/create.php
index 15d213f..63e6b50 100755
--- a/backend/views/orders/create.php
+++ b/backend/views/orders/create.php
@@ -5,7 +5,7 @@ use yii\bootstrap\ActiveForm;
$this->title = 'Добавить товар в заказ';
-$this->params['breadcrumbs'][] = ['label' => 'Pages', 'url' => ['index']];
+$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Orders'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
diff --git a/backend/views/slider-image/_form.php b/backend/views/slider-image/_form.php
index d1320f6..d8223d7 100755
--- a/backend/views/slider-image/_form.php
+++ b/backend/views/slider-image/_form.php
@@ -55,7 +55,7 @@
1 => \Yii::t('app', 'Active'),
2 => \Yii::t('app', 'Inactive'),
],
- 'options' => [ 'placeholder' => 'Select status...' ],
+ 'options' => [ 'placeholder' => \Yii::t('app', 'Select status...') ],
'pluginOptions' => [
'allowClear' => true,
],
diff --git a/backend/views/slider/_form.php b/backend/views/slider/_form.php
index 4ea7c7e..80d0f9a 100755
--- a/backend/views/slider/_form.php
+++ b/backend/views/slider/_form.php
@@ -28,8 +28,11 @@ use kartik\select2\Select2;
= $form->field($model, 'status')->widget(Select2::className(),([
'name' => 'status',
'hideSearch' => true,
- 'data' => [1 => 'Active', 2 => 'Inactive'],
- 'options' => ['placeholder' => 'Select status...'],
+ 'data' => [
+ 1 => \Yii::t('app', 'Active'),
+ 2 => \Yii::t('app', 'Inactive'),
+ ],
+ 'options' => [ 'placeholder' => \Yii::t('app', 'Select status...') ],
'pluginOptions' => [
'allowClear' => true
]
diff --git a/backend/views/slider/update.php b/backend/views/slider/update.php
index ff836e0..2ae74eb 100755
--- a/backend/views/slider/update.php
+++ b/backend/views/slider/update.php
@@ -7,7 +7,7 @@
* @var common\models\Slider $model
*/
$this->title = Yii::t('app', 'Update {modelClass}: ', [
- 'modelClass' => 'Slider',
+ 'modelClass' => Yii::t('app', 'Slider'),
]) . $model->title;
$this->params[ 'breadcrumbs' ][] = [
'label' => Yii::t('app', 'Sliders'),
diff --git a/common/models/ArticlesLang.php b/common/models/ArticlesLang.php
index 101bb89..018c411 100755
--- a/common/models/ArticlesLang.php
+++ b/common/models/ArticlesLang.php
@@ -28,8 +28,8 @@ class ArticlesLang extends \yii\db\ActiveRecord
public static function primaryKey()
{
return [
- 'articles_id',
- 'language_id',
+ 'articles_id' => Yii::t('app', 'articles_id'),
+ 'language_id' => Yii::t('app', 'language_id'),
];
}
diff --git a/common/models/Delivery.php b/common/models/Delivery.php
index 4204ba8..2655cc2 100755
--- a/common/models/Delivery.php
+++ b/common/models/Delivery.php
@@ -3,6 +3,7 @@
namespace common\models;
use common\modules\language\behaviors\LanguageBehavior;
+ use Yii;
use yii\db\ActiveQuery;
use yii\db\ActiveRecord;
use yii\web\Request;
@@ -62,9 +63,9 @@
return [
[
[
- 'value',
- 'parent_id',
- 'sort',
+ 'value' => Yii::t('app', 'value'),
+ 'parent_id' => Yii::t('app', 'parent_id'),
+ 'sort' => Yii::t('app', 'sort'),
],
'integer',
],
diff --git a/common/translation/ru/app.php b/common/translation/ru/app.php
index 32ae595..131f7d0 100755
--- a/common/translation/ru/app.php
+++ b/common/translation/ru/app.php
@@ -11,13 +11,13 @@ return [
'phone' => 'Телефон',
'status' => 'Статус',
'gender' => 'Пол',
- 'birth_day' => 'Birth Day',
- 'birth_month' => 'Birth Month',
- 'birth_year' => 'Birth Year',
- 'group_id' => 'Group ID',
+ 'birth_day' => 'День рождения',
+ 'birth_month' => 'Месяц рождения',
+ 'birth_year' => 'Год рождения',
+ 'group_id' => 'ID группы',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
+ 'created_at' => 'Создан',
+ 'updated_at' => 'Обновлён',
'verifyCode' => 'Код проверки',
'password' => 'Пароль',
'password_repeat' => 'Повторить пароль',
@@ -39,23 +39,23 @@ return [
'my_orders' => 'Мои заказы',
'bookmarks' => 'Закладки',
'basket' => 'Корзина',
- 'banner_id' => 'Banner ID',
+ 'banner_id' => 'ID баннера',
'image' => 'Изображение',
'alt' => 'Описание',
'title' => 'Заголовок',
'url' => 'Ссылка',
'width' => 'Ширина',
'height' => 'Высота',
- 'blog_id' => 'Blog ID',
- 'user_id' => 'User ID',
+ 'blog_id' => 'ID блога',
+ 'user_id' => 'ID пользователя',
'name' => 'Название',
'link' => 'Ссылка',
'date_add' => 'Дата добавления',
- 'user_add_id' => 'User Add ID',
+ 'user_add_id' => 'Добавить ID пользователя',
'view_count' => 'Количество просмотров',
'description' => 'Описание',
'cover' => 'Фото главное',
- 'event_id' => 'Event ID',
+ 'event_id' => 'ID акции',
'alias' => 'Ссылка',
'body' => 'Тело',
'meta_title' => 'Мета заголовок',
@@ -63,49 +63,49 @@ return [
'seo_text' => 'Сео Текст',
'end_at' => 'Срок действия по',
'order_items_id' => 'Order Items ID',
- 'order_id' => 'Order ID',
- 'item_id' => 'Item ID',
+ 'order_id' => 'Сортировка ID',
+ 'item_id' => 'ID элемента',
'item_count' => 'Количество',
'price' => 'Цена',
'customer_id' => 'Customer ID',
'delivery' => 'Доставка',
'payment' => 'Оплата',
'seo_id' => 'Seo ID',
- 'controller' => 'Controller',
- 'seo_category_id' => 'Seo Category ID',
+ 'controller' => 'Контроллер',
+ 'seo_category_id' => 'Seo категория ID',
'seo_dynamic_id' => 'Seo Dynamic ID',
'action' => 'Action',
'fields' => 'Поля',
'param' => 'Параметры',
'key' => 'Ключ',
'service_id' => 'Service ID',
- 'slider_id' => 'Slider ID',
+ 'slider_id' => 'ID слайдера',
'speed' => 'Скорость',
'duration' => 'Продолжительность',
- 'slider_image_id' => 'Slider Image ID',
+ 'slider_image_id' => 'ID изображения слайдера',
'sort' => 'Сортировка',
'order_name' => 'Ф.И.О',
'order_phone' => 'Контактный телефон',
- 'order_email' => 'email',
+ 'order_email' => 'E-mail',
'order_comment' => 'Комментарии',
'articlesID' => 'ID',
'articlesDate' => 'Дата',
'articlesImage' => 'Изображение',
- 'lang-Articles ID' => '',
- 'lang-Language ID' => '',
- 'lang-Title' => '',
- 'lang-Body' => '',
- 'lang-Meta Title' => '',
- 'lang-Meta Keywords' => '',
- 'lang-Meta Description' => '',
- 'lang-Seo Text' => '',
- 'lang-H1' => '',
- 'lang-Body Preview' => '',
- 'language_id' => '',
- 'bg_id' => '',
+ 'lang-Articles ID' => 'ID статьи',
+ 'lang-Language ID' => 'ID языка',
+ 'lang-Title' => 'Заголовок',
+ 'lang-Body' => 'Содержимое',
+ 'lang-Meta Title' => 'Meta заголовок',
+ 'lang-Meta Keywords' => 'Meta ключевые слова',
+ 'lang-Meta Description' => 'Meta описание',
+ 'lang-Seo Text' => 'SEO текст',
+ 'lang-H1' => 'H1',
+ 'lang-Body Preview' => 'Предпросмотр',
+ 'language_id' => 'ID языка',
+ 'bg_id' => 'ID фона',
'feedback_id' => 'Feedback ID',
'ip' => 'IP',
@@ -116,24 +116,24 @@ return [
'cost'=>'Цена за один',
'count'=>'Кол.',
'sum_cost'=>'Сумма',
- 'in_menu' => 'Show in menu',
- 'page_id' => 'Page ID',
- 'meta_keywords' => 'Meta Keywords',
- 'meta_description' => 'Meta Description',
+ 'in_menu' => 'Показать в меню',
+ 'page_id' => 'ID страницы',
+ 'meta_keywords' => 'Meta ключевые слова',
+ 'meta_description' => 'Meta описание',
'product_spec_id' => 'Product Spec ID',
- 'product_id' => 'Product 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',
- 'instruction' => 'Instruction',
+ 'instruction' => 'Инструкция',
'product_to_project_id' => 'Product To Project ID',
'product_variant_id' => 'Product Variant ID',
- 'project_id' => 'Project ID',
+ 'project_id' => 'ID проекта',
'product_to_rating_id' => 'Product To Rating ID',
- 'value' => 'Value',
- 'images' => 'Images',
+ 'value' => 'Значение',
+ 'images' => 'Изображения',
'project_image_id' => 'Project Image ID',
'meta' => 'Meta',
'date_time'=>'Дата',
@@ -217,7 +217,7 @@ return [
'Create Delivery' => 'Создать доставку',
'Deliveries' => 'Доставка',
- 'Create Seo' => 'Create Seo',
+ 'Create Seo' => 'Создать SEO',
'certificate_id' => 'ID сертификата',
'certname' => 'Название',
'certlink' => 'Ссылка',
@@ -225,4 +225,43 @@ return [
'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}: ',
];
\ No newline at end of file
diff --git a/common/translation/ru/product.php b/common/translation/ru/product.php
index a237a7e..b011b17 100755
--- a/common/translation/ru/product.php
+++ b/common/translation/ru/product.php
@@ -12,7 +12,6 @@ return [
'Similar products' => 'Похожие товары',
'Brands' => 'Бренды',
'Brand' => 'Бренд',
- 'Categories' => 'Категории',
'Category' => 'Категория',
'Select brand' => 'Выберите бренд',
'Select category' => 'Выберите категорию',
@@ -27,4 +26,12 @@ return [
'Create Product' => 'Создать Товар',
'Enable' => 'Доступно',
'Disable' => 'Отсутсвует',
+ 'Create Brand' => 'Создать бренд',
+ 'Category ID' => 'ID категории',
+ 'Parent ID' => '',
+ 'Path' => 'Путь',
+ 'Depth' => '',
+ 'Image' => 'Изображение',
+ 'Product Unit ID' => '',
+ 'Parent category' => 'Корневая категория',
];
\ No newline at end of file
--
libgit2 0.21.4