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