From 033c0912bb333944754d450dd26d1c255960d311 Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Tue, 16 May 2017 17:51:37 +0300 Subject: [PATCH] Переводы --- backend/views/ajax/_table.php | 2 +- backend/views/layouts/main.php | 10 +++++----- backend/views/settings/settings.php | 4 ++-- backend/views/site/error.php | 6 +++--- backend/views/site/index.php | 20 ++++++++++---------- common/messages/ru/app.php | 11 +++++++++++ common/models/LoginForm.php | 6 +++--- 7 files changed, 35 insertions(+), 24 deletions(-) diff --git a/backend/views/ajax/_table.php b/backend/views/ajax/_table.php index c6bb065..813c174 100755 --- a/backend/views/ajax/_table.php +++ b/backend/views/ajax/_table.php @@ -14,7 +14,7 @@ # - Sessions + Сессии diff --git a/backend/views/layouts/main.php b/backend/views/layouts/main.php index 65ac3b1..5124f0a 100755 --- a/backend/views/layouts/main.php +++ b/backend/views/layouts/main.php @@ -155,7 +155,7 @@ 'i', '', [ 'class' => 'fa fa-user pull-right' ] - ) . ' Profile', + ) . ' Профиль', [ '/profile' ] ) ?> @@ -165,7 +165,7 @@ 'i', '', [ 'class' => 'fa fa-cogs pull-right' ] - ) . ' Settings', + ) . ' Настройки', [ '/settings' ] ) ?> @@ -175,7 +175,7 @@ 'i', '', [ 'class' => 'fa fa-sign-out pull-right' ] - ) . ' Log out', + ) . ' Выйти', [ '/site/logout' ], [ 'data-method' => 'POST', @@ -204,9 +204,9 @@
diff --git a/backend/views/settings/settings.php b/backend/views/settings/settings.php index 3e61e92..7b5ba30 100755 --- a/backend/views/settings/settings.php +++ b/backend/views/settings/settings.php @@ -11,7 +11,7 @@ use yii\web\View; use yiister\gentelella\widgets\Panel; - $this->title = 'Settings'; + $this->title = 'Настройки'; $this->params[ 'breadcrumbs' ][] = $this->title; ?> @@ -78,7 +78,7 @@ ); echo Html::submitButton( - 'Save', + 'Сохранить', [ 'class' => 'btn btn-primary', ] diff --git a/backend/views/site/error.php b/backend/views/site/error.php index f0daf87..3a36d1b 100755 --- a/backend/views/site/error.php +++ b/backend/views/site/error.php @@ -22,11 +22,11 @@

-

We are sorry - this page is not here anymore

-

Error 404 - Page not found

+

Извините, данной страницы не существует

+

Ошибка 404 - Страница не найдена

- Go to Homepage + На главную

diff --git a/backend/views/site/index.php b/backend/views/site/index.php index 99d1a8a..ae167bc 100755 --- a/backend/views/site/index.php +++ b/backend/views/site/index.php @@ -23,7 +23,7 @@
0
-

Sessions

+

Сессий

Lorem ipsum psdea itgum rixt.

@@ -34,7 +34,7 @@
0
-

Users

+

Пользователей

Lorem ipsum psdea itgum rixt.

@@ -45,7 +45,7 @@
0
-

Page views

+

Просмотров

Lorem ipsum psdea itgum rixt.

@@ -56,7 +56,7 @@
0
-

New sessions

+

Сессий

Lorem ipsum psdea itgum rixt.

@@ -66,7 +66,7 @@
'Analytic', + 'header' => 'Аналитика', ] ) ?> @@ -80,7 +80,7 @@
'Pie chart', + 'header' => 'Диаграмма', ] ) ?> @@ -93,7 +93,7 @@ 'Some stats', + 'header' => 'Статистика', ] ); ?> @@ -105,16 +105,16 @@ ], 'items' => [ [ - 'label' => 'Browsers', + 'label' => 'Браузеры', 'content' => '
', 'active' => true, ], [ - 'label' => 'Cities', + 'label' => 'Города', 'content' => '
', ], [ - 'label' => 'Countries', + 'label' => 'Страны', 'content' => '
', ], ], diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index 23ba83c..15724e5 100755 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -18,4 +18,15 @@ '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' => 'Сохранить', + ]; \ No newline at end of file diff --git a/common/models/LoginForm.php b/common/models/LoginForm.php index b16e2a4..1ec7334 100755 --- a/common/models/LoginForm.php +++ b/common/models/LoginForm.php @@ -98,9 +98,9 @@ public function attributeLabels() { return [ - 'username' => 'Логин', - 'password' => 'Пароль', - 'rememberMe' => 'Запомнить', + 'username' => Yii::t('app', 'Логин'), + 'password' => Yii::t('app', 'Пароль'), + 'rememberMe' => Yii::t('app', 'Запомнить'), ]; } } -- libgit2 0.21.4