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')) { ?>
-
АКЦІЯ
+
=Yii::t('app','SALE')?>
@@ -108,7 +108,7 @@
product->is('new')) { ?>
-
НОВЕ
+
=Yii::t('app','NEW')?>
@@ -117,7 +117,7 @@
product->is('top')) { ?>
-
ТОП
+
=Yii::t('app','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','Change your personal data or password here.')?>
-
Змінити пароль
+ =Yii::t('app','Change password')?>
= Html::submitButton(
- ' Зберегти новий пароль',
+ ' ' .Yii::t('app','Save new password'),
[ 'class' => 'btn btn-template-main' ]
) ?>
@@ -73,7 +73,7 @@ _________________________________________________________ -->
-
Персональні дані
+ =Yii::t('app','Personal data')?>
= $userForm->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'))?>
= Html::submitButton(
- '
Сохранить изменения',
+ '
' .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 @@ _________________________________________________________ -->
- Заказ |
- Дата |
- Сумма |
- Статус |
- Действие |
+ =Yii::t('app','Order')?> |
+ =Yii::t('app','Date')?> |
+ =Yii::t('app','Amount')?> |
+ =Yii::t('app','Status')?> |
+ =Yii::t('app','Action')?> |
@@ -55,7 +64,7 @@ _________________________________________________________ -->
= date('d.m.Y', $order->created_at); ?> |
= $price ?> |
label)) { ?>
- Не задан
+ | =Yii::t('app','Not specified')?>
|
@@ -69,7 +78,7 @@ _________________________________________________________ -->
'account/order',
'id' => $order->id,
]
- ) ?>" class="btn btn-template-main btn-sm">Посмотреть
+ ) ?>" class="btn btn-template-main btn-sm">=Yii::t('app','View')?>
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 @@ _________________________________________________________ -->
-
Заказ №= $order->id ?> был перемещён на = date(
+ = Yii::t('app', 'Order')?> №= $order->id ?> =Yii::t('app','was moved on')?> = date(
'd.m.Y',
$order->created_at
) ?>label)) {
- ?> и в данный момент
+ ?> =Yii::t('app','and now is')?>
= $order->label->lang->title ?>.
- Если у вас есть вопросы, пожалуйста,
+
=Yii::t('app','order_text')?>
напишите нам.
+ ) ?>">=Yii::t('app','write to us')?>.
- Товар |
- Количество |
- Цена за единицу |
- Всего |
+ =Yii::t('app','Product')?> |
+ =Yii::t('app','Quantity')?> |
+ =Yii::t('app','Unit price')?> |
+ =Yii::t('app','Total')?> |
@@ -94,7 +94,7 @@ _________________________________________________________ -->
- Всего |
+ =Yii::t('app','Total')?> |
= $total ?> |
@@ -105,7 +105,7 @@ _________________________________________________________ -->
-
= \Yii::t('app', 'Информация') ?>
+
= \Yii::t('app', 'Information') ?>
= $order->name ?>
= $order->phone ?>
= $order->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 @@ _________________________________________________________ -->