From 10e7446865544e3ace2527660af4c378cc62b391 Mon Sep 17 00:00:00 2001 From: diver90 Date: Fri, 28 May 2021 16:57:57 +0300 Subject: [PATCH] translate to ua ready --- common/messages/ru/app.php | 217 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------- common/models/SignupForm.php | 7 ++++--- frontend/controllers/CategoryController.php | 10 +++++----- frontend/controllers/CheckoutController.php | 10 ++++++++-- frontend/views/account/_menu.php | 8 ++++---- frontend/views/account/_product.php | 6 +++--- frontend/views/account/account.php | 21 +++++++++++---------- frontend/views/account/index.php | 35 ++++++++++++++++++++++------------- frontend/views/account/order.php | 24 ++++++++++++------------ frontend/views/basket/cart.php | 2 +- frontend/views/category/_product_item.php | 10 +++++----- frontend/views/category/view.php | 26 +++++++++++++------------- frontend/views/checkout/confirm.php | 18 +++++++++--------- frontend/views/checkout/delivery.php | 4 ++-- frontend/views/checkout/index.php | 8 ++++---- frontend/views/checkout/info.php | 44 +++++++++++++++++++++++++------------------- frontend/views/checkout/payment.php | 22 +++++++++++----------- frontend/views/layouts/main.php | 22 +++++++++++----------- frontend/views/page/view.php | 2 +- frontend/views/product/view.php | 2 +- frontend/views/search/category.php | 6 +++--- frontend/views/search/index.php | 4 ++-- frontend/views/site/contact.php | 24 ++++++++++++++---------- frontend/views/site/error.php | 6 +++--- frontend/views/site/login.php | 18 +++++++++--------- frontend/views/site/requestPasswordResetToken.php | 4 ++-- frontend/views/site/resetPassword.php | 2 +- 27 files changed, 321 insertions(+), 241 deletions(-) diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index 7385ea8..0ee6d87 100755 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -1,83 +1,136 @@ 'Вхід для користувачів', - 'Login' => 'Войти', - 'Not registered yet?' => 'Не зарегистрированы?', - 'Register now!' => 'Зарегистрироваться', - 'Отправить' => ' Отправить', - 'Read more' => 'Читати далі', - 'Continue reading' => 'Читати далі', - 'User section' => 'Раздел пользователя', - 'Product' => 'Товар', - 'Quantity' => 'Кількість', - 'Unit price' => 'Ціна за одиницю', - 'Discount' => 'Знижка', - 'Total' => 'Всього', - 'Back to payment method' => 'Повернутися до способу оплати', - 'Please choose delivery method.' => 'Пожалуйста, выберите способ доставки.', - 'Please choose payment method.' => 'Пожалуйста, выберите способ оплаты.', - 'Home' => 'Головна', - 'Toggle navigation' => 'Переключатель навигации', - 'Catalog' => 'Каталог', - 'Options' => 'Опции', - 'Options for products' => 'Опции для продуктов', - 'Complementary' => 'Дополнительно', - 'Exclusion' => 'Исключения', - 'Options for variants' => 'Опции для вариантов', - 'Blog' => 'Блог', - 'Write text to search for.' => 'Введиите текст для поиска.', - 'Write at least 3 symbols.' => 'Введите минимум 3 символа', - 'Save' => 'Сохранить', - 'Title' => 'Заголовок', - 'Select color ...' => 'Выберите цвет ...', - 'Create' => 'Создать', - 'Update' => 'Обновить', - 'Search' => 'Найти', - 'Reset' => 'Сбросить', - 'Alias Value' => 'Значение псевдонима', - 'Update Category' => 'Обновить категорию', - 'Image' => 'Изображение', - 'Brand Title' => 'Заголовок бренда', - 'Created At' => 'Создано', - 'Status' => 'Статус', - 'Sort' => 'Сортування', - 'Upload Document' => 'Загрузить документ', - 'Send' => 'Отправить', - 'Generate' => 'Сгенерировать', - 'Common' => 'Общее', - 'Gallery' => 'Галерея', - 'Add' => 'Добавить', - 'Product option group complementary' => 'Дополнительные группы опций товара', - 'Is Filter' => 'Является фильтром', - 'Search for a categories ...' => 'Пошук категорій ..', - 'Product option group exclude' => 'Исключения группы опций товара', - 'Variant option group exclude' => 'Исключения группы варианта товара', - 'Option Groups' => 'Группы опций', - 'Image Id' => 'ID изображения', - 'Updated At' => 'Обновлено', - 'Body' => 'Тело', - 'Brands' => 'Бренди', - 'Body Preview' => 'Предпросмотр', - 'Author ID' => 'ID автора', - 'Description' => 'Опис', - 'Parent ID' => 'Родительский ID', - 'Count' => 'Кількість', - 'Color' => 'Колір', - 'Slider' => 'Слайдер', - 'Slides' => 'Слайды', - 'Link' => 'Ссылка', - 'Image ID' => 'Изображение', - 'Create {item}' => 'Создать {item}', - 'Update {item}' => 'Обновить {item}', - 'Create Slide' => 'Создать слайд', - 'Slide' => 'Слайд', - 'Your order {orderId} successfully created!' => 'Ваше замовлення {orderId} успішно оформлено', - 'Order info:' => 'Інформація про замовлення:', - 'Article' => 'Артикул', - 'Price' => 'Цiна', - 'Sum' => 'Сума', - 'Delivery' => 'Доставка', - 'Order {orderId} successfully created!' => 'Заказ {orderId} успешно оформлен!', - 'Total count' => 'Підсумковий рахунок', - 'total_text' => 'Вартість доставки розраховується в залежності від адреси та способу доставки', - ]; \ No newline at end of file +return [ + 'Customer login' => 'Вход для пользователей', + 'Login' => 'Войти', + 'Not registered yet?' => 'Не зарегистрированы?', + 'Already registered?' => 'Уже зарегистрированы?', + 'Register now!' => 'Зарегистрироваться', + 'Отправить' => ' Отправить', + 'Read more' => 'Читать далее', + 'Continue reading' => 'Продолжить чтение', + 'User section' => 'Раздел пользователя', + 'Product' => 'Товар', + 'Quantity' => 'Количество', + 'Unit price' => 'Цена за единицу', + 'Discount' => 'Скидка', + 'Total' => 'Всего', + 'Back to payment method' => 'Вернуться к спообу оплаты', + 'Please choose delivery method.' => 'Пожалуйста, выберите способ доставки.', + 'Please choose payment method.' => 'Пожалуйста, выберите способ оплаты.', + 'Home' => 'Главная', + 'Toggle navigation' => 'Переключатель навигации', + 'Catalog' => 'Каталог', + 'Options' => 'Опции', + 'Options for products' => 'Опции для продуктов', + 'Complementary' => 'Дополнительно', + 'Exclusion' => 'Исключения', + 'Options for variants' => 'Опции для вариантов', + 'Blog' => 'Блог', + 'Write text to search for.' => 'Введиите текст для поиска.', + 'Write at least 3 symbols.' => 'Введите минимум 3 символа', + 'Save' => 'Сохранить', + 'Title' => 'Заголовок', + 'Select color ...' => 'Выберите цвет ...', + 'Create' => 'Создать', + 'Update' => 'Обновить', + 'Search' => 'Найти', + 'Reset' => 'Сбросить', + 'Alias Value' => 'Значение псевдонима', + 'Update Category' => 'Обновить категорию', + 'Image' => 'Изображение', + 'Brand Title' => 'Заголовок бренда', + 'Created At' => 'Создано', + 'Status' => 'Статус', + 'Sort' => 'Сортировка', + 'Upload Document' => 'Загрузить документ', + 'Send' => 'Отправить', + 'Generate' => 'Сгенерировать', + 'Common' => 'Общее', + 'Gallery' => 'Галерея', + 'Add' => 'Добавить', + 'Product option group complementary' => 'Дополнительные группы опций товара', + 'Is Filter' => 'Является фильтром', + 'Search for a categories ...' => 'Поиск категорий ..', + 'Product option group exclude' => 'Исключения группы опций товара', + 'Variant option group exclude' => 'Исключения группы варианта товара', + 'Option Groups' => 'Группы опций', + 'Image Id' => 'ID изображения', + 'Updated At' => 'Обновлено', + 'Body' => 'Тело', + 'Body Preview' => 'Предпросмотр', + 'Author ID' => 'ID автора', + 'Description' => 'Описание', + 'Parent ID' => 'Родительский ID', + 'Count' => 'Количество', + 'Color' => 'Цвет', + 'Slider' => 'Слайдер', + 'Slides' => 'Слайды', + 'Link' => 'Ссылка', + 'Image ID' => 'Изображение', + 'Create {item}' => 'Создать {item}', + 'Update {item}' => 'Обновить {item}', + 'Create Slide' => 'Создать слайд', + 'Slide' => 'Слайд', + 'Your order {orderId} successfully created!' => 'Ваш заказ {orderId} успешно оформлен', + 'Order info:' => 'Информация о заказе:', + 'Article' => 'Артикул', + 'Price' => 'Цена', + 'Sum' => 'Сумма', + 'Delivery' => 'Доставка', + 'Order {orderId} successfully created!' => 'Заказ {orderId} успешно оформлен!', + 'Total count' => 'Итоговый счет', + 'total_text' => 'Стоимость доставки рассчитывается в зависимости от адреса и способа доставки', + 'If you are already registered on our shop' => 'Если вы уже зарегистрированы в нашем магазине', + 'Log in into account' => 'Войдите в свой аккаунт', + 'Back to cart' => 'Назад в корзину', + 'Choose delivery method' => 'Перейти к выбору способа доставки', + 'Choose payment method' => 'Перейти к выбору способа оплаты', + 'Go to view order' => 'Перейти к просмотру заказа', + 'Total for goods' => 'Всего за товары', + 'Discount amount' => 'Сумма скидки', + 'Checkout' => 'Оформить заказ', + 'Total to pay' => 'Итого к оплате', + 'Shipping cost' => 'Стоимость доставки', + 'Address and information' => 'Адрес и информация', + 'View order' => 'Просмотр заказа', + 'Payment method' => 'Способ оплаты', + 'Method of delivery' => 'Способ доставки', + 'order_success_text {orderId}' => 'Заказ успешно оформлен. Ваш номер заказа: {orderId}', + 'Callback' => 'Обратный звонок', + 'Enter' => 'Вход', + 'New' => 'Новинки', + 'Top' => 'Топ', + 'Sale' => 'Акция', + 'Sales' => 'Акции', + 'Cart' => 'Корзина', + 'registration' => 'Новый аккаунт / Регистрация', + 'New account' => 'Новый аккаунт', + 'write to us' => 'напишите нам', + 'registration_text' => 'Если у вас есть вопросы, пожалуйста, {link}, наш центр обслуживания клиентов работает круглосуточно.', + 'name and secondname' => 'Имя и фамилия', + 'password' => 'Пароль', + 'My orders' => 'Мои заказы', + 'Date' => 'Дата', + 'Amount' => 'Сумма', + 'Action' => 'Действие', + 'View' => 'Посмотреть', + 'Not specified' => 'Не задан', + 'Exit' => 'Выйти', + 'My account' => 'Мой аккаунт', + 'My wishes' => 'Мои желания', + 'NEW' => 'НОВОЕ', + 'TOP' => 'ТОП', + 'SALE' => 'АКЦИЯ', + 'Personal data' => 'Персональные данные', + 'Change password' => 'Изменить пароль', + 'Save new password' => 'Сохранить новый пароль', + 'Change your personal data or password here.'=> 'Измените ваши персональные данные или пароль тут.', + 'Birthday' => 'Дата рождения', + 'Gender' => 'Пол', + 'Save changes' => 'Сохранить изменения', + 'Orders' => 'Заказы', + 'was moved on' => 'был перемещён на', + 'and now is' => 'и в данный момент', + 'order_text' => 'Если у вас есть вопросы, пожалуйста,', + 'Information' => 'Информация', +]; \ No newline at end of file diff --git a/common/models/SignupForm.php b/common/models/SignupForm.php index 10104a7..e19190d 100755 --- a/common/models/SignupForm.php +++ b/common/models/SignupForm.php @@ -3,6 +3,7 @@ namespace common\models; use artbox\order\models\Customer; + use Yii; use yii\base\Model; /** @@ -101,9 +102,9 @@ public function attributeLabels() { return [ - 'username' => 'Имя и фамилия', - 'email' => 'Email', - 'password' => 'Пароль', + 'username' => Yii::t('app','name and secondname'), + 'email' => Yii::t('app','Email'), + 'password' => Yii::t('app','password'), ]; } } \ No newline at end of file diff --git a/frontend/controllers/CategoryController.php b/frontend/controllers/CategoryController.php index c59537b..787363b 100755 --- a/frontend/controllers/CategoryController.php +++ b/frontend/controllers/CategoryController.php @@ -70,7 +70,7 @@ 'desc' => [ 'product.id' => SORT_DESC, ], - 'label' => \Yii::t('app', 'по умолчанию'), + 'label' => \Yii::t('app', Yii::t('app','default')), ], 'title_asc' => [ 'asc' => [ @@ -79,7 +79,7 @@ 'desc' => [ 'product_lang.title' => SORT_ASC, ], - 'label' => \Yii::t('app', 'по имени от А до Я'), + 'label' => \Yii::t('app', Yii::t('app','a-z')), ], 'title_desc' => [ 'asc' => [ @@ -88,7 +88,7 @@ 'desc' => [ 'product_lang.title' => SORT_DESC, ], - 'label' => \Yii::t('app', 'по имени от Я до А'), + 'label' => \Yii::t('app', Yii::t('app','z-a')), ], 'price_asc' => [ 'asc' => [ @@ -97,7 +97,7 @@ 'desc' => [ 'variant.price' => SORT_ASC, ], - 'label' => \Yii::t('app', 'по цене по возрастанию'), + 'label' => \Yii::t('app', Yii::t('app','price asc')), ], 'price_desc' => [ 'asc' => [ @@ -106,7 +106,7 @@ 'desc' => [ 'variant.price' => SORT_DESC, ], - 'label' => \Yii::t('app', 'по цене по убыванию'), + 'label' => \Yii::t('app', Yii::t('app','price desc')), ], ], 'defaultOrder' => [ diff --git a/frontend/controllers/CheckoutController.php b/frontend/controllers/CheckoutController.php index a5751d3..a2bc3d1 100644 --- a/frontend/controllers/CheckoutController.php +++ b/frontend/controllers/CheckoutController.php @@ -177,7 +177,10 @@ 'success', \Yii::t( 'app', - 'Заказ успешно оформлен. Ваш номер заказ: ' . $model->id . '.' + 'order_success_text {orderId}', + [ + 'orderId' => $model->id + ] ) ); // \Yii::$app->mailer->compose( @@ -267,7 +270,10 @@ 'success', \Yii::t( 'app', - 'Заказ успешно оформлен. Ваш номер заказ: ' . $model->id . '.' + 'order_success_text {orderId}', + [ + 'orderId' => $model->id + ] ) ); return $this->redirect($model->returnUrl ? : [ 'site/index' ]); diff --git a/frontend/views/account/_menu.php b/frontend/views/account/_menu.php index 06794ba..78f49b2 100755 --- a/frontend/views/account/_menu.php +++ b/frontend/views/account/_menu.php @@ -21,19 +21,19 @@ [ 'items' => [ [ - 'label' => ' Мои замовлення', + 'label' => ' ' . Yii::t('app','My orders'), 'url' => [ 'account/index' ], ], [ - 'label' => ' Мои бажання', + 'label' => ' ' . Yii::t('app','My wishes'), 'url' => [ 'account/wishlist' ], ], [ - 'label' => ' Мій акаунт', + 'label' => ' ' . Yii::t('app','My account'), 'url' => [ 'account/account' ], ], [ - 'label' => ' Вийти', + 'label' => ' ' . Yii::t('app','Exit'), 'url' => [ 'site/logout' ], ], ], diff --git a/frontend/views/account/_product.php b/frontend/views/account/_product.php index 5b1a3a7..517483c 100755 --- a/frontend/views/account/_product.php +++ b/frontend/views/account/_product.php @@ -99,7 +99,7 @@ product->is('akcia')) { ?>
-
АКЦІЯ
+
@@ -108,7 +108,7 @@ product->is('new')) { ?>
-
НОВЕ
+
@@ -117,7 +117,7 @@ product->is('top')) { ?>
-
ТОП
+
diff --git a/frontend/views/account/account.php b/frontend/views/account/account.php index 13aa757..4dc3cfd 100755 --- a/frontend/views/account/account.php +++ b/frontend/views/account/account.php @@ -28,12 +28,12 @@ _________________________________________________________ -->
-

Змініть ваші персональні дані або пароль тут.

+

-

Змінити пароль

+

Зберегти новий пароль', + ' ' .Yii::t('app','Save new password'), [ 'class' => 'btn btn-template-main' ] ) ?>
@@ -73,7 +73,7 @@ _________________________________________________________ -->
-

Персональні дані

+

field($userModel, 'gender') ->dropDownList( [ - 1 => \Yii::t('app', 'Муж.'), - 2 => \Yii::t('app', 'Жен.'), + 1 => \Yii::t('app', 'male'), + 2 => \Yii::t('app', 'female'), ], [ - 'prompt' => \Yii::t('app', 'Пол'), + 'prompt' => \Yii::t('app', 'Gender'), ] ) ?>
@@ -128,18 +128,19 @@ _________________________________________________________ --> DatePicker::className(), [ 'options' => [ - 'placeholder' => \Yii::t('app', 'Дата рождения ...'), + 'placeholder' => \Yii::t('app', 'Birthday'), ], 'pluginOptions' => [ 'autoclose' => true, 'format' => 'dd.mm.yyyy', ], ] - ) ?> + ) + ->label(\Yii::t('app', 'Birthday'))?>
Сохранить изменения', + ' ' .Yii::t('app','Save changes'), [ 'class' => 'btn btn-template-main', ] diff --git a/frontend/views/account/index.php b/frontend/views/account/index.php index 02ccee8..dd29d36 100755 --- a/frontend/views/account/index.php +++ b/frontend/views/account/index.php @@ -1,7 +1,8 @@ params[ 'breadcrumbs' ][] = \Yii::t('app', 'Мои заказы'); + $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'My orders'); ?> @@ -24,10 +25,18 @@ _________________________________________________________ -->
-

Если у вас есть вопросы, пожалуйста, - напишите нам, наш центр обслуживания клиентов работает круглосуточно.

+

Html::a( + \Yii::t('app', 'write to us'), + [ + 'site/contact', + ] + ), + ] + ); ?>

@@ -35,11 +44,11 @@ _________________________________________________________ --> - - - - - + + + + + @@ -55,7 +64,7 @@ _________________________________________________________ --> label)) { ?> - @@ -69,7 +78,7 @@ _________________________________________________________ --> 'account/order', 'id' => $order->id, ] - ) ?>" class="btn btn-template-main btn-sm">Посмотреть + ) ?>" class="btn btn-template-main btn-sm"> diff --git a/frontend/views/account/order.php b/frontend/views/account/order.php index dd4480b..7b3ce9f 100755 --- a/frontend/views/account/order.php +++ b/frontend/views/account/order.php @@ -11,12 +11,12 @@ */ $this->params[ 'breadcrumbs' ][] = [ - 'label' => \Yii::t('app', 'Заказы'), + 'label' => Yii::t('app', 'Orders'), 'url' => [ 'account/index', ], ]; - $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Заказ') . ' № ' . $order->id; + $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Order') . ' № ' . $order->id; ?> @@ -30,27 +30,27 @@ _________________________________________________________ -->
-

Заказ №id ?> был перемещён на id ?> created_at ) ?>label)) { - ?> и в данный момент + ?> label->lang->title ?>.

-

Если у вас есть вопросы, пожалуйста, +

напишите нам.

+ ) ?>">.

ЗаказДатаСуммаСтатусДействие
created_at); ?> Не задан +
- - - - + + + + @@ -94,7 +94,7 @@ _________________________________________________________ --> - + @@ -105,7 +105,7 @@ _________________________________________________________ -->
-

+

name ?>
phone ?>
city ?> diff --git a/frontend/views/basket/cart.php b/frontend/views/basket/cart.php index d706fc5..fb4a222 100755 --- a/frontend/views/basket/cart.php +++ b/frontend/views/basket/cart.php @@ -12,7 +12,7 @@ echo Html::a( Html::tag( 'span', - \Yii::t('app', 'Корзина'), + \Yii::t('app', 'Cart'), [ 'class' => 'sub-title', ] diff --git a/frontend/views/category/_product_item.php b/frontend/views/category/_product_item.php index a988429..e640421 100755 --- a/frontend/views/category/_product_item.php +++ b/frontend/views/category/_product_item.php @@ -64,7 +64,7 @@ [ 'class' => 'fa fa-shopping-cart', ] - ) . \Yii::t('app', 'В корзину'), + ) . \Yii::t('app', 'To cart'), '#', [ 'class' => 'btn btn-template-main add-to-basket', @@ -73,7 +73,7 @@ ); } else { echo Html::a( - \Yii::t('app', 'Нет в наличии'), + \Yii::t('app', 'Not in stock'), '#', [ 'class' => 'btn btn-info disabled', @@ -93,7 +93,7 @@ if ($product->is('new')) { ?>

-
+
is('akcia')) { ?>
-
+
is('top')) { ?>
-
+
@@ -113,7 +113,7 @@ _________________________________________________________ --> ] ) . Html::tag( 'span', - \Yii::t('app', 'Скинути фільтр'), + \Yii::t('app', 'reset filter'), [ 'class' => 'hidden-sm', ] @@ -195,11 +195,11 @@ _________________________________________________________ --> $buthiddenmore = Html::tag( 'div', Html::a( - 'Ещё', + Yii::t('app','more'), '#', [ 'class' => 'btn btn-primary btn-xs', - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть'] + 'data' => ['show' => Yii::t('app','more'), 'hide' => Yii::t('app','hide')] ] ), [ @@ -285,11 +285,11 @@ _________________________________________________________ --> $buthiddenmore = Html::tag( 'div', Html::a( - 'Ещё', + Yii::t('app','more'), '#', [ 'class' => 'btn btn-primary btn-xs', - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть'] + 'data' => ['show' => Yii::t('app','more'), 'hide' => Yii::t('app','hide')] ] ), [ @@ -375,11 +375,11 @@ _________________________________________________________ --> $buthiddenmore = Html::tag( 'div', Html::a( - 'Ещё', + Yii::t('app','more'), '#', [ 'class' => 'btn btn-primary btn-xs', - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть'] + 'data' => ['show' => Yii::t('app','more'), 'hide' =>Yii::t('app','hide')] ] ), [ @@ -465,11 +465,11 @@ _________________________________________________________ --> $buthiddenmore = Html::tag( 'div', Html::a( - 'Ещё', + Yii::t('app','more'), '#', [ 'class' => 'btn btn-primary btn-xs', - 'data' => ['show' => 'Ещё', 'hide' => 'Скрыть'] + 'data' => ['show' => Yii::t('app','more'), 'hide' => Yii::t('app','hide')] ] ), [ @@ -546,7 +546,7 @@ _________________________________________________________ -->
ТоварКоличествоЦена за единицуВсего
Всего
- + - + - + - + diff --git a/frontend/views/checkout/delivery.php b/frontend/views/checkout/delivery.php index 4451cac..5ff6356 100755 --- a/frontend/views/checkout/delivery.php +++ b/frontend/views/checkout/delivery.php @@ -162,7 +162,7 @@ [ 'prefix' => 'fa fa-', ] - ) . \Yii::t('app', 'Адреса та інформація'), + ) . \Yii::t('app', 'Address and information'), [ 'checkout/info', ], @@ -175,7 +175,7 @@
'fa fa-', diff --git a/frontend/views/checkout/index.php b/frontend/views/checkout/index.php index 492b7f8..9a9fbd9 100755 --- a/frontend/views/checkout/index.php +++ b/frontend/views/checkout/index.php @@ -187,15 +187,15 @@
грн.
грн.
delivery->value; ?> грн.
delivery->value; ?> грн.
- + - + - + @@ -216,7 +216,7 @@ if (!empty($topItems)) { ?>
-

+

@@ -156,7 +160,8 @@
field($model, 'phone') - ->textInput(); + ->textInput() + ->label(Yii::t('app','phone')); ?>
@@ -175,7 +180,8 @@ [ 'rows' => 4, ] - ); + ) + ->label(Yii::t('app','comment')); ?>
@@ -191,7 +197,7 @@ [ 'prefix' => 'fa fa-', ] - ) . \Yii::t('app', 'Назад в корзину'), + ) . \Yii::t('app', 'Back to cart'), [ 'checkout/index', ], @@ -204,7 +210,7 @@
'fa fa-', @@ -230,26 +236,26 @@
-

Итоговый счет

+

asDecimal($sum, 2); ?>
asDecimal($sumDiscount, 2); ?>
asDecimal($sum, 2); ?>
- + - + - + diff --git a/frontend/views/checkout/payment.php b/frontend/views/checkout/payment.php index a3aa112..97fdd25 100755 --- a/frontend/views/checkout/payment.php +++ b/frontend/views/checkout/payment.php @@ -41,7 +41,7 @@ [ 'prefix' => 'fa fa-', ] - ) . Html::tag('br') . \Yii::t('app', 'Адрес'), + ) . Html::tag('br') . \Yii::t('app', 'address'), [ 'checkout/info' ] ) ); @@ -53,7 +53,7 @@ [ 'prefix' => 'fa fa-', ] - ) . Html::tag('br') . \Yii::t('app', 'Способ доставки'), + ) . Html::tag('br') . \Yii::t('app', 'Method of delivery'), [ 'checkout/delivery' ] ) ); @@ -65,7 +65,7 @@ [ 'prefix' => 'fa fa-', ] - ) . Html::tag('br') . \Yii::t('app', 'Способ оплаты'), + ) . Html::tag('br') . \Yii::t('app', 'Payment method'), [ '#', ] @@ -82,7 +82,7 @@ [ 'prefix' => 'fa fa-', ] - ) . Html::tag('br') . \Yii::t('app', 'Просмотр заказа'), + ) . Html::tag('br') . \Yii::t('app', 'View order'), [ 'checkout/confirm', ] @@ -159,7 +159,7 @@ [ 'prefix' => 'fa fa-', ] - ) . \Yii::t('app', 'Доставка'), + ) . \Yii::t('app', 'Delivery'), [ 'checkout/delivery', ], @@ -172,7 +172,7 @@
'fa fa-', @@ -198,26 +198,26 @@
-

Итоговый счет

+

asDecimal($sum, 2); ?>
asDecimal($sumDiscount, 2); ?>
asDecimal($sum, 2); ?>
- + - + - + diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index b5c0dcc..c5ee8be 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -365,7 +365,7 @@ _________________________________________________________ -->
phone)) ?> - +
asDecimal($sum, 2); ?>
asDecimal($sumDiscount, 2); ?>
asDecimal($sum, 2); ?>