Commit b569ac3475627da1afa6a14fa14220d5293bb4f9
1 parent
72a992f5
MESSAGES !!!! EVGEN!
Showing
30 changed files
with
301 additions
and
152 deletions
Show diff stats
common/models/Articles.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace common\models; | 3 | namespace common\models; |
4 | - | 4 | + |
5 | use common\modules\language\behaviors\TransactionBehavior; | 5 | use common\modules\language\behaviors\TransactionBehavior; |
6 | use common\modules\language\behaviors\LanguageBehavior; | 6 | use common\modules\language\behaviors\LanguageBehavior; |
7 | use common\behaviors\SaveImgBehavior; | 7 | use common\behaviors\SaveImgBehavior; |
common/models/ArticlesLang.php
@@ -74,16 +74,16 @@ class ArticlesLang extends \yii\db\ActiveRecord | @@ -74,16 +74,16 @@ class ArticlesLang extends \yii\db\ActiveRecord | ||
74 | public function attributeLabels() | 74 | public function attributeLabels() |
75 | { | 75 | { |
76 | return [ | 76 | return [ |
77 | - 'articles_id' => Yii::t('app', 'Articles ID'), | ||
78 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
79 | - 'title' => Yii::t('app', 'Title'), | ||
80 | - 'body' => Yii::t('app', 'Body'), | ||
81 | - 'meta_title' => Yii::t('app', 'Meta Title'), | ||
82 | - 'meta_keywords' => Yii::t('app', 'Meta Keywords'), | ||
83 | - 'meta_description' => Yii::t('app', 'Meta Description'), | ||
84 | - 'seo_text' => Yii::t('app', 'Seo Text'), | ||
85 | - 'h1' => Yii::t('app', 'H1'), | ||
86 | - 'body_preview' => Yii::t('app', 'Body Preview'), | 77 | + 'articles_id' => Yii::t('app', 'lang-Articles ID'), |
78 | + 'language_id' => Yii::t('app', 'lang-Language ID'), | ||
79 | + 'title' => Yii::t('app', 'lang-Title'), | ||
80 | + 'body' => Yii::t('app', 'lang-Body'), | ||
81 | + 'meta_title' => Yii::t('app', 'lang-Meta Title'), | ||
82 | + 'meta_keywords' => Yii::t('app', 'lang-Meta Keywords'), | ||
83 | + 'meta_description' => Yii::t('app', 'lang-Meta Description'), | ||
84 | + 'seo_text' => Yii::t('app', 'lang-Seo Text'), | ||
85 | + 'h1' => Yii::t('app', 'lang-H1'), | ||
86 | + 'body_preview' => Yii::t('app', 'lang-Body Preview'), | ||
87 | ]; | 87 | ]; |
88 | } | 88 | } |
89 | 89 |
common/models/BannerLang.php
@@ -72,10 +72,10 @@ class BannerLang extends \yii\db\ActiveRecord | @@ -72,10 +72,10 @@ class BannerLang extends \yii\db\ActiveRecord | ||
72 | public function attributeLabels() | 72 | public function attributeLabels() |
73 | { | 73 | { |
74 | return [ | 74 | return [ |
75 | - 'banner_id' => Yii::t('app', 'Banner ID'), | ||
76 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
77 | - 'alt' => Yii::t('app', 'Alt'), | ||
78 | - 'title' => Yii::t('app', 'Title'), | 75 | + 'banner_id' => Yii::t('app', 'banner_id'), |
76 | + 'language_id' => Yii::t('app', 'language_id'), | ||
77 | + 'alt' => Yii::t('app', 'alt'), | ||
78 | + 'title' => Yii::t('app', 'title'), | ||
79 | ]; | 79 | ]; |
80 | } | 80 | } |
81 | 81 |
common/models/Bg.php
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | use yii\db\ActiveQuery; | 7 | use yii\db\ActiveQuery; |
8 | use yii\db\ActiveRecord; | 8 | use yii\db\ActiveRecord; |
9 | use yii\web\Request; | 9 | use yii\web\Request; |
10 | + use Yii; | ||
10 | 11 | ||
11 | /** | 12 | /** |
12 | * Class Bg | 13 | * Class Bg |
@@ -72,8 +73,8 @@ | @@ -72,8 +73,8 @@ | ||
72 | public function attributeLabels() | 73 | public function attributeLabels() |
73 | { | 74 | { |
74 | return [ | 75 | return [ |
75 | - 'image' => \Yii::t('app', 'Image'), | ||
76 | - 'url' => \Yii::t('app', 'Url'), | 76 | + 'image' => Yii::t('app', 'image'), |
77 | + 'url' => Yii::t('app', 'url'), | ||
77 | ]; | 78 | ]; |
78 | } | 79 | } |
79 | } | 80 | } |
common/models/BgLang.php
@@ -54,9 +54,9 @@ class BgLang extends \yii\db\ActiveRecord | @@ -54,9 +54,9 @@ class BgLang extends \yii\db\ActiveRecord | ||
54 | public function attributeLabels() | 54 | public function attributeLabels() |
55 | { | 55 | { |
56 | return [ | 56 | return [ |
57 | - 'bg_id' => Yii::t('app', 'Bg ID'), | ||
58 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
59 | - 'title' => Yii::t('app', 'Title'), | 57 | + 'bg_id' => Yii::t('app', 'bg_id'), |
58 | + 'language_id' => Yii::t('app', 'language_id'), | ||
59 | + 'title' => Yii::t('app', 'title'), | ||
60 | ]; | 60 | ]; |
61 | } | 61 | } |
62 | 62 |
common/models/Customer.php
@@ -60,23 +60,23 @@ class Customer extends User implements \yii\web\IdentityInterface | @@ -60,23 +60,23 @@ class Customer extends User implements \yii\web\IdentityInterface | ||
60 | public function attributeLabels() | 60 | public function attributeLabels() |
61 | { | 61 | { |
62 | return [ | 62 | return [ |
63 | - 'id' => 'ID', | ||
64 | - 'username' => 'Username', | ||
65 | - 'name' => 'Name', | ||
66 | - 'surname' => 'Surname', | ||
67 | - 'phone' => 'Phone', | ||
68 | - 'gender' => 'Gender', | ||
69 | - 'birth_day' => 'Birth Day', | ||
70 | - 'birth_month' => 'Birth Month', | ||
71 | - 'birth_year' => 'Birth Year', | ||
72 | - 'body' => 'Body', | ||
73 | - 'group_id' => 'Group ID', | ||
74 | - 'email' => 'Email', | ||
75 | - 'auth_key' => 'Auth Key', | ||
76 | - 'password_reset_token' => 'Password Reset Token', | ||
77 | - 'status' => 'Status', | ||
78 | - 'created_at' => 'Created At', | ||
79 | - 'updated_at' => 'Updated At', | 63 | + 'id' => Yii::t('app', 'id'), |
64 | + 'username' => Yii::t('app', 'username'), | ||
65 | + 'name' => Yii::t('app', 'cname'), | ||
66 | + 'surname' => Yii::t('app', 'surname'), | ||
67 | + 'phone' => Yii::t('app', 'phone'), | ||
68 | + 'gender' => Yii::t('app', 'gender'), | ||
69 | + 'birth_day' => Yii::t('app', 'birth_day'), | ||
70 | + 'birth_month' => Yii::t('app', 'birth_month'), | ||
71 | + 'birth_year' => Yii::t('app', 'birth_year'), | ||
72 | + 'body' => Yii::t('app', 'body'), | ||
73 | + 'group_id' => Yii::t('app', 'group_id'), | ||
74 | + 'email' => Yii::t('app', 'email'), | ||
75 | + 'auth_key' => Yii::t('app', 'auth_key'), | ||
76 | + 'password_reset_token' => Yii::t('app', 'password_reset_token'), | ||
77 | + 'status' => Yii::t('app', 'status'), | ||
78 | + 'created_at' => Yii::t('app', 'created_at'), | ||
79 | + 'updated_at' => Yii::t('app', 'updated_at'), | ||
80 | ]; | 80 | ]; |
81 | } | 81 | } |
82 | 82 |
common/models/EventLang.php
@@ -116,14 +116,14 @@ | @@ -116,14 +116,14 @@ | ||
116 | public function attributeLabels() | 116 | public function attributeLabels() |
117 | { | 117 | { |
118 | return [ | 118 | return [ |
119 | - 'event_id' => Yii::t('app', 'Event ID'), | ||
120 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
121 | - 'name' => Yii::t('app', 'Name'), | ||
122 | - 'body' => Yii::t('app', 'Body'), | ||
123 | - 'meta_title' => Yii::t('app', 'Meta Title'), | ||
124 | - 'description' => Yii::t('app', 'Description'), | ||
125 | - 'seo_text' => Yii::t('app', 'Seo Text'), | ||
126 | - 'h1' => Yii::t('app', 'H1'), | 119 | + 'event_id' => Yii::t('app', 'event_id'), |
120 | + 'language_id' => Yii::t('app', 'language_id'), | ||
121 | + 'name' => Yii::t('app', 'name'), | ||
122 | + 'body' => Yii::t('app', 'body'), | ||
123 | + 'meta_title' => Yii::t('app', 'meta_title'), | ||
124 | + 'description' => Yii::t('app', 'description'), | ||
125 | + 'seo_text' => Yii::t('app', 'seo_text'), | ||
126 | + 'h1' => Yii::t('app', 'h1'), | ||
127 | ]; | 127 | ]; |
128 | } | 128 | } |
129 | 129 |
common/models/Feedback.php
@@ -84,11 +84,11 @@ class Feedback extends \yii\db\ActiveRecord | @@ -84,11 +84,11 @@ class Feedback extends \yii\db\ActiveRecord | ||
84 | public function attributeLabels() | 84 | public function attributeLabels() |
85 | { | 85 | { |
86 | return [ | 86 | return [ |
87 | - 'feedback_id' => Yii::t('app', 'Feedback ID'), | ||
88 | - 'name' => Yii::t('app', 'Имя'), | ||
89 | - 'phone' => Yii::t('app', 'Телефон'), | ||
90 | - 'date_add' => Yii::t('app', 'Date Add'), | ||
91 | - 'ip' => Yii::t('app', 'Ip'), | 87 | + 'feedback_id' => Yii::t('app', 'feedback_id'), |
88 | + 'name' => Yii::t('app', 'name'), | ||
89 | + 'phone' => Yii::t('app', 'phone'), | ||
90 | + 'date_add' => Yii::t('app', 'date_add'), | ||
91 | + 'ip' => Yii::t('app', 'ip'), | ||
92 | ]; | 92 | ]; |
93 | } | 93 | } |
94 | } | 94 | } |
common/models/Orders.php
@@ -75,10 +75,10 @@ | @@ -75,10 +75,10 @@ | ||
75 | public function attributeLabels() | 75 | public function attributeLabels() |
76 | { | 76 | { |
77 | return [ | 77 | return [ |
78 | - 'name' => 'Ф.И.О', | ||
79 | - 'phone' => 'Контактный телефон', | ||
80 | - 'email' => 'email', | ||
81 | - 'comment' => 'Комментарии', | 78 | + 'name' => Yii::t('app', 'order_name'), |
79 | + 'phone' => Yii::t('app', 'order_phone'), | ||
80 | + 'email' => Yii::t('app', 'order_email'), | ||
81 | + 'comment' => Yii::t('app', 'order_comment'), | ||
82 | ]; | 82 | ]; |
83 | } | 83 | } |
84 | 84 |
common/models/OrdersDeliveryLang.php
@@ -56,10 +56,10 @@ class OrdersDeliveryLang extends \yii\db\ActiveRecord | @@ -56,10 +56,10 @@ class OrdersDeliveryLang extends \yii\db\ActiveRecord | ||
56 | public function attributeLabels() | 56 | public function attributeLabels() |
57 | { | 57 | { |
58 | return [ | 58 | return [ |
59 | - 'orders_delivery_id' => Yii::t('app', 'Orders Delivery ID'), | ||
60 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
61 | - 'title' => Yii::t('app', 'Title'), | ||
62 | - 'text' => Yii::t('app', 'Text'), | 59 | + 'orders_delivery_id' => Yii::t('app', 'orders_delivery_id'), |
60 | + 'language_id' => Yii::t('app', 'language_id'), | ||
61 | + 'title' => Yii::t('app', 'title'), | ||
62 | + 'text' => Yii::t('app', 'text'), | ||
63 | ]; | 63 | ]; |
64 | } | 64 | } |
65 | 65 |
common/models/OrdersProducts.php
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | namespace common\models; | 3 | namespace common\models; |
4 | 4 | ||
5 | use common\modules\product\models\ProductVariant; | 5 | use common\modules\product\models\ProductVariant; |
6 | +use Yii; | ||
6 | 7 | ||
7 | class OrdersProducts extends \yii\db\ActiveRecord | 8 | class OrdersProducts extends \yii\db\ActiveRecord |
8 | { | 9 | { |
@@ -24,12 +25,12 @@ class OrdersProducts extends \yii\db\ActiveRecord | @@ -24,12 +25,12 @@ class OrdersProducts extends \yii\db\ActiveRecord | ||
24 | public function attributeLabels() | 25 | public function attributeLabels() |
25 | { | 26 | { |
26 | return [ | 27 | return [ |
27 | - 'product_name'=>'Продукт', | ||
28 | - 'name'=>'Вид', | ||
29 | - 'art'=>'Артикул', | ||
30 | - 'cost'=>'Цена за один', | ||
31 | - 'count'=>'Кол.', | ||
32 | - 'sum_cost'=>'Сумма', | 28 | + 'product_name'=>Yii::t('app', 'product_name'), |
29 | + 'name'=>Yii::t('app', 'op_name'), | ||
30 | + 'art'=>Yii::t('app', 'art'), | ||
31 | + 'cost'=>Yii::t('app', 'cost'), | ||
32 | + 'count'=>Yii::t('app', 'count'), | ||
33 | + 'sum_cost'=>Yii::t('app', 'sum_cost'), | ||
33 | ]; | 34 | ]; |
34 | } | 35 | } |
35 | 36 |
common/models/Page.php
@@ -6,7 +6,8 @@ | @@ -6,7 +6,8 @@ | ||
6 | use yii\db\ActiveQuery; | 6 | use yii\db\ActiveQuery; |
7 | use yii\db\ActiveRecord; | 7 | use yii\db\ActiveRecord; |
8 | use yii\web\Request; | 8 | use yii\web\Request; |
9 | - | 9 | + use Yii; |
10 | + | ||
10 | /** | 11 | /** |
11 | * This is the model class for table "page". | 12 | * This is the model class for table "page". |
12 | * @property integer $id | 13 | * @property integer $id |
@@ -82,8 +83,8 @@ | @@ -82,8 +83,8 @@ | ||
82 | public function attributeLabels() | 83 | public function attributeLabels() |
83 | { | 84 | { |
84 | return [ | 85 | return [ |
85 | - 'id' => 'ID', | ||
86 | - 'in_menu' => 'Show in menu', | 86 | + 'id' => Yii::t('app', 'id'), |
87 | + 'in_menu' => Yii::t('app', 'in_menu'), | ||
87 | ]; | 88 | ]; |
88 | } | 89 | } |
89 | } | 90 | } |
common/models/PageLang.php
@@ -118,16 +118,16 @@ | @@ -118,16 +118,16 @@ | ||
118 | public function attributeLabels() | 118 | public function attributeLabels() |
119 | { | 119 | { |
120 | return [ | 120 | return [ |
121 | - 'page_id' => Yii::t('app', 'Page ID'), | ||
122 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
123 | - 'title' => Yii::t('app', 'Title'), | ||
124 | - 'body' => Yii::t('app', 'Body'), | ||
125 | - 'meta_title' => Yii::t('app', 'Meta Title'), | ||
126 | - 'meta_keywords' => Yii::t('app', 'Meta Keywords'), | ||
127 | - 'meta_description' => Yii::t('app', 'Meta Description'), | ||
128 | - 'seo_text' => Yii::t('app', 'Seo Text'), | ||
129 | - 'h1' => Yii::t('app', 'H1'), | ||
130 | - 'alias' => Yii::t('app', 'Alias'), | 121 | + 'page_id' => Yii::t('app', 'page_id'), |
122 | + 'language_id' => Yii::t('app', 'language_id'), | ||
123 | + 'title' => Yii::t('app', 'title'), | ||
124 | + 'body' => Yii::t('app', 'body'), | ||
125 | + 'meta_title' => Yii::t('app', 'meta_title'), | ||
126 | + 'meta_keywords' => Yii::t('app', 'meta_keywords'), | ||
127 | + 'meta_description' => Yii::t('app', 'meta_description'), | ||
128 | + 'seo_text' => Yii::t('app', 'seo_text'), | ||
129 | + 'h1' => Yii::t('app', 'h1'), | ||
130 | + 'alias' => Yii::t('app', 'alias'), | ||
131 | ]; | 131 | ]; |
132 | } | 132 | } |
133 | 133 |
common/models/ProductSpec.php
@@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
4 | 4 | ||
5 | use common\modules\language\behaviors\LanguageBehavior; | 5 | use common\modules\language\behaviors\LanguageBehavior; |
6 | use common\modules\product\models\Product; | 6 | use common\modules\product\models\Product; |
7 | + use Yii; | ||
7 | use yii\db\ActiveQuery; | 8 | use yii\db\ActiveQuery; |
8 | use yii\db\ActiveRecord; | 9 | use yii\db\ActiveRecord; |
9 | use yii\web\Request; | 10 | use yii\web\Request; |
@@ -90,12 +91,12 @@ | @@ -90,12 +91,12 @@ | ||
90 | public function attributeLabels() | 91 | public function attributeLabels() |
91 | { | 92 | { |
92 | return [ | 93 | return [ |
93 | - 'product_spec_id' => 'Product Spec ID', | ||
94 | - 'product_id' => 'Product ID', | ||
95 | - 'tech_spec_link' => 'Tech Spec Link', | ||
96 | - 'tech_char_link' => 'Tech Char Link', | ||
97 | - 'techSpecFile' => 'techSpecFile', | ||
98 | - 'techCharFile' => 'techCharFile', | 94 | + 'product_spec_id' => Yii::t('app', 'product_spec_id'), |
95 | + 'product_id' => Yii::t('app', 'product_id'), | ||
96 | + 'tech_spec_link' => Yii::t('app', 'tech_spec_link'), | ||
97 | + 'tech_char_link' => Yii::t('app', 'tech_char_link'), | ||
98 | + 'techSpecFile' => Yii::t('app', 'techSpecFile'), | ||
99 | + 'techCharFile' => Yii::t('app', 'techCharFile'), | ||
99 | ]; | 100 | ]; |
100 | } | 101 | } |
101 | 102 |
common/models/ProductSpecLang.php
@@ -54,10 +54,10 @@ class ProductSpecLang extends \yii\db\ActiveRecord | @@ -54,10 +54,10 @@ class ProductSpecLang extends \yii\db\ActiveRecord | ||
54 | public function attributeLabels() | 54 | public function attributeLabels() |
55 | { | 55 | { |
56 | return [ | 56 | return [ |
57 | - 'product_spec_id' => Yii::t('app', 'Product Spec ID'), | ||
58 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
59 | - 'tech_spec_text' => Yii::t('app', 'Tech Spec Text'), | ||
60 | - 'instruction' => Yii::t('app', 'Instruction'), | 57 | + 'product_spec_id' => Yii::t('app', 'product_spec_id'), |
58 | + 'language_id' => Yii::t('app', 'language_id'), | ||
59 | + 'tech_spec_text' => Yii::t('app', 'tech_spec_text'), | ||
60 | + 'instruction' => Yii::t('app', 'instruction'), | ||
61 | ]; | 61 | ]; |
62 | } | 62 | } |
63 | 63 |
common/models/ProductToProject.php
@@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
4 | 4 | ||
5 | use common\modules\product\models\Product; | 5 | use common\modules\product\models\Product; |
6 | use common\modules\product\models\ProductVariant; | 6 | use common\modules\product\models\ProductVariant; |
7 | + use Yii; | ||
7 | 8 | ||
8 | /** | 9 | /** |
9 | * This is the model class for table "product_to_project". | 10 | * This is the model class for table "product_to_project". |
@@ -76,10 +77,10 @@ | @@ -76,10 +77,10 @@ | ||
76 | public function attributeLabels() | 77 | public function attributeLabels() |
77 | { | 78 | { |
78 | return [ | 79 | return [ |
79 | - 'product_to_project_id' => 'Product To Project ID', | ||
80 | - 'product_variant_id' => 'Product Variant ID', | ||
81 | - 'project_id' => 'Project ID', | ||
82 | - 'product_id' => 'Product', | 80 | + 'product_to_project_id' => Yii::t('app', 'product_to_project_id'), |
81 | + 'product_variant_id' => Yii::t('app', 'product_variant_id'), | ||
82 | + 'project_id' => Yii::t('app', 'project_id'), | ||
83 | + 'product_id' => Yii::t('app', 'product_id'), | ||
83 | ]; | 84 | ]; |
84 | } | 85 | } |
85 | 86 |
common/models/ProductToRating.php
@@ -43,9 +43,9 @@ class ProductToRating extends \yii\db\ActiveRecord | @@ -43,9 +43,9 @@ class ProductToRating extends \yii\db\ActiveRecord | ||
43 | public function attributeLabels() | 43 | public function attributeLabels() |
44 | { | 44 | { |
45 | return [ | 45 | return [ |
46 | - 'product_to_rating_id' => 'Product To Rating ID', | ||
47 | - 'product_id' => 'Product ID', | ||
48 | - 'value' => 'Value', | 46 | + 'product_to_rating_id' => Yii::t('app', 'product_to_rating_id'), |
47 | + 'product_id' => Yii::t('app', 'product_id'), | ||
48 | + 'value' => Yii::t('app', 'value'), | ||
49 | ]; | 49 | ]; |
50 | } | 50 | } |
51 | 51 |
common/models/Project.php
@@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
4 | 4 | ||
5 | use common\modules\language\behaviors\LanguageBehavior; | 5 | use common\modules\language\behaviors\LanguageBehavior; |
6 | use common\modules\product\models\ProductVariant; | 6 | use common\modules\product\models\ProductVariant; |
7 | + use Yii; | ||
7 | use yii\db\ActiveQuery; | 8 | use yii\db\ActiveQuery; |
8 | use yii\db\ActiveRecord; | 9 | use yii\db\ActiveRecord; |
9 | use yii\web\Request; | 10 | use yii\web\Request; |
@@ -102,10 +103,12 @@ | @@ -102,10 +103,12 @@ | ||
102 | public function attributeLabels() | 103 | public function attributeLabels() |
103 | { | 104 | { |
104 | return [ | 105 | return [ |
105 | - 'project_id' => 'Project ID', | ||
106 | - 'description' => 'Description', | ||
107 | - 'date_add' => 'Date Add', | ||
108 | - 'images' => 'Images', | 106 | + 'project_id' => Yii::t('app', 'project_id'), |
107 | + 'title' => Yii::t('app', 'title'), | ||
108 | + 'link' => Yii::t('app', 'link'), | ||
109 | + 'description' => Yii::t('app', 'description'), | ||
110 | + 'date_add' => Yii::t('app', 'date_add'), | ||
111 | + 'images' => Yii::t('app', 'images'), | ||
109 | ]; | 112 | ]; |
110 | } | 113 | } |
111 | 114 |
common/models/ProjectImage.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace common\models; | 3 | namespace common\models; |
4 | +use Yii; | ||
4 | 5 | ||
5 | /** | 6 | /** |
6 | * This is the model class for table "project_image". | 7 | * This is the model class for table "project_image". |
@@ -42,11 +43,11 @@ class ProjectImage extends \yii\db\ActiveRecord | @@ -42,11 +43,11 @@ class ProjectImage extends \yii\db\ActiveRecord | ||
42 | public function attributeLabels() | 43 | public function attributeLabels() |
43 | { | 44 | { |
44 | return [ | 45 | return [ |
45 | - 'project_image_id' => 'Project Image ID', | ||
46 | - 'project_id' => 'Project ID', | ||
47 | - 'image' => 'Image', | ||
48 | - 'alt' => 'Alt', | ||
49 | - 'title' => 'Title', | 46 | + 'project_image_id' => Yii::t('app', 'project_image_id'), |
47 | + 'project_id' => Yii::t('app', 'project_id'), | ||
48 | + 'image' => Yii::t('app', 'image'), | ||
49 | + 'alt' => Yii::t('app', 'alt'), | ||
50 | + 'title' => Yii::t('app', 'title'), | ||
50 | ]; | 51 | ]; |
51 | } | 52 | } |
52 | 53 |
common/models/ProjectLang.php
@@ -103,11 +103,11 @@ | @@ -103,11 +103,11 @@ | ||
103 | public function attributeLabels() | 103 | public function attributeLabels() |
104 | { | 104 | { |
105 | return [ | 105 | return [ |
106 | - 'project_id' => Yii::t('app', 'Project ID'), | ||
107 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
108 | - 'title' => Yii::t('app', 'Title'), | ||
109 | - 'description' => Yii::t('app', 'Description'), | ||
110 | - 'alias' => Yii::t('app', 'Alias'), | 106 | + 'project_id' => Yii::t('app', 'project_id'), |
107 | + 'language_id' => Yii::t('app', 'language_id'), | ||
108 | + 'title' => Yii::t('app', 'title'), | ||
109 | + 'description' => Yii::t('app', 'description'), | ||
110 | + 'alias' => Yii::t('app', 'alias'), | ||
111 | ]; | 111 | ]; |
112 | } | 112 | } |
113 | 113 |
common/models/SeoCategoryLang.php
@@ -53,9 +53,9 @@ class SeoCategoryLang extends \yii\db\ActiveRecord | @@ -53,9 +53,9 @@ class SeoCategoryLang extends \yii\db\ActiveRecord | ||
53 | public function attributeLabels() | 53 | public function attributeLabels() |
54 | { | 54 | { |
55 | return [ | 55 | return [ |
56 | - 'seo_category_id' => Yii::t('app', 'Seo Category ID'), | ||
57 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
58 | - 'name' => Yii::t('app', 'Name'), | 56 | + 'seo_category_id' => Yii::t('app', 'seo_category_id'), |
57 | + 'language_id' => Yii::t('app', 'language_id'), | ||
58 | + 'name' => Yii::t('app', 'name'), | ||
59 | ]; | 59 | ]; |
60 | } | 60 | } |
61 | 61 |
common/models/SeoDynamicLang.php
@@ -60,15 +60,15 @@ class SeoDynamicLang extends \yii\db\ActiveRecord | @@ -60,15 +60,15 @@ class SeoDynamicLang extends \yii\db\ActiveRecord | ||
60 | public function attributeLabels() | 60 | public function attributeLabels() |
61 | { | 61 | { |
62 | return [ | 62 | return [ |
63 | - 'seo_dynamic_id' => Yii::t('app', 'Seo Dynamic ID'), | ||
64 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
65 | - 'name' => Yii::t('app', 'Name'), | ||
66 | - 'title' => Yii::t('app', 'Title'), | ||
67 | - 'h1' => Yii::t('app', 'H1'), | ||
68 | - 'key' => Yii::t('app', 'Key'), | ||
69 | - 'meta' => Yii::t('app', 'Meta'), | ||
70 | - 'description' => Yii::t('app', 'Description'), | ||
71 | - 'seo_text' => Yii::t('app', 'Seo Text'), | 63 | + 'seo_dynamic_id' => Yii::t('app', 'seo_dynamic_id'), |
64 | + 'language_id' => Yii::t('app', 'language_id'), | ||
65 | + 'name' => Yii::t('app', 'name'), | ||
66 | + 'title' => Yii::t('app', 'title'), | ||
67 | + 'h1' => Yii::t('app', 'h1'), | ||
68 | + 'key' => Yii::t('app', 'key'), | ||
69 | + 'meta' => Yii::t('app', 'meta'), | ||
70 | + 'description' => Yii::t('app', 'description'), | ||
71 | + 'seo_text' => Yii::t('app', 'seo_text'), | ||
72 | ]; | 72 | ]; |
73 | } | 73 | } |
74 | 74 |
common/models/SeoLang.php
@@ -58,13 +58,13 @@ class SeoLang extends \yii\db\ActiveRecord | @@ -58,13 +58,13 @@ class SeoLang extends \yii\db\ActiveRecord | ||
58 | public function attributeLabels() | 58 | public function attributeLabels() |
59 | { | 59 | { |
60 | return [ | 60 | return [ |
61 | - 'seo_id' => Yii::t('app', 'Seo ID'), | ||
62 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
63 | - 'title' => Yii::t('app', 'Title'), | ||
64 | - 'description' => Yii::t('app', 'Description'), | ||
65 | - 'h1' => Yii::t('app', 'H1'), | ||
66 | - 'meta' => Yii::t('app', 'Meta'), | ||
67 | - 'seo_text' => Yii::t('app', 'Seo Text'), | 61 | + 'seo_id' => Yii::t('app', 'seo_id'), |
62 | + 'language_id' => Yii::t('app', 'language_id'), | ||
63 | + 'title' => Yii::t('app', 'title'), | ||
64 | + 'description' => Yii::t('app', 'description'), | ||
65 | + 'h1' => Yii::t('app', 'h1'), | ||
66 | + 'meta' => Yii::t('app', 'meta'), | ||
67 | + 'seo_text' => Yii::t('app', 'seo_text'), | ||
68 | ]; | 68 | ]; |
69 | } | 69 | } |
70 | 70 |
common/models/ServiceLang.php
@@ -114,14 +114,14 @@ | @@ -114,14 +114,14 @@ | ||
114 | public function attributeLabels() | 114 | public function attributeLabels() |
115 | { | 115 | { |
116 | return [ | 116 | return [ |
117 | - 'service_id' => Yii::t('app', 'Service ID'), | ||
118 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
119 | - 'name' => Yii::t('app', 'Name'), | ||
120 | - 'body' => Yii::t('app', 'Body'), | ||
121 | - 'seo_text' => Yii::t('app', 'Seo Text'), | ||
122 | - 'meta_title' => Yii::t('app', 'Meta Title'), | ||
123 | - 'description' => Yii::t('app', 'Description'), | ||
124 | - 'h1' => Yii::t('app', 'H1'), | 117 | + 'service_id' => Yii::t('app', 'service_id'), |
118 | + 'language_id' => Yii::t('app', 'language_id'), | ||
119 | + 'name' => Yii::t('app', 'name'), | ||
120 | + 'body' => Yii::t('app', 'body'), | ||
121 | + 'seo_text' => Yii::t('app', 'seo_text'), | ||
122 | + 'meta_title' => Yii::t('app', 'meta_title'), | ||
123 | + 'description' => Yii::t('app', 'description'), | ||
124 | + 'h1' => Yii::t('app', 'h1'), | ||
125 | ]; | 125 | ]; |
126 | } | 126 | } |
127 | 127 |
common/models/Share.php
@@ -16,8 +16,8 @@ class Share extends \yii\db\ActiveRecord | @@ -16,8 +16,8 @@ class Share extends \yii\db\ActiveRecord | ||
16 | public function attributeLabels() | 16 | public function attributeLabels() |
17 | { | 17 | { |
18 | return [ | 18 | return [ |
19 | - 'product_name' => 'Название', | ||
20 | - 'date_time'=>'Дата', | 19 | + 'product_name' => Yii::t('app', 'product_name'), |
20 | + 'date_time'=> Yii::t('app', 'date_time'), | ||
21 | ]; | 21 | ]; |
22 | } | 22 | } |
23 | 23 |
common/models/SliderImageLang.php
@@ -54,10 +54,10 @@ class SliderImageLang extends \yii\db\ActiveRecord | @@ -54,10 +54,10 @@ class SliderImageLang extends \yii\db\ActiveRecord | ||
54 | public function attributeLabels() | 54 | public function attributeLabels() |
55 | { | 55 | { |
56 | return [ | 56 | return [ |
57 | - 'slider_image_id' => Yii::t('app', 'Slider Image ID'), | ||
58 | - 'language_id' => Yii::t('app', 'Language ID'), | ||
59 | - 'title' => Yii::t('app', 'Title'), | ||
60 | - 'alt' => Yii::t('app', 'Alt'), | 57 | + 'slider_image_id' => Yii::t('app', 'slider_image_id'), |
58 | + 'language_id' => Yii::t('app', 'language_id'), | ||
59 | + 'title' => Yii::t('app', 'title'), | ||
60 | + 'alt' => Yii::t('app', 'alt'), | ||
61 | ]; | 61 | ]; |
62 | } | 62 | } |
63 | 63 |
common/models/Subscribe.php
@@ -2,6 +2,8 @@ | @@ -2,6 +2,8 @@ | ||
2 | 2 | ||
3 | namespace common\models; | 3 | namespace common\models; |
4 | 4 | ||
5 | +use Yii; | ||
6 | + | ||
5 | class Subscribe extends \yii\db\ActiveRecord | 7 | class Subscribe extends \yii\db\ActiveRecord |
6 | { | 8 | { |
7 | public static function tableName() | 9 | public static function tableName() |
@@ -22,7 +24,7 @@ class Subscribe extends \yii\db\ActiveRecord | @@ -22,7 +24,7 @@ class Subscribe extends \yii\db\ActiveRecord | ||
22 | if(self::find() | 24 | if(self::find() |
23 | ->where('email = :email', [':email' => $this->email]) | 25 | ->where('email = :email', [':email' => $this->email]) |
24 | ->exists()) | 26 | ->exists()) |
25 | - $this->addError('email','Такой email уже есть.'); | 27 | + $this->addError('email', Yii::t('app', 'emailis')); |
26 | } | 28 | } |
27 | 29 | ||
28 | } | 30 | } |
29 | \ No newline at end of file | 31 | \ No newline at end of file |
common/models/TemplateLocation.php
@@ -47,14 +47,14 @@ class TemplateLocation extends \yii\db\ActiveRecord | @@ -47,14 +47,14 @@ class TemplateLocation extends \yii\db\ActiveRecord | ||
47 | public function attributeLabels() | 47 | public function attributeLabels() |
48 | { | 48 | { |
49 | return [ | 49 | return [ |
50 | - 'template_location_id' => Yii::t('app', 'Template Location ID'), | ||
51 | - 'template_location_name' => Yii::t('app', 'Template Location Name'), | ||
52 | - 'template_location_title' => Yii::t('app', 'Template Location Title'), | ||
53 | - 'width' => Yii::t('app', 'Width'), | ||
54 | - 'height' => Yii::t('app', 'Height'), | ||
55 | - 'sort' => Yii::t('app', 'Sort'), | ||
56 | - 'is_slider' => Yii::t('app', 'Is Slider'), | ||
57 | - 'is_banner' => Yii::t('app', 'Is Banner'), | 50 | + 'template_location_id' => Yii::t('app', 'template_location_id'), |
51 | + 'template_location_name' => Yii::t('app', 'template_location_name'), | ||
52 | + 'template_location_title' => Yii::t('app', 'template_location_title'), | ||
53 | + 'width' => Yii::t('app', 'width'), | ||
54 | + 'height' => Yii::t('app', 'height'), | ||
55 | + 'sort' => Yii::t('app', 'sort'), | ||
56 | + 'is_slider' => Yii::t('app', 'is_slider'), | ||
57 | + 'is_banner' => Yii::t('app', 'is_banner'), | ||
58 | ]; | 58 | ]; |
59 | } | 59 | } |
60 | 60 |
common/translation/ru/app.php
1 | <?php | 1 | <?php |
2 | return [ | 2 | return [ |
3 | 'id' => 'ID', | 3 | 'id' => 'ID', |
4 | - 'username' => 'Имя', | 4 | + 'username' => 'Логин', |
5 | + 'cname' => 'Имя', | ||
5 | 'surname' => 'Фамилия', | 6 | 'surname' => 'Фамилия', |
6 | 'auth_key' => 'Ключ аутентификации', | 7 | 'auth_key' => 'Ключ аутентификации', |
7 | 'password_hash' => 'Хэш пароля', | 8 | 'password_hash' => 'Хэш пароля', |
@@ -9,6 +10,12 @@ return [ | @@ -9,6 +10,12 @@ return [ | ||
9 | 'email' => 'Логин (e-mail)', | 10 | 'email' => 'Логин (e-mail)', |
10 | 'phone' => 'Телефон', | 11 | 'phone' => 'Телефон', |
11 | 'status' => 'Статус', | 12 | 'status' => 'Статус', |
13 | + 'gender' => 'Пол', | ||
14 | + 'birth_day' => 'Birth Day', | ||
15 | + 'birth_month' => 'Birth Month', | ||
16 | + 'birth_year' => 'Birth Year', | ||
17 | + 'group_id' => 'Group ID', | ||
18 | + | ||
12 | 'created_at' => 'Created At', | 19 | 'created_at' => 'Created At', |
13 | 'updated_at' => 'Updated At', | 20 | 'updated_at' => 'Updated At', |
14 | 'verifyCode' => 'Код проверки', | 21 | 'verifyCode' => 'Код проверки', |
@@ -78,6 +85,68 @@ return [ | @@ -78,6 +85,68 @@ return [ | ||
78 | 'slider_image_id' => 'Slider Image ID', | 85 | 'slider_image_id' => 'Slider Image ID', |
79 | 'sort' => 'Сортировка', | 86 | 'sort' => 'Сортировка', |
80 | 87 | ||
88 | + 'order_name' => 'Ф.И.О', | ||
89 | + 'order_phone' => 'Контактный телефон', | ||
90 | + 'order_email' => 'email', | ||
91 | + 'order_comment' => 'Комментарии', | ||
92 | + | ||
93 | + 'articlesID' => 'ID', | ||
94 | + 'articlesDate' => 'Дата', | ||
95 | + 'articlesImage' => 'Изображение', | ||
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' => '', | ||
109 | + | ||
110 | + 'feedback_id' => 'Feedback ID', | ||
111 | + 'ip' => 'IP', | ||
112 | + | ||
113 | + 'product_name'=>'Продукт', | ||
114 | + 'op_name'=>'Вид', | ||
115 | + 'art'=>'Артикул', | ||
116 | + 'cost'=>'Цена за один', | ||
117 | + 'count'=>'Кол.', | ||
118 | + 'sum_cost'=>'Сумма', | ||
119 | + 'in_menu' => 'Show in menu', | ||
120 | + 'page_id' => 'Page ID', | ||
121 | + 'meta_keywords' => 'Meta Keywords', | ||
122 | + 'meta_description' => 'Meta Description', | ||
123 | + 'product_spec_id' => 'Product Spec ID', | ||
124 | + 'product_id' => 'Product ID', | ||
125 | + 'tech_spec_link' => 'Tech Spec Link', | ||
126 | + 'tech_char_link' => 'Tech Char Link', | ||
127 | + 'techSpecFile' => 'techSpecFile', | ||
128 | + 'techCharFile' => 'techCharFile', | ||
129 | + 'tech_spec_text' => 'Tech Spec Text', | ||
130 | + 'instruction' => 'Instruction', | ||
131 | + 'product_to_project_id' => 'Product To Project ID', | ||
132 | + 'product_variant_id' => 'Product Variant ID', | ||
133 | + 'project_id' => 'Project ID', | ||
134 | + 'product_to_rating_id' => 'Product To Rating ID', | ||
135 | + 'value' => 'Value', | ||
136 | + 'images' => 'Images', | ||
137 | + 'project_image_id' => 'Project Image ID', | ||
138 | + 'meta' => 'Meta', | ||
139 | + 'date_time'=>'Дата', | ||
140 | + 'template_location_id' => 'Template Location ID', | ||
141 | + 'template_location_name' => 'Template Location Name', | ||
142 | + 'template_location_title' => 'Template Location Title', | ||
143 | + 'is_slider' => 'Is Slider', | ||
144 | + 'is_banner' => 'Is Banner', | ||
145 | + 'orders_delivery_id' => 'Orders Delivery ID', | ||
146 | + 'text' => 'Text', | ||
147 | + 'emailis' => 'Такой email уже есть.', | ||
148 | + | ||
149 | + | ||
81 | 'меню' => 'меню', | 150 | 'меню' => 'меню', |
82 | 'контрактный отдел' => 'контрактный отдел', | 151 | 'контрактный отдел' => 'контрактный отдел', |
83 | 'отдел по работе с дизайнерами и архитекторами' => 'отдел по работе с дизайнерами и архитекторами', | 152 | 'отдел по работе с дизайнерами и архитекторами' => 'отдел по работе с дизайнерами и архитекторами', |
common/translation/ua/app.php
1 | <?php | 1 | <?php |
2 | return [ | 2 | return [ |
3 | 'id' => 'ID', | 3 | 'id' => 'ID', |
4 | - 'username' => "Ім'я", | 4 | + 'username' => "Логін", |
5 | + 'cname' => 'Ім\'я', | ||
5 | 'surname' => 'Фамилия', | 6 | 'surname' => 'Фамилия', |
6 | 'auth_key' => 'Ключ аутентифікації', | 7 | 'auth_key' => 'Ключ аутентифікації', |
7 | 'password_hash' => 'Хеш паролю', | 8 | 'password_hash' => 'Хеш паролю', |
@@ -9,6 +10,12 @@ return [ | @@ -9,6 +10,12 @@ return [ | ||
9 | 'email' => 'Логін (e-mail)', | 10 | 'email' => 'Логін (e-mail)', |
10 | 'phone' => 'Телефон', | 11 | 'phone' => 'Телефон', |
11 | 'status' => 'Статус', | 12 | 'status' => 'Статус', |
13 | + 'gender' => 'Пол', | ||
14 | + 'birth_day' => 'Birth Day', | ||
15 | + 'birth_month' => 'Birth Month', | ||
16 | + 'birth_year' => 'Birth Year', | ||
17 | + 'group_id' => 'Group ID', | ||
18 | + | ||
12 | 'created_at' => 'Створено', | 19 | 'created_at' => 'Створено', |
13 | 'updated_at' => 'Оновлено', | 20 | 'updated_at' => 'Оновлено', |
14 | 'verifyCode' => 'Код перевірки', | 21 | 'verifyCode' => 'Код перевірки', |
@@ -78,6 +85,68 @@ return [ | @@ -78,6 +85,68 @@ return [ | ||
78 | 'slider_image_id' => 'Slider Image ID', | 85 | 'slider_image_id' => 'Slider Image ID', |
79 | 'sort' => 'Сортування', | 86 | 'sort' => 'Сортування', |
80 | 87 | ||
88 | + 'order_name' => 'П.І.Б.', | ||
89 | + 'order_phone' => 'Контактний телефон', | ||
90 | + 'order_email' => 'email', | ||
91 | + 'order_comment' => 'Коментар', | ||
92 | + | ||
93 | + 'articlesID' => 'ID', | ||
94 | + 'articlesDate' => 'Дата', | ||
95 | + 'articlesImage' => 'Зображення', | ||
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' => '', | ||
109 | + | ||
110 | + 'feedback_id' => 'Feedback ID', | ||
111 | + 'ip' => 'IP', | ||
112 | + | ||
113 | + 'product_name'=>'Продукт', | ||
114 | + 'op_name'=>'Вид', | ||
115 | + 'art'=>'Артикул', | ||
116 | + 'cost'=>'Цена за один', | ||
117 | + 'count'=>'Кол.', | ||
118 | + 'sum_cost'=>'Сумма', | ||
119 | + 'in_menu' => 'Show in menu', | ||
120 | + 'page_id' => 'Page ID', | ||
121 | + 'meta_keywords' => 'Meta Keywords', | ||
122 | + 'meta_description' => 'Meta Description', | ||
123 | + 'product_spec_id' => 'Product Spec ID', | ||
124 | + 'product_id' => 'Product ID', | ||
125 | + 'tech_spec_link' => 'Tech Spec Link', | ||
126 | + 'tech_char_link' => 'Tech Char Link', | ||
127 | + 'techSpecFile' => 'techSpecFile', | ||
128 | + 'techCharFile' => 'techCharFile', | ||
129 | + 'tech_spec_text' => 'Tech Spec Text', | ||
130 | + 'instruction' => 'Instruction', | ||
131 | + 'product_to_project_id' => 'Product To Project ID', | ||
132 | + 'product_variant_id' => 'Product Variant ID', | ||
133 | + 'project_id' => 'Project ID', | ||
134 | + 'product_to_rating_id' => 'Product To Rating ID', | ||
135 | + 'value' => 'Value', | ||
136 | + 'images' => 'Images', | ||
137 | + 'project_image_id' => 'Project Image ID', | ||
138 | + 'meta' => 'Meta', | ||
139 | + 'date_time'=>'Дата', | ||
140 | + 'template_location_id' => 'Template Location ID', | ||
141 | + 'template_location_name' => 'Template Location Name', | ||
142 | + 'template_location_title' => 'Template Location Title', | ||
143 | + 'is_slider' => 'Is Slider', | ||
144 | + 'is_banner' => 'Is Banner', | ||
145 | + 'orders_delivery_id' => 'Orders Delivery ID', | ||
146 | + 'text' => 'Text', | ||
147 | + 'emailis' => 'Такой email уже есть.', | ||
148 | + | ||
149 | + | ||
81 | 'меню' => 'меню', | 150 | 'меню' => 'меню', |
82 | 'контрактный отдел' => 'контрактне відділення', | 151 | 'контрактный отдел' => 'контрактне відділення', |
83 | 'отдел по работе с дизайнерами и архитекторами' => 'відділення по роботі з дизайнерами та архітекторами', | 152 | 'отдел по работе с дизайнерами и архитекторами' => 'відділення по роботі з дизайнерами та архітекторами', |