Commit 36c8e1fcd102fb78102c78684eb414bfff04713d

Authored by Eugeny Galkovskiy
1 parent 347cde9e

MESSAGES !!!! EVGEN!

backend/views/articles/_form.php
... ... @@ -60,7 +60,7 @@
60 60 ?>
61 61  
62 62 <div class="form-group">
63   - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ]) ?>
  63 + <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ]) ?>
64 64 </div>
65 65  
66 66 <?php ActiveForm::end(); ?>
... ...
backend/views/brand/index.php
... ... @@ -21,7 +21,7 @@
21 21 <h1><?= Html::encode($this->title) ?></h1>
22 22  
23 23 <p>
24   - <?= Html::a(Yii::t('product', 'Create Brand'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
  24 + <?= Html::a(Yii::t('product', Yii::t('product', 'Create Brand')), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
25 25 </p>
26 26 <?= GridView::widget([
27 27 'dataProvider' => $dataProvider,
... ...
backend/views/certificate/index.php
... ... @@ -9,7 +9,7 @@
9 9 * @var common\models\CertificateSearch $searchModel
10 10 * @var yii\data\ActiveDataProvider $dataProvider
11 11 */
12   - $this->title = 'Certificates';
  12 + $this->title = Yii::t('app', 'Certificates');
13 13 $this->params[ 'breadcrumbs' ][] = $this->title;
14 14 ?>
15 15 <div class="certificate-index">
... ... @@ -17,7 +17,7 @@
17 17 <h1><?= Html::encode($this->title) ?></h1>
18 18  
19 19 <p>
20   - <?= Html::a('Create Certificate', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
  20 + <?= Html::a(Yii::t('app', 'Create Certificate'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
21 21 </p>
22 22 <?= GridView::widget([
23 23 'dataProvider' => $dataProvider,
... ...
backend/views/customer/index.php
... ... @@ -8,7 +8,7 @@
8 8 * @var common\models\CustomerSearch $searchModel
9 9 * @var yii\data\ActiveDataProvider $dataProvider
10 10 */
11   - $this->title = 'Customers';
  11 + $this->title = Yii::t('app', 'Customers');
12 12 $this->params[ 'breadcrumbs' ][] = $this->title;
13 13 ?>
14 14 <div class="customer-index">
... ... @@ -16,7 +16,7 @@
16 16 <h1><?= Html::encode($this->title) ?></h1>
17 17  
18 18 <p>
19   - <?= Html::a('Create Customer', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
  19 + <?= Html::a(Yii::t('app', 'Create Customer'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
20 20 </p>
21 21 <?= GridView::widget([
22 22 'dataProvider' => $dataProvider,
... ...
backend/views/delivery/create.php
... ... @@ -12,9 +12,9 @@
12 12 * @var array $parent_items
13 13 */
14 14  
15   - $this->title = \Yii::t('product', 'Create Delivery');
  15 + $this->title = \Yii::t('app', 'Create Delivery');
16 16 $this->params[ 'breadcrumbs' ][] = [
17   - 'label' => \Yii::t('product', 'Deliveries'),
  17 + 'label' => \Yii::t('app', 'Deliveries'),
18 18 'url' => [ 'index' ],
19 19 ];
20 20 $this->params[ 'breadcrumbs' ][] = $this->title;
... ...
backend/views/delivery/index.php
... ... @@ -29,15 +29,16 @@
29 29  
30 30 'id',
31 31 [
32   - 'attribute' => 'title',
  32 + 'attribute' => Yii::t('app', 'title'),
33 33 'value' => 'lang.title',
34 34 ],
35 35 [
36   - 'attribute' => 'parent_title',
  36 + 'attribute' => Yii::t('app', 'parent_title'),
37 37 'value' => 'parent.lang.title',
38 38 ],
39 39 'value',
40   - [ 'class' => 'yii\grid\ActionColumn' ],
  40 + [
  41 + 'class' => 'yii\grid\ActionColumn'],
41 42 ],
42 43 ]); ?>
43 44 </div>
... ...
backend/views/feedback/index.php
... ... @@ -9,7 +9,7 @@
9 9 * @var FeedbackSearch $searchModel
10 10 * @var View $this
11 11 */
12   - $this->title = 'Feedback';
  12 + $this->title = Yii::t('app', 'Feedback');
13 13 $this->params['breadcrumbs'][] = $this->title;
14 14 ?>
15 15 <div class="feedback-index">
... ...
backend/views/label/index.php
... ... @@ -12,7 +12,7 @@
12 12 * @var ActiveDataProvider $dataProvider
13 13 */
14 14  
15   - $this->title = 'Labels';
  15 + $this->title = Yii::t('app', 'Labels');
16 16 $this->params[ 'breadcrumbs' ][] = $this->title;
17 17 ?>
18 18 <div class="label-index">
... ... @@ -21,7 +21,7 @@
21 21 <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
22 22  
23 23 <p>
24   - <?= Html::a('Create Label', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
  24 + <?= Html::a(Yii::t('app', 'Create Label'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
25 25 </p>
26 26 <?= GridView::widget([
27 27 'dataProvider' => $dataProvider,
... ...
backend/views/orders/_form.php
... ... @@ -62,7 +62,7 @@ use kartik\date\DatePicker;
62 62 </div>
63 63 </div>
64 64 <div class="form-group">
65   - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  65 + <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
66 66 </div>
67 67 <?php ActiveForm::end(); ?>
68 68  
... ...
backend/views/orders/create.php
... ... @@ -5,7 +5,7 @@ use yii\bootstrap\ActiveForm;
5 5  
6 6  
7 7 $this->title = 'Добавить товар в заказ';
8   -$this->params['breadcrumbs'][] = ['label' => 'Pages', 'url' => ['index']];
  8 +$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Orders'), 'url' => ['index']];
9 9 $this->params['breadcrumbs'][] = $this->title;
10 10 ?>
11 11  
... ...
backend/views/slider-image/_form.php
... ... @@ -55,7 +55,7 @@
55 55 1 => \Yii::t('app', 'Active'),
56 56 2 => \Yii::t('app', 'Inactive'),
57 57 ],
58   - 'options' => [ 'placeholder' => 'Select status...' ],
  58 + 'options' => [ 'placeholder' => \Yii::t('app', 'Select status...') ],
59 59 'pluginOptions' => [
60 60 'allowClear' => true,
61 61 ],
... ...
backend/views/slider/_form.php
... ... @@ -28,8 +28,11 @@ use kartik\select2\Select2;
28 28 <?= $form->field($model, 'status')->widget(Select2::className(),([
29 29 'name' => 'status',
30 30 'hideSearch' => true,
31   - 'data' => [1 => 'Active', 2 => 'Inactive'],
32   - 'options' => ['placeholder' => 'Select status...'],
  31 + 'data' => [
  32 + 1 => \Yii::t('app', 'Active'),
  33 + 2 => \Yii::t('app', 'Inactive'),
  34 + ],
  35 + 'options' => [ 'placeholder' => \Yii::t('app', 'Select status...') ],
33 36 'pluginOptions' => [
34 37 'allowClear' => true
35 38 ]
... ...
backend/views/slider/update.php
... ... @@ -7,7 +7,7 @@
7 7 * @var common\models\Slider $model
8 8 */
9 9 $this->title = Yii::t('app', 'Update {modelClass}: ', [
10   - 'modelClass' => 'Slider',
  10 + 'modelClass' => Yii::t('app', 'Slider'),
11 11 ]) . $model->title;
12 12 $this->params[ 'breadcrumbs' ][] = [
13 13 'label' => Yii::t('app', 'Sliders'),
... ...
common/models/ArticlesLang.php
... ... @@ -28,8 +28,8 @@ class ArticlesLang extends \yii\db\ActiveRecord
28 28 public static function primaryKey()
29 29 {
30 30 return [
31   - 'articles_id',
32   - 'language_id',
  31 + 'articles_id' => Yii::t('app', 'articles_id'),
  32 + 'language_id' => Yii::t('app', 'language_id'),
33 33 ];
34 34 }
35 35  
... ...
common/models/Delivery.php
... ... @@ -3,6 +3,7 @@
3 3 namespace common\models;
4 4  
5 5 use common\modules\language\behaviors\LanguageBehavior;
  6 + use Yii;
6 7 use yii\db\ActiveQuery;
7 8 use yii\db\ActiveRecord;
8 9 use yii\web\Request;
... ... @@ -62,9 +63,9 @@
62 63 return [
63 64 [
64 65 [
65   - 'value',
66   - 'parent_id',
67   - 'sort',
  66 + 'value' => Yii::t('app', 'value'),
  67 + 'parent_id' => Yii::t('app', 'parent_id'),
  68 + 'sort' => Yii::t('app', 'sort'),
68 69 ],
69 70 'integer',
70 71 ],
... ...
common/translation/ru/app.php
... ... @@ -11,13 +11,13 @@ return [
11 11 'phone' => 'Телефон',
12 12 'status' => 'Статус',
13 13 'gender' => 'Пол',
14   - 'birth_day' => 'Birth Day',
15   - 'birth_month' => 'Birth Month',
16   - 'birth_year' => 'Birth Year',
17   - 'group_id' => 'Group ID',
  14 + 'birth_day' => 'День рождения',
  15 + 'birth_month' => 'Месяц рождения',
  16 + 'birth_year' => 'Год рождения',
  17 + 'group_id' => 'ID группы',
18 18  
19   - 'created_at' => 'Created At',
20   - 'updated_at' => 'Updated At',
  19 + 'created_at' => 'Создан',
  20 + 'updated_at' => 'Обновлён',
21 21 'verifyCode' => 'Код проверки',
22 22 'password' => 'Пароль',
23 23 'password_repeat' => 'Повторить пароль',
... ... @@ -39,23 +39,23 @@ return [
39 39 'my_orders' => 'Мои заказы',
40 40 'bookmarks' => 'Закладки',
41 41 'basket' => 'Корзина',
42   - 'banner_id' => 'Banner ID',
  42 + 'banner_id' => 'ID баннера',
43 43 'image' => 'Изображение',
44 44 'alt' => 'Описание',
45 45 'title' => 'Заголовок',
46 46 'url' => 'Ссылка',
47 47 'width' => 'Ширина',
48 48 'height' => 'Высота',
49   - 'blog_id' => 'Blog ID',
50   - 'user_id' => 'User ID',
  49 + 'blog_id' => 'ID блога',
  50 + 'user_id' => 'ID пользователя',
51 51 'name' => 'Название',
52 52 'link' => 'Ссылка',
53 53 'date_add' => 'Дата добавления',
54   - 'user_add_id' => 'User Add ID',
  54 + 'user_add_id' => 'Добавить ID пользователя',
55 55 'view_count' => 'Количество просмотров',
56 56 'description' => 'Описание',
57 57 'cover' => 'Фото главное',
58   - 'event_id' => 'Event ID',
  58 + 'event_id' => 'ID акции',
59 59 'alias' => 'Ссылка',
60 60 'body' => 'Тело',
61 61 'meta_title' => 'Мета заголовок',
... ... @@ -63,49 +63,49 @@ return [
63 63 'seo_text' => 'Сео Текст',
64 64 'end_at' => 'Срок действия по',
65 65 'order_items_id' => 'Order Items ID',
66   - 'order_id' => 'Order ID',
67   - 'item_id' => 'Item ID',
  66 + 'order_id' => 'Сортировка ID',
  67 + 'item_id' => 'ID элемента',
68 68 'item_count' => 'Количество',
69 69 'price' => 'Цена',
70 70 'customer_id' => 'Customer ID',
71 71 'delivery' => 'Доставка',
72 72 'payment' => 'Оплата',
73 73 'seo_id' => 'Seo ID',
74   - 'controller' => 'Controller',
75   - 'seo_category_id' => 'Seo Category ID',
  74 + 'controller' => 'Контроллер',
  75 + 'seo_category_id' => 'Seo категория ID',
76 76 'seo_dynamic_id' => 'Seo Dynamic ID',
77 77 'action' => 'Action',
78 78 'fields' => 'Поля',
79 79 'param' => 'Параметры',
80 80 'key' => 'Ключ',
81 81 'service_id' => 'Service ID',
82   - 'slider_id' => 'Slider ID',
  82 + 'slider_id' => 'ID слайдера',
83 83 'speed' => 'Скорость',
84 84 'duration' => 'Продолжительность',
85   - 'slider_image_id' => 'Slider Image ID',
  85 + 'slider_image_id' => 'ID изображения слайдера',
86 86 'sort' => 'Сортировка',
87 87  
88 88 'order_name' => 'Ф.И.О',
89 89 'order_phone' => 'Контактный телефон',
90   - 'order_email' => 'email',
  90 + 'order_email' => 'E-mail',
91 91 'order_comment' => 'Комментарии',
92 92  
93 93 'articlesID' => 'ID',
94 94 'articlesDate' => 'Дата',
95 95 'articlesImage' => 'Изображение',
96 96  
97   - 'lang-Articles ID' => '',
98   - 'lang-Language ID' => '',
99   - 'lang-Title' => '',
100   - 'lang-Body' => '',
101   - 'lang-Meta Title' => '',
102   - 'lang-Meta Keywords' => '',
103   - 'lang-Meta Description' => '',
104   - 'lang-Seo Text' => '',
105   - 'lang-H1' => '',
106   - 'lang-Body Preview' => '',
107   - 'language_id' => '',
108   - 'bg_id' => '',
  97 + 'lang-Articles ID' => 'ID статьи',
  98 + 'lang-Language ID' => 'ID языка',
  99 + 'lang-Title' => 'Заголовок',
  100 + 'lang-Body' => 'Содержимое',
  101 + 'lang-Meta Title' => 'Meta заголовок',
  102 + 'lang-Meta Keywords' => 'Meta ключевые слова',
  103 + 'lang-Meta Description' => 'Meta описание',
  104 + 'lang-Seo Text' => 'SEO текст',
  105 + 'lang-H1' => 'H1',
  106 + 'lang-Body Preview' => 'Предпросмотр',
  107 + 'language_id' => 'ID языка',
  108 + 'bg_id' => 'ID фона',
109 109  
110 110 'feedback_id' => 'Feedback ID',
111 111 'ip' => 'IP',
... ... @@ -116,24 +116,24 @@ return [
116 116 'cost'=>'Цена за один',
117 117 'count'=>'Кол.',
118 118 'sum_cost'=>'Сумма',
119   - 'in_menu' => 'Show in menu',
120   - 'page_id' => 'Page ID',
121   - 'meta_keywords' => 'Meta Keywords',
122   - 'meta_description' => 'Meta Description',
  119 + 'in_menu' => 'Показать в меню',
  120 + 'page_id' => 'ID страницы',
  121 + 'meta_keywords' => 'Meta ключевые слова',
  122 + 'meta_description' => 'Meta описание',
123 123 'product_spec_id' => 'Product Spec ID',
124   - 'product_id' => 'Product ID',
  124 + 'product_id' => 'ID товара',
125 125 'tech_spec_link' => 'Tech Spec Link',
126 126 'tech_char_link' => 'Tech Char Link',
127 127 'techSpecFile' => 'techSpecFile',
128 128 'techCharFile' => 'techCharFile',
129 129 'tech_spec_text' => 'Tech Spec Text',
130   - 'instruction' => 'Instruction',
  130 + 'instruction' => 'Инструкция',
131 131 'product_to_project_id' => 'Product To Project ID',
132 132 'product_variant_id' => 'Product Variant ID',
133   - 'project_id' => 'Project ID',
  133 + 'project_id' => 'ID проекта',
134 134 'product_to_rating_id' => 'Product To Rating ID',
135   - 'value' => 'Value',
136   - 'images' => 'Images',
  135 + 'value' => 'Значение',
  136 + 'images' => 'Изображения',
137 137 'project_image_id' => 'Project Image ID',
138 138 'meta' => 'Meta',
139 139 'date_time'=>'Дата',
... ... @@ -217,7 +217,7 @@ return [
217 217 'Create Delivery' => 'Создать доставку',
218 218 'Deliveries' => 'Доставка',
219 219  
220   - 'Create Seo' => 'Create Seo',
  220 + 'Create Seo' => 'Создать SEO',
221 221 'certificate_id' => 'ID сертификата',
222 222 'certname' => 'Название',
223 223 'certlink' => 'Ссылка',
... ... @@ -225,4 +225,43 @@ return [
225 225 'certcreate' => 'Создать сертификат',
226 226 'All-list ' => 'Весь ',
227 227 'Return back' => 'Вернуться назад',
  228 + 'Orders' => 'Заказы',
  229 + 'Create' => 'Создать',
  230 + 'Update' => 'Обновить',
  231 + 'Labels' => 'Статус товара',
  232 + 'Create Label' => 'Создать статус товара',
  233 + 'Slider' => 'слайдер',
  234 + 'Sliders' => 'Слайдер',
  235 + 'Create Slider' => 'Создать слайдер',
  236 + 'Select status...' => 'Выберите статус...',
  237 + 'Active' => 'Активный',
  238 + 'Inactive' => 'Неактивный',
  239 + 'Create Banner' => 'Создать баннер',
  240 + 'Banners' => 'Баннеры',
  241 + 'Pages' => 'Текстовые страницы',
  242 + 'Create Page' => 'Создать страницу',
  243 + 'Project' => 'Проекты',
  244 + 'Create Project' => 'Создать проект',
  245 + 'Articles' => 'Статьи',
  246 + 'Create Articles' => 'Создать статью',
  247 + 'Certificates' => 'Сертификаты',
  248 + 'Create Certificate' => 'Создать сертификат',
  249 + 'Events' => 'Акции',
  250 + 'Create Event' => 'Создать акцию',
  251 + 'Seo' => 'SEO',
  252 + 'Seo Categories' => 'SEO категории',
  253 + 'Create Seo Category' => 'Создать SEO категорию',
  254 + 'Bgs' => 'Фоны',
  255 + 'Create Bg' => 'Создать фон',
  256 + 'Customers' => 'Пользователи',
  257 + 'Create Customer' => 'Создать пользователя',
  258 + 'Feedback' => 'Обратная связь',
  259 + 'Users' => 'Пользователи',
  260 + 'Create User' => 'Создать пользователя',
  261 + 'parent_title' => 'Корневой заголовок',
  262 + 'Parent Id' => 'Корневой ID',
  263 + 'Date' => 'Дата',
  264 + 'Image' => 'Изображение',
  265 + 'Slide count' => 'Количество слайдов',
  266 + 'Update {modelClass}: ' => 'Обновить {modelClass}: ',
228 267 ];
229 268 \ No newline at end of file
... ...
common/translation/ru/product.php
... ... @@ -12,7 +12,6 @@ return [
12 12 'Similar products' => 'Похожие товары',
13 13 'Brands' => 'Бренды',
14 14 'Brand' => 'Бренд',
15   - 'Categories' => 'Категории',
16 15 'Category' => 'Категория',
17 16 'Select brand' => 'Выберите бренд',
18 17 'Select category' => 'Выберите категорию',
... ... @@ -27,4 +26,12 @@ return [
27 26 'Create Product' => 'Создать Товар',
28 27 'Enable' => 'Доступно',
29 28 'Disable' => 'Отсутсвует',
  29 + 'Create Brand' => 'Создать бренд',
  30 + 'Category ID' => 'ID категории',
  31 + 'Parent ID' => '',
  32 + 'Path' => 'Путь',
  33 + 'Depth' => '',
  34 + 'Image' => 'Изображение',
  35 + 'Product Unit ID' => '',
  36 + 'Parent category' => 'Корневая категория',
30 37 ];
31 38 \ No newline at end of file
... ...