Commit 10e7446865544e3ace2527660af4c378cc62b391

Authored by mzavalniuk
1 parent c5b72fe5

translate to ua ready

common/messages/ru/app.php
1 1 <?php
2   - return [
3   - 'Customer login' => 'Вхід для користувачів',
4   - 'Login' => 'Войти',
5   - 'Not registered yet?' => 'Не зарегистрированы?',
6   - 'Register now!' => 'Зарегистрироваться',
7   - 'Отправить' => ' Отправить',
8   - 'Read more' => 'Читати далі',
9   - 'Continue reading' => 'Читати далі',
10   - 'User section' => 'Раздел пользователя',
11   - 'Product' => 'Товар',
12   - 'Quantity' => 'Кількість',
13   - 'Unit price' => 'Ціна за одиницю',
14   - 'Discount' => 'Знижка',
15   - 'Total' => 'Всього',
16   - 'Back to payment method' => 'Повернутися до способу оплати',
17   - 'Please choose delivery method.' => 'Пожалуйста, выберите способ доставки.',
18   - 'Please choose payment method.' => 'Пожалуйста, выберите способ оплаты.',
19   - 'Home' => 'Головна',
20   - 'Toggle navigation' => 'Переключатель навигации',
21   - 'Catalog' => 'Каталог',
22   - 'Options' => 'Опции',
23   - 'Options for products' => 'Опции для продуктов',
24   - 'Complementary' => 'Дополнительно',
25   - 'Exclusion' => 'Исключения',
26   - 'Options for variants' => 'Опции для вариантов',
27   - 'Blog' => 'Блог',
28   - 'Write text to search for.' => 'Введиите текст для поиска.',
29   - 'Write at least 3 symbols.' => 'Введите минимум 3 символа',
30   - 'Save' => 'Сохранить',
31   - 'Title' => 'Заголовок',
32   - 'Select color ...' => 'Выберите цвет ...',
33   - 'Create' => 'Создать',
34   - 'Update' => 'Обновить',
35   - 'Search' => 'Найти',
36   - 'Reset' => 'Сбросить',
37   - 'Alias Value' => 'Значение псевдонима',
38   - 'Update Category' => 'Обновить категорию',
39   - 'Image' => 'Изображение',
40   - 'Brand Title' => 'Заголовок бренда',
41   - 'Created At' => 'Создано',
42   - 'Status' => 'Статус',
43   - 'Sort' => 'Сортування',
44   - 'Upload Document' => 'Загрузить документ',
45   - 'Send' => 'Отправить',
46   - 'Generate' => 'Сгенерировать',
47   - 'Common' => 'Общее',
48   - 'Gallery' => 'Галерея',
49   - 'Add' => 'Добавить',
50   - 'Product option group complementary' => 'Дополнительные группы опций товара',
51   - 'Is Filter' => 'Является фильтром',
52   - 'Search for a categories ...' => 'Пошук категорій ..',
53   - 'Product option group exclude' => 'Исключения группы опций товара',
54   - 'Variant option group exclude' => 'Исключения группы варианта товара',
55   - 'Option Groups' => 'Группы опций',
56   - 'Image Id' => 'ID изображения',
57   - 'Updated At' => 'Обновлено',
58   - 'Body' => 'Тело',
59   - 'Brands' => 'Бренди',
60   - 'Body Preview' => 'Предпросмотр',
61   - 'Author ID' => 'ID автора',
62   - 'Description' => 'Опис',
63   - 'Parent ID' => 'Родительский ID',
64   - 'Count' => 'Кількість',
65   - 'Color' => 'Колір',
66   - 'Slider' => 'Слайдер',
67   - 'Slides' => 'Слайды',
68   - 'Link' => 'Ссылка',
69   - 'Image ID' => 'Изображение',
70   - 'Create {item}' => 'Создать {item}',
71   - 'Update {item}' => 'Обновить {item}',
72   - 'Create Slide' => 'Создать слайд',
73   - 'Slide' => 'Слайд',
74   - 'Your order {orderId} successfully created!' => 'Ваше замовлення {orderId} успішно оформлено',
75   - 'Order info:' => 'Інформація про замовлення:',
76   - 'Article' => 'Артикул',
77   - 'Price' => 'Цiна',
78   - 'Sum' => 'Сума',
79   - 'Delivery' => 'Доставка',
80   - 'Order {orderId} successfully created!' => 'Заказ {orderId} успешно оформлен!',
81   - 'Total count' => 'Підсумковий рахунок',
82   - 'total_text' => 'Вартість доставки розраховується в залежності від адреси та способу доставки',
83   - ];
84 2 \ No newline at end of file
  3 +return [
  4 + 'Customer login' => 'Вход для пользователей',
  5 + 'Login' => 'Войти',
  6 + 'Not registered yet?' => 'Не зарегистрированы?',
  7 + 'Already registered?' => 'Уже зарегистрированы?',
  8 + 'Register now!' => 'Зарегистрироваться',
  9 + 'Отправить' => ' Отправить',
  10 + 'Read more' => 'Читать далее',
  11 + 'Continue reading' => 'Продолжить чтение',
  12 + 'User section' => 'Раздел пользователя',
  13 + 'Product' => 'Товар',
  14 + 'Quantity' => 'Количество',
  15 + 'Unit price' => 'Цена за единицу',
  16 + 'Discount' => 'Скидка',
  17 + 'Total' => 'Всего',
  18 + 'Back to payment method' => 'Вернуться к спообу оплаты',
  19 + 'Please choose delivery method.' => 'Пожалуйста, выберите способ доставки.',
  20 + 'Please choose payment method.' => 'Пожалуйста, выберите способ оплаты.',
  21 + 'Home' => 'Главная',
  22 + 'Toggle navigation' => 'Переключатель навигации',
  23 + 'Catalog' => 'Каталог',
  24 + 'Options' => 'Опции',
  25 + 'Options for products' => 'Опции для продуктов',
  26 + 'Complementary' => 'Дополнительно',
  27 + 'Exclusion' => 'Исключения',
  28 + 'Options for variants' => 'Опции для вариантов',
  29 + 'Blog' => 'Блог',
  30 + 'Write text to search for.' => 'Введиите текст для поиска.',
  31 + 'Write at least 3 symbols.' => 'Введите минимум 3 символа',
  32 + 'Save' => 'Сохранить',
  33 + 'Title' => 'Заголовок',
  34 + 'Select color ...' => 'Выберите цвет ...',
  35 + 'Create' => 'Создать',
  36 + 'Update' => 'Обновить',
  37 + 'Search' => 'Найти',
  38 + 'Reset' => 'Сбросить',
  39 + 'Alias Value' => 'Значение псевдонима',
  40 + 'Update Category' => 'Обновить категорию',
  41 + 'Image' => 'Изображение',
  42 + 'Brand Title' => 'Заголовок бренда',
  43 + 'Created At' => 'Создано',
  44 + 'Status' => 'Статус',
  45 + 'Sort' => 'Сортировка',
  46 + 'Upload Document' => 'Загрузить документ',
  47 + 'Send' => 'Отправить',
  48 + 'Generate' => 'Сгенерировать',
  49 + 'Common' => 'Общее',
  50 + 'Gallery' => 'Галерея',
  51 + 'Add' => 'Добавить',
  52 + 'Product option group complementary' => 'Дополнительные группы опций товара',
  53 + 'Is Filter' => 'Является фильтром',
  54 + 'Search for a categories ...' => 'Поиск категорий ..',
  55 + 'Product option group exclude' => 'Исключения группы опций товара',
  56 + 'Variant option group exclude' => 'Исключения группы варианта товара',
  57 + 'Option Groups' => 'Группы опций',
  58 + 'Image Id' => 'ID изображения',
  59 + 'Updated At' => 'Обновлено',
  60 + 'Body' => 'Тело',
  61 + 'Body Preview' => 'Предпросмотр',
  62 + 'Author ID' => 'ID автора',
  63 + 'Description' => 'Описание',
  64 + 'Parent ID' => 'Родительский ID',
  65 + 'Count' => 'Количество',
  66 + 'Color' => 'Цвет',
  67 + 'Slider' => 'Слайдер',
  68 + 'Slides' => 'Слайды',
  69 + 'Link' => 'Ссылка',
  70 + 'Image ID' => 'Изображение',
  71 + 'Create {item}' => 'Создать {item}',
  72 + 'Update {item}' => 'Обновить {item}',
  73 + 'Create Slide' => 'Создать слайд',
  74 + 'Slide' => 'Слайд',
  75 + 'Your order {orderId} successfully created!' => 'Ваш заказ {orderId} успешно оформлен',
  76 + 'Order info:' => 'Информация о заказе:',
  77 + 'Article' => 'Артикул',
  78 + 'Price' => 'Цена',
  79 + 'Sum' => 'Сумма',
  80 + 'Delivery' => 'Доставка',
  81 + 'Order {orderId} successfully created!' => 'Заказ {orderId} успешно оформлен!',
  82 + 'Total count' => 'Итоговый счет',
  83 + 'total_text' => 'Стоимость доставки рассчитывается в зависимости от адреса и способа доставки',
  84 + 'If you are already registered on our shop' => 'Если вы уже зарегистрированы в нашем магазине',
  85 + 'Log in into account' => 'Войдите в свой аккаунт',
  86 + 'Back to cart' => 'Назад в корзину',
  87 + 'Choose delivery method' => 'Перейти к выбору способа доставки',
  88 + 'Choose payment method' => 'Перейти к выбору способа оплаты',
  89 + 'Go to view order' => 'Перейти к просмотру заказа',
  90 + 'Total for goods' => 'Всего за товары',
  91 + 'Discount amount' => 'Сумма скидки',
  92 + 'Checkout' => 'Оформить заказ',
  93 + 'Total to pay' => 'Итого к оплате',
  94 + 'Shipping cost' => 'Стоимость доставки',
  95 + 'Address and information' => 'Адрес и информация',
  96 + 'View order' => 'Просмотр заказа',
  97 + 'Payment method' => 'Способ оплаты',
  98 + 'Method of delivery' => 'Способ доставки',
  99 + 'order_success_text {orderId}' => 'Заказ успешно оформлен. Ваш номер заказа: {orderId}',
  100 + 'Callback' => 'Обратный звонок',
  101 + 'Enter' => 'Вход',
  102 + 'New' => 'Новинки',
  103 + 'Top' => 'Топ',
  104 + 'Sale' => 'Акция',
  105 + 'Sales' => 'Акции',
  106 + 'Cart' => 'Корзина',
  107 + 'registration' => 'Новый аккаунт / Регистрация',
  108 + 'New account' => 'Новый аккаунт',
  109 + 'write to us' => 'напишите нам',
  110 + 'registration_text' => 'Если у вас есть вопросы, пожалуйста, {link}, наш центр обслуживания клиентов работает круглосуточно.',
  111 + 'name and secondname' => 'Имя и фамилия',
  112 + 'password' => 'Пароль',
  113 + 'My orders' => 'Мои заказы',
  114 + 'Date' => 'Дата',
  115 + 'Amount' => 'Сумма',
  116 + 'Action' => 'Действие',
  117 + 'View' => 'Посмотреть',
  118 + 'Not specified' => 'Не задан',
  119 + 'Exit' => 'Выйти',
  120 + 'My account' => 'Мой аккаунт',
  121 + 'My wishes' => 'Мои желания',
  122 + 'NEW' => 'НОВОЕ',
  123 + 'TOP' => 'ТОП',
  124 + 'SALE' => 'АКЦИЯ',
  125 + 'Personal data' => 'Персональные данные',
  126 + 'Change password' => 'Изменить пароль',
  127 + 'Save new password' => 'Сохранить новый пароль',
  128 + 'Change your personal data or password here.'=> 'Измените ваши персональные данные или пароль тут.',
  129 + 'Birthday' => 'Дата рождения',
  130 + 'Gender' => 'Пол',
  131 + 'Save changes' => 'Сохранить изменения',
  132 + 'Orders' => 'Заказы',
  133 + 'was moved on' => 'был перемещён на',
  134 + 'and now is' => 'и в данный момент',
  135 + 'order_text' => 'Если у вас есть вопросы, пожалуйста,',
  136 + 'Information' => 'Информация',
  137 +];
85 138 \ No newline at end of file
... ...
common/models/SignupForm.php
... ... @@ -3,6 +3,7 @@
3 3 namespace common\models;
4 4  
5 5 use artbox\order\models\Customer;
  6 + use Yii;
6 7 use yii\base\Model;
7 8  
8 9 /**
... ... @@ -101,9 +102,9 @@
101 102 public function attributeLabels()
102 103 {
103 104 return [
104   - 'username' => 'Имя и фамилия',
105   - 'email' => 'Email',
106   - 'password' => 'Пароль',
  105 + 'username' => Yii::t('app','name and secondname'),
  106 + 'email' => Yii::t('app','Email'),
  107 + 'password' => Yii::t('app','password'),
107 108 ];
108 109 }
109 110 }
110 111 \ No newline at end of file
... ...
frontend/controllers/CategoryController.php
... ... @@ -70,7 +70,7 @@
70 70 'desc' => [
71 71 'product.id' => SORT_DESC,
72 72 ],
73   - 'label' => \Yii::t('app', 'по умолчанию'),
  73 + 'label' => \Yii::t('app', Yii::t('app','default')),
74 74 ],
75 75 'title_asc' => [
76 76 'asc' => [
... ... @@ -79,7 +79,7 @@
79 79 'desc' => [
80 80 'product_lang.title' => SORT_ASC,
81 81 ],
82   - 'label' => \Yii::t('app', 'по имени от А до Я'),
  82 + 'label' => \Yii::t('app', Yii::t('app','a-z')),
83 83 ],
84 84 'title_desc' => [
85 85 'asc' => [
... ... @@ -88,7 +88,7 @@
88 88 'desc' => [
89 89 'product_lang.title' => SORT_DESC,
90 90 ],
91   - 'label' => \Yii::t('app', 'по имени от Я до А'),
  91 + 'label' => \Yii::t('app', Yii::t('app','z-a')),
92 92 ],
93 93 'price_asc' => [
94 94 'asc' => [
... ... @@ -97,7 +97,7 @@
97 97 'desc' => [
98 98 'variant.price' => SORT_ASC,
99 99 ],
100   - 'label' => \Yii::t('app', 'по цене по возрастанию'),
  100 + 'label' => \Yii::t('app', Yii::t('app','price asc')),
101 101 ],
102 102 'price_desc' => [
103 103 'asc' => [
... ... @@ -106,7 +106,7 @@
106 106 'desc' => [
107 107 'variant.price' => SORT_DESC,
108 108 ],
109   - 'label' => \Yii::t('app', 'по цене по убыванию'),
  109 + 'label' => \Yii::t('app', Yii::t('app','price desc')),
110 110 ],
111 111 ],
112 112 'defaultOrder' => [
... ...
frontend/controllers/CheckoutController.php
... ... @@ -177,7 +177,10 @@
177 177 'success',
178 178 \Yii::t(
179 179 'app',
180   - 'Заказ успешно оформлен. Ваш номер заказ: ' . $model->id . '.'
  180 + 'order_success_text {orderId}',
  181 + [
  182 + 'orderId' => $model->id
  183 + ]
181 184 )
182 185 );
183 186 // \Yii::$app->mailer->compose(
... ... @@ -267,7 +270,10 @@
267 270 'success',
268 271 \Yii::t(
269 272 'app',
270   - 'Заказ успешно оформлен. Ваш номер заказ: ' . $model->id . '.'
  273 + 'order_success_text {orderId}',
  274 + [
  275 + 'orderId' => $model->id
  276 + ]
271 277 )
272 278 );
273 279 return $this->redirect($model->returnUrl ? : [ 'site/index' ]);
... ...
frontend/views/account/_menu.php
... ... @@ -21,19 +21,19 @@
21 21 [
22 22 'items' => [
23 23 [
24   - 'label' => '<i class="fa fa-list"></i> Мои замовлення',
  24 + 'label' => '<i class="fa fa-list"></i> ' . Yii::t('app','My orders'),
25 25 'url' => [ 'account/index' ],
26 26 ],
27 27 [
28   - 'label' => '<i class="fa fa-heart"></i> Мои бажання',
  28 + 'label' => '<i class="fa fa-heart"></i> ' . Yii::t('app','My wishes'),
29 29 'url' => [ 'account/wishlist' ],
30 30 ],
31 31 [
32   - 'label' => '<i class="fa fa-user"></i> Мій акаунт',
  32 + 'label' => '<i class="fa fa-user"></i> ' . Yii::t('app','My account'),
33 33 'url' => [ 'account/account' ],
34 34 ],
35 35 [
36   - 'label' => '<i class="fa fa-sign-out"></i> Вийти',
  36 + 'label' => '<i class="fa fa-sign-out"></i> ' . Yii::t('app','Exit'),
37 37 'url' => [ 'site/logout' ],
38 38 ],
39 39 ],
... ...
frontend/views/account/_product.php
... ... @@ -99,7 +99,7 @@
99 99 <?php if ($model->product->is('akcia')) { ?>
100 100  
101 101 <div class="ribbon sale">
102   - <div class="theribbon">АКЦІЯ</div>
  102 + <div class="theribbon"><?=Yii::t('app','SALE')?></div>
103 103 <div class="ribbon-background"></div>
104 104 </div>
105 105 <!-- /.ribbon -->
... ... @@ -108,7 +108,7 @@
108 108 <?php if ($model->product->is('new')) { ?>
109 109  
110 110 <div class="ribbon new">
111   - <div class="theribbon">НОВЕ</div>
  111 + <div class="theribbon"><?=Yii::t('app','NEW')?></div>
112 112 <div class="ribbon-background"></div>
113 113 </div>
114 114 <!-- /.ribbon -->
... ... @@ -117,7 +117,7 @@
117 117  
118 118 <?php if ($model->product->is('top')) { ?>
119 119 <div class="ribbon top">
120   - <div class="theribbon">ТОП</div>
  120 + <div class="theribbon"><?=Yii::t('app','TOP')?></div>
121 121 <div class="ribbon-background"></div>
122 122 </div>
123 123 <!-- /.ribbon -->
... ...
frontend/views/account/account.php
... ... @@ -28,12 +28,12 @@ _________________________________________________________ --&gt;
28 28  
29 29 <div class="col-md-9 clearfix" id="customer-account">
30 30  
31   - <p class="lead">Змініть ваші персональні дані або пароль тут.</p>
  31 + <p class="lead"><?=Yii::t('app','Change your personal data or password here.')?></p>
32 32  
33 33 <div class="box">
34 34  
35 35 <div class="heading">
36   - <h3 class="text-uppercase">Змінити пароль</h3>
  36 + <h3 class="text-uppercase"><?=Yii::t('app','Change password')?></h3>
37 37 </div>
38 38  
39 39 <?php $passwordForm = ActiveForm::begin(
... ... @@ -61,7 +61,7 @@ _________________________________________________________ --&gt;
61 61  
62 62 <div class="text-center">
63 63 <?= Html::submitButton(
64   - '<i class="fa fa-save"></i> Зберегти новий пароль',
  64 + '<i class="fa fa-save"></i> ' .Yii::t('app','Save new password'),
65 65 [ 'class' => 'btn btn-template-main' ]
66 66 ) ?>
67 67 </div>
... ... @@ -73,7 +73,7 @@ _________________________________________________________ --&gt;
73 73  
74 74 <div class="box clearfix">
75 75 <div class="heading">
76   - <h3 class="text-uppercase">Персональні дані</h3>
  76 + <h3 class="text-uppercase"><?=Yii::t('app','Personal data')?></h3>
77 77 </div>
78 78  
79 79 <?php $userForm = ActiveForm::begin(
... ... @@ -101,11 +101,11 @@ _________________________________________________________ --&gt;
101 101 <?= $userForm->field($userModel, 'gender')
102 102 ->dropDownList(
103 103 [
104   - 1 => \Yii::t('app', 'Муж.'),
105   - 2 => \Yii::t('app', 'Жен.'),
  104 + 1 => \Yii::t('app', 'male'),
  105 + 2 => \Yii::t('app', 'female'),
106 106 ],
107 107 [
108   - 'prompt' => \Yii::t('app', 'Пол'),
  108 + 'prompt' => \Yii::t('app', 'Gender'),
109 109 ]
110 110 ) ?>
111 111 </div>
... ... @@ -128,18 +128,19 @@ _________________________________________________________ --&gt;
128 128 DatePicker::className(),
129 129 [
130 130 'options' => [
131   - 'placeholder' => \Yii::t('app', 'Дата рождения ...'),
  131 + 'placeholder' => \Yii::t('app', 'Birthday'),
132 132 ],
133 133 'pluginOptions' => [
134 134 'autoclose' => true,
135 135 'format' => 'dd.mm.yyyy',
136 136 ],
137 137 ]
138   - ) ?>
  138 + )
  139 + ->label(\Yii::t('app', 'Birthday'))?>
139 140 </div>
140 141 <div class="col-sm-12 text-center">
141 142 <?= Html::submitButton(
142   - '<i class="fa fa-save"></i> Сохранить изменения',
  143 + '<i class="fa fa-save"></i> ' .Yii::t('app','Save changes'),
143 144 [
144 145 'class' => 'btn btn-template-main',
145 146 ]
... ...
frontend/views/account/index.php
1 1 <?php
2 2  
3 3 use artbox\order\models\Order;
4   - use yii\helpers\Url;
  4 +use yii\helpers\Html;
  5 +use yii\helpers\Url;
5 6 use yii\web\View;
6 7  
7 8 /**
... ... @@ -9,7 +10,7 @@
9 10 * @var Order[] $orders
10 11 */
11 12  
12   - $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Мои заказы');
  13 + $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'My orders');
13 14  
14 15 ?>
15 16  
... ... @@ -24,10 +25,18 @@ _________________________________________________________ --&gt;
24 25  
25 26 <div class="col-md-9" id="customer-orders">
26 27  
27   - <p class="text-muted lead">Если у вас есть вопросы, пожалуйста,
28   - <a href="<?php echo Url::to(
29   - [ 'site/contact' ]
30   - ); ?>">напишите нам</a>, наш центр обслуживания клиентов работает круглосуточно.</p>
  28 + <p class="text-muted lead"><?php echo \Yii::t(
  29 + 'app',
  30 + 'registration_text',
  31 + [
  32 + 'link' => Html::a(
  33 + \Yii::t('app', 'write to us'),
  34 + [
  35 + 'site/contact',
  36 + ]
  37 + ),
  38 + ]
  39 + ); ?></p>
31 40  
32 41 <div class="box">
33 42  
... ... @@ -35,11 +44,11 @@ _________________________________________________________ --&gt;
35 44 <table class="table table-hover">
36 45 <thead>
37 46 <tr>
38   - <th>Заказ</th>
39   - <th>Дата</th>
40   - <th>Сумма</th>
41   - <th>Статус</th>
42   - <th>Действие</th>
  47 + <th><?=Yii::t('app','Order')?></th>
  48 + <th><?=Yii::t('app','Date')?></th>
  49 + <th><?=Yii::t('app','Amount')?></th>
  50 + <th><?=Yii::t('app','Status')?></th>
  51 + <th><?=Yii::t('app','Action')?></th>
43 52 </tr>
44 53 </thead>
45 54 <tbody>
... ... @@ -55,7 +64,7 @@ _________________________________________________________ --&gt;
55 64 <td><?= date('d.m.Y', $order->created_at); ?></td>
56 65 <td><?= $price ?></td>
57 66 <?php if (empty($order->label)) { ?>
58   - <td><span class="label label-info">Не задан</span>
  67 + <td><span class="label label-info"><?=Yii::t('app','Not specified')?></span>
59 68 </td>
60 69 <?php
61 70 } else { ?>
... ... @@ -69,7 +78,7 @@ _________________________________________________________ --&gt;
69 78 'account/order',
70 79 'id' => $order->id,
71 80 ]
72   - ) ?>" class="btn btn-template-main btn-sm">Посмотреть</a>
  81 + ) ?>" class="btn btn-template-main btn-sm"><?=Yii::t('app','View')?></a>
73 82 </td>
74 83 </tr>
75 84 <?php } ?>
... ...
frontend/views/account/order.php
... ... @@ -11,12 +11,12 @@
11 11 */
12 12  
13 13 $this->params[ 'breadcrumbs' ][] = [
14   - 'label' => \Yii::t('app', 'Заказы'),
  14 + 'label' => Yii::t('app', 'Orders'),
15 15 'url' => [
16 16 'account/index',
17 17 ],
18 18 ];
19   - $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Заказ') . ' № ' . $order->id;
  19 + $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Order') . ' № ' . $order->id;
20 20  
21 21 ?>
22 22  
... ... @@ -30,27 +30,27 @@ _________________________________________________________ --&gt;
30 30  
31 31 <div class="col-md-9 clearfix" id="customer-order">
32 32  
33   - <p class="lead">Заказ №<?= $order->id ?> был перемещён на <strong><?= date(
  33 + <p class="lead"><?= Yii::t('app', 'Order')?> №<?= $order->id ?> <?=Yii::t('app','was moved on')?> <strong><?= date(
34 34 'd.m.Y',
35 35 $order->created_at
36 36 ) ?></strong><?php
37 37 if (!empty($order->label)) {
38   - ?> и в данный момент
  38 + ?> <?=Yii::t('app','and now is')?>
39 39 <strong><?= $order->label->lang->title ?></strong>.<?php } ?></p>
40   - <p class="lead text-muted">Если у вас есть вопросы, пожалуйста,
  40 + <p class="lead text-muted"><?=Yii::t('app','order_text')?>
41 41 <a target="_blank" href="<?= Url::to(
42 42 [ 'site/contact' ]
43   - ) ?>">напишите нам</a>.</p>
  43 + ) ?>"><?=Yii::t('app','write to us')?></a>.</p>
44 44  
45 45 <div class="box">
46 46 <div class="table-responsive">
47 47 <table class="table">
48 48 <thead>
49 49 <tr>
50   - <th colspan="2">Товар</th>
51   - <th>Количество</th>
52   - <th>Цена за единицу</th>
53   - <th>Всего</th>
  50 + <th colspan="2"><?=Yii::t('app','Product')?></th>
  51 + <th><?=Yii::t('app','Quantity')?></th>
  52 + <th><?=Yii::t('app','Unit price')?></th>
  53 + <th><?=Yii::t('app','Total')?></th>
54 54 </tr>
55 55 </thead>
56 56 <tbody>
... ... @@ -94,7 +94,7 @@ _________________________________________________________ --&gt;
94 94 </tbody>
95 95 <tfoot>
96 96 <tr>
97   - <th colspan="4" class="text-right">Всего</th>
  97 + <th colspan="4" class="text-right"><?=Yii::t('app','Total')?></th>
98 98 <th><?= $total ?></th>
99 99 </tr>
100 100 </tfoot>
... ... @@ -105,7 +105,7 @@ _________________________________________________________ --&gt;
105 105  
106 106 <div class="row addresses">
107 107 <div class="col-sm-6 col-sm-offset-6">
108   - <h3 class="text-uppercase"><?= \Yii::t('app', 'Информация') ?></h3>
  108 + <h3 class="text-uppercase"><?= \Yii::t('app', 'Information') ?></h3>
109 109 <p><?= $order->name ?>
110 110 <br><?= $order->phone ?>
111 111 <br><?= $order->city ?>
... ...
frontend/views/basket/cart.php
... ... @@ -12,7 +12,7 @@
12 12 echo Html::a(
13 13 Html::tag(
14 14 'span',
15   - \Yii::t('app', 'Корзина'),
  15 + \Yii::t('app', 'Cart'),
16 16 [
17 17 'class' => 'sub-title',
18 18 ]
... ...
frontend/views/category/_product_item.php
... ... @@ -64,7 +64,7 @@
64 64 [
65 65 'class' => 'fa fa-shopping-cart',
66 66 ]
67   - ) . \Yii::t('app', 'В корзину'),
  67 + ) . \Yii::t('app', 'To cart'),
68 68 '#',
69 69 [
70 70 'class' => 'btn btn-template-main add-to-basket',
... ... @@ -73,7 +73,7 @@
73 73 );
74 74 } else {
75 75 echo Html::a(
76   - \Yii::t('app', 'Нет в наличии'),
  76 + \Yii::t('app', 'Not in stock'),
77 77 '#',
78 78 [
79 79 'class' => 'btn btn-info disabled',
... ... @@ -93,7 +93,7 @@
93 93 if ($product->is('new')) {
94 94 ?>
95 95 <div class="ribbon new">
96   - <div class="theribbon"><?php echo \Yii::t('app', 'Новое'); ?></div>
  96 + <div class="theribbon"><?php echo \Yii::t('app', 'New'); ?></div>
97 97 <div class="ribbon-background"></div>
98 98 </div>
99 99 <?php
... ... @@ -101,7 +101,7 @@
101 101 if ($product->is('akcia')) {
102 102 ?>
103 103 <div class="ribbon sale">
104   - <div class="theribbon"><?php echo \Yii::t('app', 'Акция'); ?></div>
  104 + <div class="theribbon"><?php echo \Yii::t('app', 'Sale'); ?></div>
105 105 <div class="ribbon-background"></div>
106 106 </div>
107 107 <?php
... ... @@ -109,7 +109,7 @@
109 109 if ($product->is('top')) {
110 110 ?>
111 111 <div class="ribbon top">
112   - <div class="theribbon"><?php echo \Yii::t('app', 'Топ'); ?></div>
  112 + <div class="theribbon"><?php echo \Yii::t('app', 'Top'); ?></div>
113 113 <div class="ribbon-background"></div>
114 114 </div>
115 115 <?php
... ...
frontend/views/category/view.php
... ... @@ -33,7 +33,7 @@
33 33 <!-- *** LEFT COLUMN ***
34 34 _________________________________________________________ -->
35 35 <div class="filter_mobile_" style="display: none;">
36   - <a href="#">фільтр</a>
  36 + <a href="#"><?=Yii::t('app','filter')?></a>
37 37 </div>
38 38 <div class="col-sm-3 filters-blocks mob_filters_wr">
39 39 <div class="close_mob_filters" style="display: none"></div>
... ... @@ -113,7 +113,7 @@ _________________________________________________________ --&gt;
113 113 ]
114 114 ) . Html::tag(
115 115 'span',
116   - \Yii::t('app', 'Скинути фільтр'),
  116 + \Yii::t('app', 'reset filter'),
117 117 [
118 118 'class' => 'hidden-sm',
119 119 ]
... ... @@ -195,11 +195,11 @@ _________________________________________________________ --&gt;
195 195 $buthiddenmore = Html::tag(
196 196 'div',
197 197 Html::a(
198   - 'Ещё',
  198 + Yii::t('app','more'),
199 199 '#',
200 200 [
201 201 'class' => 'btn btn-primary btn-xs',
202   - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть']
  202 + 'data' => ['show' => Yii::t('app','more'), 'hide' => Yii::t('app','hide')]
203 203 ]
204 204 ),
205 205 [
... ... @@ -285,11 +285,11 @@ _________________________________________________________ --&gt;
285 285 $buthiddenmore = Html::tag(
286 286 'div',
287 287 Html::a(
288   - 'Ещё',
  288 + Yii::t('app','more'),
289 289 '#',
290 290 [
291 291 'class' => 'btn btn-primary btn-xs',
292   - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть']
  292 + 'data' => ['show' => Yii::t('app','more'), 'hide' => Yii::t('app','hide')]
293 293 ]
294 294 ),
295 295 [
... ... @@ -375,11 +375,11 @@ _________________________________________________________ --&gt;
375 375 $buthiddenmore = Html::tag(
376 376 'div',
377 377 Html::a(
378   - 'Ещё',
  378 + Yii::t('app','more'),
379 379 '#',
380 380 [
381 381 'class' => 'btn btn-primary btn-xs',
382   - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть']
  382 + 'data' => ['show' => Yii::t('app','more'), 'hide' =>Yii::t('app','hide')]
383 383 ]
384 384 ),
385 385 [
... ... @@ -465,11 +465,11 @@ _________________________________________________________ --&gt;
465 465 $buthiddenmore = Html::tag(
466 466 'div',
467 467 Html::a(
468   - 'Ещё',
  468 + Yii::t('app','more'),
469 469 '#',
470 470 [
471 471 'class' => 'btn btn-primary btn-xs',
472   - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть']
  472 + 'data' => ['show' => Yii::t('app','more'), 'hide' => Yii::t('app','hide')]
473 473 ]
474 474 ),
475 475 [
... ... @@ -546,7 +546,7 @@ _________________________________________________________ --&gt;
546 546  
547 547 <div class="panel panel-default sidebar-menu">
548 548 <div class="panel-heading">
549   - <h3 class="panel-title"><?php echo \Yii::t('app', 'Цена'); ?></h3>
  549 + <h3 class="panel-title"><?php echo \Yii::t('app', 'Price'); ?></h3>
550 550 </div>
551 551 <div class="panel-body">
552 552 <div class="row">
... ... @@ -588,7 +588,7 @@ _________________________________________________________ --&gt;
588 588 <div class="row">
589 589 <div class="col-xs-3 col-sm-4 hidden-md hidden-lg"></div>
590 590 <div class="col-xs-6 col-sm-4 col-md-12 btn-slider-price">
591   - <button class="price-apply btn btn-primary">применить</button>
  591 + <button class="price-apply btn btn-primary"><?=Yii::t('app','apply')?></button>
592 592 </div>
593 593 <div class="col-xs-3 col-sm-4 hidden-md hidden-lg"></div>
594 594 </div>
... ... @@ -609,7 +609,7 @@ _________________________________________________________ --&gt;
609 609  
610 610 <div class="col-sm-9">
611 611 <div class="col-md-12 sort-cat-wr">
612   - <p><?php echo \Yii::t('app', 'Сортировка'); ?>:</p>
  612 + <p><?php echo \Yii::t('app', 'Sorting'); ?>:</p>
613 613 <div class="sort-cat">
614 614 <?php
615 615 $currentSortAttribute = array_keys($dataProvider->sort->attributes)[ 0 ];
... ...
frontend/views/checkout/confirm.php
... ... @@ -43,7 +43,7 @@
43 43 [
44 44 'prefix' => 'fa fa-',
45 45 ]
46   - ) . Html::tag('br') . \Yii::t('app', 'Адреса'),
  46 + ) . Html::tag('br') . \Yii::t('app', 'address'),
47 47 [ 'checkout/info' ]
48 48 )
49 49 );
... ... @@ -55,7 +55,7 @@
55 55 [
56 56 'prefix' => 'fa fa-',
57 57 ]
58   - ) . Html::tag('br') . \Yii::t('app', 'Спосіб доставки'),
  58 + ) . Html::tag('br') . \Yii::t('app', 'Method of delivery'),
59 59 [ 'checkout/delivery' ]
60 60 )
61 61 );
... ... @@ -67,7 +67,7 @@
67 67 [
68 68 'prefix' => 'fa fa-',
69 69 ]
70   - ) . Html::tag('br') . \Yii::t('app', 'Спосіб оплати'),
  70 + ) . Html::tag('br') . \Yii::t('app', 'Payment method'),
71 71 [
72 72 'checkout/payment',
73 73 ]
... ... @@ -81,7 +81,7 @@
81 81 [
82 82 'prefix' => 'fa fa-',
83 83 ]
84   - ) . Html::tag('br') . \Yii::t('app', 'Перегляд замовлення'),
  84 + ) . Html::tag('br') . \Yii::t('app', 'View order'),
85 85 '#'
86 86 ),
87 87 [
... ... @@ -187,7 +187,7 @@
187 187 <div class="pull-right">
188 188 <?php
189 189 echo Html::submitButton(
190   - \Yii::t('app', 'Оформити замовлення'),
  190 + \Yii::t('app', 'Checkout'),
191 191 [
192 192 'class' => 'btn btn-success',
193 193 ]
... ... @@ -219,19 +219,19 @@
219 219 <table class="table">
220 220 <tbody>
221 221 <tr>
222   - <td><?php echo \Yii::t('app', 'Всього за товари'); ?></td>
  222 + <td><?php echo \Yii::t('app', 'Total for goods'); ?></td>
223 223 <th><?php echo $sum; ?> грн.</th>
224 224 </tr>
225 225 <tr>
226   - <td><?php echo \Yii::t('app', 'Сума знижки'); ?></td>
  226 + <td><?php echo \Yii::t('app', 'Discount amount'); ?></td>
227 227 <th><?php echo $sumDiscount; ?> грн.</th>
228 228 </tr>
229 229 <tr>
230   - <td><?php echo \Yii::t('app', 'Стоимость доставки'); ?></td>
  230 + <td><?php echo \Yii::t('app', 'Shipping cost'); ?></td>
231 231 <th><?php echo $model->delivery->value; ?> грн.</th>
232 232 </tr>
233 233 <tr class="total">
234   - <td><?php echo \Yii::t('app', 'Всього до сплати'); ?></td>
  234 + <td><?php echo \Yii::t('app', 'Total to pay'); ?></td>
235 235 <th><?php echo $sum + $model->delivery->value; ?> грн.</th>
236 236 </tr>
237 237 </tbody>
... ...
frontend/views/checkout/delivery.php
... ... @@ -162,7 +162,7 @@
162 162 [
163 163 'prefix' => 'fa fa-',
164 164 ]
165   - ) . \Yii::t('app', 'Адреса та інформація'),
  165 + ) . \Yii::t('app', 'Address and information'),
166 166 [
167 167 'checkout/info',
168 168 ],
... ... @@ -175,7 +175,7 @@
175 175 <div class="pull-right">
176 176 <?php
177 177 echo Html::submitButton(
178   - \Yii::t('app', 'Перейти до вибора способу оплати') . Html::icon(
  178 + \Yii::t('app', 'Choose payment method') . Html::icon(
179 179 'chevron-right',
180 180 [
181 181 'prefix' => 'fa fa-',
... ...
frontend/views/checkout/index.php
... ... @@ -187,15 +187,15 @@
187 187 <table class="table">
188 188 <tbody>
189 189 <tr>
190   - <td><?php echo \Yii::t('app', 'Всього за товари'); ?></td>
  190 + <td><?php echo \Yii::t('app', 'Total for goods'); ?></td>
191 191 <th><?php echo $formatter->asDecimal($sum, 2); ?></th>
192 192 </tr>
193 193 <tr>
194   - <td><?php echo \Yii::t('app', 'Сума знижки'); ?></td>
  194 + <td><?php echo \Yii::t('app', 'Discount amount'); ?></td>
195 195 <th><?php echo $formatter->asDecimal($sumDiscount, 2); ?></th>
196 196 </tr>
197 197 <tr class="total">
198   - <td><?php echo \Yii::t('app', 'Всього до сплати'); ?></td>
  198 + <td><?php echo \Yii::t('app', 'Total to pay'); ?></td>
199 199 <th><?php echo $formatter->asDecimal($sum, 2); ?></th>
200 200 </tr>
201 201 </tbody>
... ... @@ -216,7 +216,7 @@
216 216 if (!empty($topItems)) {
217 217 ?>
218 218 <div class="col-xs-12 heading text-center" style="margin-top: 40px;">
219   - <h2><?php echo \Yii::t('app', 'Дивіться також'); ?></h2>
  219 + <h2><?php echo \Yii::t('app', 'See also'); ?></h2>
220 220 </div>
221 221 <div class="col-xs-12 product-carousel">
222 222 <div class="homepage owl-carousel">
... ...
frontend/views/checkout/info.php
... ... @@ -41,7 +41,7 @@
41 41 [
42 42 'prefix' => 'fa fa-',
43 43 ]
44   - ) . Html::tag('br') . \Yii::t('app', 'Адреса'),
  44 + ) . Html::tag('br') . \Yii::t('app', 'address'),
45 45 '#'
46 46 ),
47 47 [
... ... @@ -56,7 +56,7 @@
56 56 [
57 57 'prefix' => 'fa fa-',
58 58 ]
59   - ) . Html::tag('br') . \Yii::t('app', 'Спосіб доставки'),
  59 + ) . Html::tag('br') . \Yii::t('app', 'Method of delivery'),
60 60 [
61 61 'checkout/delivery',
62 62 ]
... ... @@ -73,7 +73,7 @@
73 73 [
74 74 'prefix' => 'fa fa-',
75 75 ]
76   - ) . Html::tag('br') . \Yii::t('app', 'Спосіб оплати'),
  76 + ) . Html::tag('br') . \Yii::t('app', 'Payment method'),
77 77 [
78 78 'checkout/payment',
79 79 ]
... ... @@ -90,7 +90,7 @@
90 90 [
91 91 'prefix' => 'fa fa-',
92 92 ]
93   - ) . Html::tag('br') . \Yii::t('app', 'Перегляд замовлення'),
  93 + ) . Html::tag('br') . \Yii::t('app', 'View order'),
94 94 [
95 95 'checkout/confirm',
96 96 ]
... ... @@ -108,9 +108,9 @@
108 108 ?>
109 109 <div class="box-header">
110 110 <?php
111   - echo \Yii::t('app', 'Если вы уже зарегистрированы в нашем магазине');
  111 + echo \Yii::t('app', 'If you are already registered on our shop');
112 112 ?>
113   - <a href="#" data-toggle="modal" data-target="#login-modal"><span>Войдите в свой аккаунт</span>
  113 + <a href="#" data-toggle="modal" data-target="#login-modal"><span><?=Yii::t('app','Log in into account')?></span>
114 114 <i class="fa fa-sign-in"></i></a>
115 115 </div>
116 116 <?php
... ... @@ -120,7 +120,8 @@
120 120 <div class="col-sm-6">
121 121 <?php
122 122 echo $form->field($model, 'name')
123   - ->textInput();
  123 + ->textInput()
  124 + ->label(Yii::t('app','name'));
124 125 ?>
125 126 </div>
126 127 <div class="col-sm-6"></div>
... ... @@ -129,7 +130,8 @@
129 130 <div class="col-sm-6">
130 131 <?php
131 132 echo $form->field($model, 'secondname')
132   - ->textInput();
  133 + ->textInput()
  134 + ->label(Yii::t('app','secondname'));
133 135 ?>
134 136 </div>
135 137 <div class="col-sm-6"></div>
... ... @@ -140,13 +142,15 @@
140 142 <div class="col-sm-6">
141 143 <?php
142 144 echo $form->field($model, 'city')
143   - ->textInput();
  145 + ->textInput()
  146 + ->label(Yii::t('app','city'));
144 147 ?>
145 148 </div>
146 149 <div class="col-sm-6">
147 150 <?php
148 151 echo $form->field($model, 'address')
149   - ->textInput();
  152 + ->textInput()
  153 + ->label(Yii::t('app','address'));
150 154 ?>
151 155 </div>
152 156 </div>
... ... @@ -156,7 +160,8 @@
156 160 <div class="col-sm-6">
157 161 <?php
158 162 echo $form->field($model, 'phone')
159   - ->textInput();
  163 + ->textInput()
  164 + ->label(Yii::t('app','phone'));
160 165 ?>
161 166 </div>
162 167 <div class="col-sm-6">
... ... @@ -175,7 +180,8 @@
175 180 [
176 181 'rows' => 4,
177 182 ]
178   - );
  183 + )
  184 + ->label(Yii::t('app','comment'));
179 185 ?>
180 186 </div>
181 187 </div>
... ... @@ -191,7 +197,7 @@
191 197 [
192 198 'prefix' => 'fa fa-',
193 199 ]
194   - ) . \Yii::t('app', 'Назад в корзину'),
  200 + ) . \Yii::t('app', 'Back to cart'),
195 201 [
196 202 'checkout/index',
197 203 ],
... ... @@ -204,7 +210,7 @@
204 210 <div class="pull-right">
205 211 <?php
206 212 echo Html::submitButton(
207   - \Yii::t('app', 'Перейти к выбору способа доставки') . Html::icon(
  213 + \Yii::t('app', 'Choose delivery method') . Html::icon(
208 214 'chevron-right',
209 215 [
210 216 'prefix' => 'fa fa-',
... ... @@ -230,26 +236,26 @@
230 236 <div class="col-md-3">
231 237 <div class="box" id="order-summary">
232 238 <div class="box-header">
233   - <h3>Итоговый счет</h3>
  239 + <h3><?=Yii::t('app','Total count')?></h3>
234 240 </div>
235 241 <p class="text-muted small"><?php echo \Yii::t(
236 242 'app',
237   - 'Стоимость доставки рассчитывается в зависимости от адреса и способа доставки'
  243 + 'total_text'
238 244 ); ?></p>
239 245  
240 246 <div class="table-responsive">
241 247 <table class="table">
242 248 <tbody>
243 249 <tr>
244   - <td><?php echo \Yii::t('app', 'Всего за товары'); ?></td>
  250 + <td><?php echo \Yii::t('app', 'Total for goods'); ?></td>
245 251 <th><?php echo $formatter->asDecimal($sum, 2); ?></th>
246 252 </tr>
247 253 <tr>
248   - <td><?php echo \Yii::t('app', 'Сумма скидки'); ?></td>
  254 + <td><?php echo \Yii::t('app', 'Discount amount'); ?></td>
249 255 <th><?php echo $formatter->asDecimal($sumDiscount, 2); ?></th>
250 256 </tr>
251 257 <tr class="total">
252   - <td><?php echo \Yii::t('app', 'Итого к оплате'); ?></td>
  258 + <td><?php echo \Yii::t('app', 'Total to pay'); ?></td>
253 259 <th><?php echo $formatter->asDecimal($sum, 2); ?></th>
254 260 </tr>
255 261 </tbody>
... ...
frontend/views/checkout/payment.php
... ... @@ -41,7 +41,7 @@
41 41 [
42 42 'prefix' => 'fa fa-',
43 43 ]
44   - ) . Html::tag('br') . \Yii::t('app', 'Адрес'),
  44 + ) . Html::tag('br') . \Yii::t('app', 'address'),
45 45 [ 'checkout/info' ]
46 46 )
47 47 );
... ... @@ -53,7 +53,7 @@
53 53 [
54 54 'prefix' => 'fa fa-',
55 55 ]
56   - ) . Html::tag('br') . \Yii::t('app', 'Способ доставки'),
  56 + ) . Html::tag('br') . \Yii::t('app', 'Method of delivery'),
57 57 [ 'checkout/delivery' ]
58 58 )
59 59 );
... ... @@ -65,7 +65,7 @@
65 65 [
66 66 'prefix' => 'fa fa-',
67 67 ]
68   - ) . Html::tag('br') . \Yii::t('app', 'Способ оплаты'),
  68 + ) . Html::tag('br') . \Yii::t('app', 'Payment method'),
69 69 [
70 70 '#',
71 71 ]
... ... @@ -82,7 +82,7 @@
82 82 [
83 83 'prefix' => 'fa fa-',
84 84 ]
85   - ) . Html::tag('br') . \Yii::t('app', 'Просмотр заказа'),
  85 + ) . Html::tag('br') . \Yii::t('app', 'View order'),
86 86 [
87 87 'checkout/confirm',
88 88 ]
... ... @@ -159,7 +159,7 @@
159 159 [
160 160 'prefix' => 'fa fa-',
161 161 ]
162   - ) . \Yii::t('app', 'Доставка'),
  162 + ) . \Yii::t('app', 'Delivery'),
163 163 [
164 164 'checkout/delivery',
165 165 ],
... ... @@ -172,7 +172,7 @@
172 172 <div class="pull-right">
173 173 <?php
174 174 echo Html::submitButton(
175   - \Yii::t('app', 'Перейти к просмотру заказа') . Html::icon(
  175 + \Yii::t('app', 'Go to view order') . Html::icon(
176 176 'chevron-right',
177 177 [
178 178 'prefix' => 'fa fa-',
... ... @@ -198,26 +198,26 @@
198 198 <div class="col-md-3">
199 199 <div class="box" id="order-summary">
200 200 <div class="box-header">
201   - <h3>Итоговый счет</h3>
  201 + <h3><?=Yii::t('app','Total count')?></h3>
202 202 </div>
203 203 <p class="text-muted small"><?php echo \Yii::t(
204 204 'app',
205   - 'Стоимость доставки рассчитывается в зависимости от адреса и способа доставки'
  205 + 'total_text'
206 206 ); ?></p>
207 207  
208 208 <div class="table-responsive">
209 209 <table class="table">
210 210 <tbody>
211 211 <tr>
212   - <td><?php echo \Yii::t('app', 'Всего за товары'); ?></td>
  212 + <td><?php echo \Yii::t('app', 'Total for goods'); ?></td>
213 213 <th><?php echo $formatter->asDecimal($sum, 2); ?></th>
214 214 </tr>
215 215 <tr>
216   - <td><?php echo \Yii::t('app', 'Сумма скидки'); ?></td>
  216 + <td><?php echo \Yii::t('app', 'Discount amount'); ?></td>
217 217 <th><?php echo $formatter->asDecimal($sumDiscount, 2); ?></th>
218 218 </tr>
219 219 <tr class="total">
220   - <td><?php echo \Yii::t('app', 'Итого к оплате'); ?></td>
  220 + <td><?php echo \Yii::t('app', 'Total to pay'); ?></td>
221 221 <th><?php echo $formatter->asDecimal($sum, 2); ?></th>
222 222 </tr>
223 223 </tbody>
... ...
frontend/views/layouts/main.php
... ... @@ -365,7 +365,7 @@ _________________________________________________________ --&gt;
365 365 <div class="inline-block">
366 366 <span class="top-phone"><i class="fa fa-phone"></i>&ensp;<?php echo implode(' ', explode(';', $settings->phone)) ?></span>
367 367 <a href="#" data-toggle="modal" data-target="#callback-modal" class="link-underline_dott">
368   - <?php echo "Зворотній зв'язок"; ?>
  368 + <?php echo Yii::t('app','Callback') ?>
369 369 </a>
370 370 </div>
371 371 <div class="inline-block login">
... ... @@ -373,7 +373,7 @@ _________________________________________________________ --&gt;
373 373 if (\Yii::$app->user->isGuest) {
374 374 ?>
375 375 <a href="#" data-toggle="modal" data-target="#login-modal"><i class="fa fa-sign-in"></i>
376   - <span>Вхід</span></a>
  376 + <span><?=Yii::t('app','Enter')?></span></a>
377 377 <?php
378 378 } else {
379 379 echo Html::a($user->username, [ 'account/index' ]);
... ... @@ -447,11 +447,11 @@ _________________________________________________________ --&gt;
447 447 <?php } ?>
448 448 </ul>
449 449 </li>
450   - <li><a href="/">Главная</a></li>
  450 + <li><a href="/"><?=Yii::t('app','Home')?></a></li>
451 451 <li>
452 452 <?php
453 453 echo Html::a(
454   - \Yii::t('app', 'Акції'),
  454 + \Yii::t('app', 'Sale'),
455 455 [
456 456 '/special/index',
457 457 'type' => 'sale',
... ... @@ -462,7 +462,7 @@ _________________________________________________________ --&gt;
462 462 <li>
463 463 <?php
464 464 echo Html::a(
465   - \Yii::t('app', 'Новинки'),
  465 + \Yii::t('app', 'New'),
466 466 [
467 467 '/special/index',
468 468 'type' => 'new',
... ... @@ -501,14 +501,14 @@ _________________________________________________________ --&gt;
501 501 } ?>">
502 502 <a href="#" <?php echo $isHome ? '' : 'role="button" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="200"'; ?>><span class="btn-like"><?php echo \Yii::t(
503 503 'app',
504   - 'Каталог'
  504 + 'Catalog'
505 505 ); ?><i class="fa fa-bars" aria-hidden="true"></i></span></a>
506 506  
507 507 </li>
508 508 <li class="main-nav-item">
509 509 <?php
510 510 echo Html::a(
511   - \Yii::t('app', 'Акції'),
  511 + \Yii::t('app', 'Sales'),
512 512 [
513 513 '/special/index',
514 514 'type' => 'sale',
... ... @@ -519,7 +519,7 @@ _________________________________________________________ --&gt;
519 519 <li class="main-nav-item">
520 520 <?php
521 521 echo Html::a(
522   - \Yii::t('app', 'Новинки'),
  522 + \Yii::t('app', 'New'),
523 523 [
524 524 '/special/index',
525 525 'type' => 'new',
... ... @@ -530,7 +530,7 @@ _________________________________________________________ --&gt;
530 530 <li class="main-nav-item">
531 531 <?php
532 532 echo Html::a(
533   - \Yii::t('app', 'Блог'),
  533 + \Yii::t('app', 'Blog'),
534 534 [
535 535 '/blog/index',
536 536 ]
... ... @@ -547,7 +547,7 @@ _________________________________________________________ --&gt;
547 547 echo Html::a(
548 548 Html::tag(
549 549 'span',
550   - \Yii::t('app', 'Корзина'),
  550 + \Yii::t('app', 'Cart'),
551 551 [
552 552 'class' => 'sub-title',
553 553 ]
... ... @@ -687,7 +687,7 @@ _________________________________________________________ --&gt;
687 687 '/site/request-password-reset',
688 688  
689 689 ]
690   - ) ?>">Відновити пароль</a>
  690 + ) ?>"><?=Yii::t('app','Restore password')?></a>
691 691 <div class="text-center">
692 692 <?php
693 693 echo Html::submitButton(
... ...
frontend/views/page/view.php
... ... @@ -45,7 +45,7 @@
45 45 <div class="panel panel-default sidebar-menu">
46 46  
47 47 <div class="panel-heading">
48   - <h3 class="panel-title">Страницы</h3>
  48 + <h3 class="panel-title"><?=Yii::t('app','Pages')?></h3>
49 49 </div>
50 50  
51 51 <div class="panel-body">
... ...
frontend/views/product/view.php
... ... @@ -237,7 +237,7 @@ JS;
237 237 <p class="no-margin"><?php echo $variant->sku; ?><span class="product-id">Код: <?= $model->id ?></span>
238 238 </p>
239 239 <p class="price">
240   - <span class="price-title">Ціна:</span><?php echo $variant->price ? : 0; ?> грн&ensp;
  240 + <span class="price-title"><?=Yii::t('app','Price')?>:</span><?php echo $variant->price ? : 0; ?> грн&ensp;
241 241 <?php
242 242 if ($variant->canBuy()) {
243 243 echo Html::a(
... ...
frontend/views/search/category.php
... ... @@ -15,7 +15,7 @@
15 15 $view = $this;
16 16  
17 17 $this->params[ 'breadcrumbs' ][] = [
18   - 'label' => \Yii::t('app', 'Поиск'),
  18 + 'label' => \Yii::t('app', 'Пошук'),
19 19 'url' => [
20 20 'index',
21 21 'word' => $searchForm->word,
... ... @@ -23,7 +23,7 @@
23 23 ];
24 24 $this->params[ 'breadcrumbs' ][] = \Yii::t(
25 25 'app',
26   - 'Поиск по категории {category_name}',
  26 + 'search in category',
27 27 [
28 28 'category_name' => $category->lang->title,
29 29 ]
... ... @@ -120,7 +120,7 @@
120 120 ]
121 121 );
122 122 } else {
123   - echo \Yii::t('app', 'Введите текст для поиска в строке выше.');
  123 + echo \Yii::t('app', 'Введіть текст для пошуку в рядку вище.');
124 124 }
125 125 ?>
126 126 </div>
... ...
frontend/views/search/index.php
... ... @@ -13,7 +13,7 @@
13 13  
14 14 $view = $this;
15 15  
16   - $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Поиск');
  16 + $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Пошук');
17 17 ?>
18 18 <div id="content">
19 19 <div class="container">
... ... @@ -100,7 +100,7 @@
100 100 ]
101 101 );
102 102 } else {
103   - echo \Yii::t('app', 'Введите текст для поиска в строке выше.');
  103 + echo \Yii::t('app', 'Введіть текст для пошуку в рядку вище.');
104 104 }
105 105 ?>
106 106 </div>
... ...
frontend/views/site/contact.php
... ... @@ -16,7 +16,7 @@ use himiklab\yii2\recaptcha\ReCaptcha;
16 16 MapAsset::register($this);
17 17 $settings = Settings::getInstance();
18 18  
19   - $this->title = \Yii::t('app', 'Контакты');
  19 + $this->title = \Yii::t('app', 'Контакти');
20 20 $this->params[ 'breadcrumbs' ][] = $this->title;
21 21  
22 22 $js = <<< JS
... ... @@ -36,7 +36,7 @@ JS;
36 36 <div class="col-md-12">
37 37 <section>
38 38 <div class="heading">
39   - <h2>Мы здесь чтобы помочь вам</h2>
  39 + <h2><?=Yii::t('app','contact_page_text')?></h2>
40 40 </div>
41 41 </section>
42 42 </div>
... ... @@ -51,7 +51,7 @@ JS;
51 51 <div class="icon">
52 52 <i class="fa fa-map-marker"></i>
53 53 </div>
54   - <h3>Адрес</h3>
  54 + <h3><?=Yii::t('app','address')?></h3>
55 55 <p>
56 56 <?php
57 57 if (!empty( $settings->street )) {
... ... @@ -108,7 +108,7 @@ JS;
108 108 <div class="icon">
109 109 <i class="fa fa-envelope"></i>
110 110 </div>
111   - <h3>Электронная почта</h3>
  111 + <h3><?=Yii::t('app','email')?></h3>
112 112 <ul class="list-style-none">
113 113 <li>
114 114 <?php
... ... @@ -135,7 +135,7 @@ JS;
135 135  
136 136 <div class="col-md-12">
137 137 <div class="heading">
138   - <h2> Форма контактов </h2>
  138 + <h2> <?=Yii::t('app','Contact form')?> </h2>
139 139 </div>
140 140 </div>
141 141  
... ... @@ -151,16 +151,19 @@ JS;
151 151 <div class="row">
152 152 <div class="col-sm-12">
153 153 <?= $form->field($contact, 'name')
154   - ->textInput(['autocomplete' => 'off']); ?>
  154 + ->textInput(['autocomplete' => 'off'])
  155 + ->label(Yii::t('app','name')); ?>
155 156 </div>
156 157  
157 158 <div class="col-sm-6">
158 159 <?= $form->field($contact, 'email')
159   - ->textInput(['autocomplete' => 'off']); ?>
  160 + ->textInput(['autocomplete' => 'off'])
  161 + ->label(Yii::t('app','Email'));?>
160 162 </div>
161 163 <div class="col-sm-6">
162 164 <?= $form->field($contact, 'phone')
163   - ->textInput(['autocomplete' => 'off']); ?>
  165 + ->textInput(['autocomplete' => 'off'])
  166 + ->label(Yii::t('app','phone')); ?>
164 167 </div>
165 168 <div class="col-sm-12">
166 169 <?= $form->field($contact, 'message')
... ... @@ -168,7 +171,8 @@ JS;
168 171 [
169 172 'rows' => 3,
170 173 ]
171   - ); ?>
  174 + )
  175 + ->label(Yii::t('app','message')); ?>
172 176 </div>
173 177 <!-- --><?= $form->field($contact, 'reCaptcha')->widget(
174 178 \himiklab\yii2\recaptcha\ReCaptcha::className(),
... ... @@ -179,7 +183,7 @@ JS;
179 183 )->label(false) ?>
180 184 <div class="col-sm-12 text-center">
181 185 <?= Html::submitButton(
182   - '<i class="fa fa-envelope-o"></i> Отправить сообщение',
  186 + '<i class="fa fa-envelope-o"></i> ' . Yii::t('app','Send message'),
183 187 [
184 188 'class' => 'btn btn-template-main',
185 189 ]
... ...
frontend/views/site/error.php
... ... @@ -43,13 +43,13 @@
43 43 </a>
44 44 </p>
45 45  
46   - <h3>Извините, этой страницы не существует</h3>
47   - <h4 class="text-muted">Ошибка 404 - Страница не найдена</h4>
  46 + <h3>Вибачте, цієї сторінки не існує</h3>
  47 + <h4 class="text-muted">Помилка 404 - сторінку не знайдено</h4>
48 48  
49 49 <p class="buttons">
50 50 <a href="<?php echo Url::to(
51 51 [ 'site/index' ]
52   - ); ?>" class="btn btn-template-main"><i class="fa fa-home"></i> На главную</a>
  52 + ); ?>" class="btn btn-template-main"><i class="fa fa-home"></i> На головну</a>
53 53 </p>
54 54 </div>
55 55  
... ...
frontend/views/site/login.php
... ... @@ -9,7 +9,7 @@
9 9 use yii\bootstrap\Html;
10 10 use yii\helpers\Url;
11 11  
12   - $this->title = \Yii::t('app', 'Новый аккаунт / Регистрация');
  12 + $this->title = \Yii::t('app', 'registration');
13 13 $this->params[ 'breadcrumbs' ][] = $this->title;
14 14 ?>
15 15 <div id="content">
... ... @@ -18,15 +18,15 @@
18 18 <div class="row">
19 19 <div class="col-md-6">
20 20 <div class="box">
21   - <h2 class="text-uppercase"><?php echo \Yii::t('app', 'Новый аккаунт'); ?></h2>
  21 + <h2 class="text-uppercase"><?php echo \Yii::t('app', 'New account'); ?></h2>
22 22  
23   - <p class="lead"><?php echo \Yii::t('app', 'Не зарегистрированы?'); ?></p>
  23 + <p class="lead"><?php echo \Yii::t('app', 'Not registered yet?'); ?></p>
24 24 <p class="text-muted"><?php echo \Yii::t(
25 25 'app',
26   - 'Если у вас есть вопросы, пожалуйста, {link}, наш центр обслуживания клиентов работает круглосуточно.',
  26 + 'registration_text',
27 27 [
28 28 'link' => Html::a(
29   - \Yii::t('app', 'напишите нам'),
  29 + \Yii::t('app', 'write to us'),
30 30 [
31 31 'site/contact',
32 32 ]
... ... @@ -52,7 +52,7 @@
52 52 [
53 53 'prefix' => 'fa fa-',
54 54 ]
55   - ) . \Yii::t('app', 'Зарегистрироваться'),
  55 + ) . \Yii::t('app', 'Register now!'),
56 56 [
57 57 'class' => 'btn btn-template-main',
58 58 ]
... ... @@ -68,9 +68,9 @@
68 68  
69 69 <div class="col-md-6">
70 70 <div class="box">
71   - <h2 class="text-uppercase"><?php echo \Yii::t('app', 'Войти'); ?></h2>
  71 + <h2 class="text-uppercase"><?php echo \Yii::t('app', 'Enter'); ?></h2>
72 72  
73   - <p class="lead"><?php echo \Yii::t('app', 'Уже зарегистрированы?'); ?></p>
  73 + <p class="lead"><?php echo \Yii::t('app', 'Already registered?'); ?></p>
74 74  
75 75 <hr>
76 76  
... ... @@ -88,7 +88,7 @@
88 88 '/site/request-password-reset',
89 89  
90 90 ]
91   - ) ?>">Восстановить пароль</a>
  91 + ) ?>"><?=Yii::t('app','Restore password')?></a>
92 92 <?php
93 93 echo Html::tag(
94 94 'div',
... ...
frontend/views/site/requestPasswordResetToken.php
... ... @@ -8,7 +8,7 @@
8 8 use yii\helpers\Html;
9 9 use yii\bootstrap\ActiveForm;
10 10  
11   - $this->title = 'Восстановление пароля';
  11 + $this->title =Yii::t('app','Restoring password');
12 12 $this->params[ 'breadcrumbs' ][] = $this->title;
13 13 ?>
14 14 <div id="content">
... ... @@ -18,7 +18,7 @@
18 18 <div class="site-request-password-reset">
19 19 <h1><?= Html::encode($this->title) ?></h1>
20 20  
21   - <p>Пожалуйста введите свой email. На него будет отправлена ссылка для сброса пароля</p>
  21 + <p>Будь ласка, введіть свій email. На нього буде відправлено посилання для скидання пароля</p>
22 22  
23 23 <div class="row">
24 24 <div class="col-lg-5">
... ...
frontend/views/site/resetPassword.php
... ... @@ -18,7 +18,7 @@
18 18 <div class="site-reset-password">
19 19 <h1><?= Html::encode($this->title) ?></h1>
20 20  
21   - <p>Введите новый пароль:</p>
  21 + <p>Введіть новий пароль:</p>
22 22  
23 23 <div class="row">
24 24 <div class="col-lg-5">
... ...