Commit 809b0ee345170fbd99ea933bb8c7f53a56fc5737

Authored by Eugeny Galkovskiy
1 parent a3afeb6b

Переводы 1

backend/config/main.php
@@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
13 return [ 13 return [
14 'id' => 'app-backend', 14 'id' => 'app-backend',
15 'homeUrl' => '/admin', 15 'homeUrl' => '/admin',
  16 + 'language' => 'ru',
16 'basePath' => dirname(__DIR__), 17 'basePath' => dirname(__DIR__),
17 'controllerNamespace' => 'backend\controllers', 18 'controllerNamespace' => 'backend\controllers',
18 'bootstrap' => [ 'log' ], 19 'bootstrap' => [ 'log' ],
backend/views/ajax/_table.php
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <tr> 14 <tr>
15 <th>#</th> 15 <th>#</th>
16 <th><?= $name ?></th> 16 <th><?= $name ?></th>
17 - <th>Sessions</th> 17 + <th>Сессии</th>
18 </tr> 18 </tr>
19 </thead> 19 </thead>
20 <tbody> 20 <tbody>
backend/views/layouts/main.php
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 ( empty( $avatar ) ? 'http://placehold.it/128x128' : $avatar ), 80 ( empty( $avatar ) ? 'http://placehold.it/128x128' : $avatar ),
81 [ 81 [
82 'alt' => $userData->fullname, 82 'alt' => $userData->fullname,
83 - 'title' => \Yii::t('core', 'Change image'), 83 + 'title' => \Yii::t('core', 'Изменить изображение'),
84 'class' => 'img-circle profile_img', 84 'class' => 'img-circle profile_img',
85 ] 85 ]
86 ), 86 ),
@@ -89,14 +89,14 @@ @@ -89,14 +89,14 @@
89 ?> 89 ?>
90 </div> 90 </div>
91 <div class="profile_info"> 91 <div class="profile_info">
92 - <span><?= \Yii::t('core', 'Welcome,'); ?></span> 92 + <span><?= \Yii::t('core', 'Добро пожаловать,'); ?></span>
93 <h2> 93 <h2>
94 <?php 94 <?php
95 echo Html::a( 95 echo Html::a(
96 $userData->fullname, 96 $userData->fullname,
97 [ 'profile/index' ], 97 [ 'profile/index' ],
98 [ 98 [
99 - 'title' => \Yii::t('core', 'Change name'), 99 + 'title' => \Yii::t('core', 'Изменить имя'),
100 ] 100 ]
101 ); 101 );
102 ?> 102 ?>
@@ -153,7 +153,7 @@ @@ -153,7 +153,7 @@
153 'i', 153 'i',
154 '', 154 '',
155 [ 'class' => 'fa fa-user pull-right' ] 155 [ 'class' => 'fa fa-user pull-right' ]
156 - ) . ' Profile', 156 + ) . ' Профиль',
157 [ '/profile' ] 157 [ '/profile' ]
158 ) ?> 158 ) ?>
159 </li> 159 </li>
@@ -163,7 +163,7 @@ @@ -163,7 +163,7 @@
163 'i', 163 'i',
164 '', 164 '',
165 [ 'class' => 'fa fa-cogs pull-right' ] 165 [ 'class' => 'fa fa-cogs pull-right' ]
166 - ) . ' Settings', 166 + ) . ' Настройки',
167 [ '/settings' ] 167 [ '/settings' ]
168 ) ?> 168 ) ?>
169 </li> 169 </li>
@@ -173,7 +173,7 @@ @@ -173,7 +173,7 @@
173 'i', 173 'i',
174 '', 174 '',
175 [ 'class' => 'fa fa-sign-out pull-right' ] 175 [ 'class' => 'fa fa-sign-out pull-right' ]
176 - ) . ' Log out', 176 + ) . ' Выйти',
177 [ '/site/logout' ], 177 [ '/site/logout' ],
178 [ 178 [
179 'data-method' => 'POST', 179 'data-method' => 'POST',
@@ -202,9 +202,9 @@ @@ -202,9 +202,9 @@
202 <div class="title_right"> 202 <div class="title_right">
203 <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search"> 203 <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
204 <div class="input-group"> 204 <div class="input-group">
205 - <input type="text" class="form-control" placeholder="Search for..."> 205 + <input type="text" class="form-control" placeholder="Поиск...">
206 <span class="input-group-btn"> 206 <span class="input-group-btn">
207 - <button class="btn btn-default" type="button">Go!</button> 207 + <button class="btn btn-default" type="button">Найти!</button>
208 </span> 208 </span>
209 </div> 209 </div>
210 </div> 210 </div>
backend/views/layouts/menu_items.php
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 if ($urlManagerFrontend = \Yii::$app->get('urlManagerFrontend', false)) { 8 if ($urlManagerFrontend = \Yii::$app->get('urlManagerFrontend', false)) {
9 $homeLink = [ 9 $homeLink = [
10 [ 10 [
11 - 'label' => \Yii::t('core', 'My website'), 11 + 'label' => \Yii::t('core', 'Мой сайт'),
12 'url' => $urlManagerFrontend->createUrl([ 'site/index' ]), 12 'url' => $urlManagerFrontend->createUrl([ 'site/index' ]),
13 'icon' => 'home', 13 'icon' => 'home',
14 'template' => '<a href="{url}" target="_blank">{icon}<span>{label}</span>{badge}</a>', 14 'template' => '<a href="{url}" target="_blank">{icon}<span>{label}</span>{badge}</a>',
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 $homeLink, 22 $homeLink,
23 [ 23 [
24 [ 24 [
25 - 'label' => \Yii::t('core', 'Main'), 25 + 'label' => \Yii::t('core', 'Главная'),
26 'url' => [ '/site/index' ], 26 'url' => [ '/site/index' ],
27 'icon' => ( \Yii::$app->controller->id === 'site' ) ? 'check' : 'undo', 27 'icon' => ( \Yii::$app->controller->id === 'site' ) ? 'check' : 'undo',
28 'active' => function () { 28 'active' => function () {
@@ -30,17 +30,17 @@ @@ -30,17 +30,17 @@
30 }, 30 },
31 ], 31 ],
32 [ 32 [
33 - 'label' => \Yii::t('core', 'Static pages'), 33 + 'label' => \Yii::t('core', 'Статические страницы'),
34 'url' => '#', 34 'url' => '#',
35 'icon' => 'file-text', 35 'icon' => 'file-text',
36 'items' => [ 36 'items' => [
37 [ 37 [
38 - 'label' => \Yii::t('core', 'Pages'), 38 + 'label' => \Yii::t('core', 'Страницы'),
39 'url' => [ '/page/index' ], 39 'url' => [ '/page/index' ],
40 'icon' => 'file-text', 40 'icon' => 'file-text',
41 ], 41 ],
42 [ 42 [
43 - 'label' => \Yii::t('core', 'Categories'), 43 + 'label' => \Yii::t('core', 'Категории'),
44 'url' => [ '/page-category/index' ], 44 'url' => [ '/page-category/index' ],
45 'icon' => 'archive', 45 'icon' => 'archive',
46 ], 46 ],
@@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
52 'icon' => 'leaf', 52 'icon' => 'leaf',
53 'items' => [ 53 'items' => [
54 [ 54 [
55 - 'label' => \Yii::t('core', 'Seo pages'), 55 + 'label' => \Yii::t('core', 'Seo страницы'),
56 'url' => [ '/alias/index' ], 56 'url' => [ '/alias/index' ],
57 'icon' => 'file-text', 57 'icon' => 'file-text',
58 ], 58 ],
@@ -62,56 +62,56 @@ @@ -62,56 +62,56 @@
62 'icon' => 'android', 62 'icon' => 'android',
63 ], 63 ],
64 [ 64 [
65 - 'label' => \Yii::t('core', 'Codes'), 65 + 'label' => \Yii::t('core', 'Коды'),
66 'url' => [ '/settings/codes' ], 66 'url' => [ '/settings/codes' ],
67 'icon' => 'code', 67 'icon' => 'code',
68 ], 68 ],
69 [ 69 [
70 - 'label' => \Yii::t('core', 'Sitemap'), 70 + 'label' => \Yii::t('core', 'Карта сайта'),
71 'url' => [ '/sitemap/index' ], 71 'url' => [ '/sitemap/index' ],
72 'icon' => 'map-signs', 72 'icon' => 'map-signs',
73 ], 73 ],
74 ], 74 ],
75 ], 75 ],
76 [ 76 [
77 - 'label' => \Yii::t('core', 'Blog'), 77 + 'label' => \Yii::t('core', 'Блог'),
78 'url' => '#', 78 'url' => '#',
79 'icon' => 'pencil', 79 'icon' => 'pencil',
80 'items' => [ 80 'items' => [
81 [ 81 [
82 - 'label' => \Yii::t('blog', 'Articles'), 82 + 'label' => \Yii::t('blog', 'Статьи'),
83 'url' => [ '/blog-article/index' ], 83 'url' => [ '/blog-article/index' ],
84 'icon' => 'file-text', 84 'icon' => 'file-text',
85 ], 85 ],
86 [ 86 [
87 - 'label' => \Yii::t('blog', 'Categories'), 87 + 'label' => \Yii::t('blog', 'Категории'),
88 'url' => [ '/blog-category/index' ], 88 'url' => [ '/blog-category/index' ],
89 'icon' => 'list', 89 'icon' => 'list',
90 ], 90 ],
91 [ 91 [
92 - 'label' => \Yii::t('blog', 'Tags'), 92 + 'label' => \Yii::t('blog', 'Теги'),
93 'url' => [ '/blog-tag/index' ], 93 'url' => [ '/blog-tag/index' ],
94 'icon' => 'code', 94 'icon' => 'code',
95 ], 95 ],
96 ], 96 ],
97 ], 97 ],
98 [ 98 [
99 - 'label' => \Yii::t('app', 'Persones'), 99 + 'label' => \Yii::t('app', 'Персонал'),
100 'url' => [ 'persone/index' ], 100 'url' => [ 'persone/index' ],
101 'icon' => 'users', 101 'icon' => 'users',
102 ], 102 ],
103 [ 103 [
104 - 'label' => \Yii::t('core', 'Image manager'), 104 + 'label' => \Yii::t('core', 'Менеджер изображений'),
105 'url' => [ '/imagemanager' ], 105 'url' => [ '/imagemanager' ],
106 'icon' => 'image', 106 'icon' => 'image',
107 ], 107 ],
108 [ 108 [
109 - 'label' => \Yii::t('artbox-comment', 'Comments'), 109 + 'label' => \Yii::t('artbox-comment', 'Комментарии'),
110 'url' => [ '/comment' ], 110 'url' => [ '/comment' ],
111 'icon' => 'comment', 111 'icon' => 'comment',
112 ], 112 ],
113 [ 113 [
114 - 'label' => \Yii::t('app', 'Gallery'), 114 + 'label' => \Yii::t('app', 'Галерея'),
115 'url' => [ 'site/gallery' ], 115 'url' => [ 'site/gallery' ],
116 'icon' => 'camera', 116 'icon' => 'camera',
117 ], 117 ],
backend/views/persone/_form.php
@@ -44,7 +44,7 @@ @@ -44,7 +44,7 @@
44 44
45 <div class="form-group"> 45 <div class="form-group">
46 <?= Html::submitButton( 46 <?= Html::submitButton(
47 - $model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), 47 + $model->isNewRecord ? Yii::t('app', 'Создать') : Yii::t('app', 'Обновить'),
48 [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ] 48 [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ]
49 ) ?> 49 ) ?>
50 </div> 50 </div>
backend/views/persone/_search.php
@@ -20,8 +20,8 @@ use yii\widgets\ActiveForm; @@ -20,8 +20,8 @@ use yii\widgets\ActiveForm;
20 <?= $form->field($model, 'image_id') ?> 20 <?= $form->field($model, 'image_id') ?>
21 21
22 <div class="form-group"> 22 <div class="form-group">
23 - <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>  
24 - <?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?> 23 + <?= Html::submitButton(Yii::t('app', 'Поиск'), ['class' => 'btn btn-primary']) ?>
  24 + <?= Html::resetButton(Yii::t('app', 'Сброс'), ['class' => 'btn btn-default']) ?>
25 </div> 25 </div>
26 26
27 <?php ActiveForm::end(); ?> 27 <?php ActiveForm::end(); ?>
backend/views/persone/create.php
@@ -11,9 +11,9 @@ @@ -11,9 +11,9 @@
11 * @var PersoneLang[] $modelLangs 11 * @var PersoneLang[] $modelLangs
12 */ 12 */
13 13
14 - $this->title = Yii::t('app', 'Create Persone'); 14 + $this->title = Yii::t('app', 'Добавить сотрудника');
15 $this->params[ 'breadcrumbs' ][] = [ 15 $this->params[ 'breadcrumbs' ][] = [
16 - 'label' => Yii::t('app', 'Persones'), 16 + 'label' => Yii::t('app', 'Персонал'),
17 'url' => [ 'index' ], 17 'url' => [ 'index' ],
18 ]; 18 ];
19 $this->params[ 'breadcrumbs' ][] = $this->title; 19 $this->params[ 'breadcrumbs' ][] = $this->title;
backend/views/persone/index.php
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 * @var PersoneSearch $searchModel 14 * @var PersoneSearch $searchModel
15 */ 15 */
16 16
17 - $this->title = Yii::t('app', 'Persones'); 17 + $this->title = Yii::t('app', 'Персонал');
18 $this->params[ 'breadcrumbs' ][] = $this->title; 18 $this->params[ 'breadcrumbs' ][] = $this->title;
19 ?> 19 ?>
20 <div class="persone-index"> 20 <div class="persone-index">
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 <?php // echo $this->render('_search', ['model' => $searchModel]); ?> 27 <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
28 28
29 <p> 29 <p>
30 - <?= Html::a(Yii::t('app', 'Create Persone'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> 30 + <?= Html::a(Yii::t('app', 'Добавить сотрудника'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
31 </p> 31 </p>
32 <?= GridView::widget( 32 <?= GridView::widget(
33 [ 33 [
backend/views/persone/update.php
@@ -15,11 +15,11 @@ @@ -15,11 +15,11 @@
15 'app', 15 'app',
16 'Update {modelClass}: ', 16 'Update {modelClass}: ',
17 [ 17 [
18 - 'modelClass' => 'Persone', 18 + 'modelClass' => 'Сотрудник',
19 ] 19 ]
20 ) . $model->id; 20 ) . $model->id;
21 $this->params[ 'breadcrumbs' ][] = [ 21 $this->params[ 'breadcrumbs' ][] = [
22 - 'label' => Yii::t('app', 'Persones'), 22 + 'label' => Yii::t('app', 'Персонал'),
23 'url' => [ 'index' ], 23 'url' => [ 'index' ],
24 ]; 24 ];
25 $this->params[ 'breadcrumbs' ][] = [ 25 $this->params[ 'breadcrumbs' ][] = [
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 'id' => $model->id, 29 'id' => $model->id,
30 ], 30 ],
31 ]; 31 ];
32 - $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Update'); 32 + $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Обновить');
33 ?> 33 ?>
34 <div class="persone-update"> 34 <div class="persone-update">
35 35
backend/views/persone/view.php
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 13
14 $this->title = $model->id; 14 $this->title = $model->id;
15 $this->params[ 'breadcrumbs' ][] = [ 15 $this->params[ 'breadcrumbs' ][] = [
16 - 'label' => Yii::t('app', 'Persones'), 16 + 'label' => Yii::t('app', 'Персонал'),
17 'url' => [ 'index' ], 17 'url' => [ 'index' ],
18 ]; 18 ];
19 $this->params[ 'breadcrumbs' ][] = $this->title; 19 $this->params[ 'breadcrumbs' ][] = $this->title;
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 28
29 <p> 29 <p>
30 <?= Html::a( 30 <?= Html::a(
31 - Yii::t('app', 'Update'), 31 + Yii::t('app', 'Обновить'),
32 [ 32 [
33 'update', 33 'update',
34 'id' => $model->id, 34 'id' => $model->id,
backend/views/settings/_contact_tab.php
@@ -10,13 +10,13 @@ @@ -10,13 +10,13 @@
10 */ 10 */
11 echo $form->field($model, 'phone') 11 echo $form->field($model, 'phone')
12 ->textInput() 12 ->textInput()
13 - ->hint(\Yii::t('core', 'Contact phone for website')); 13 + ->hint(\Yii::t('core', 'Контактный телефон для сайта'));
14 echo $form->field($model, 'phone2') 14 echo $form->field($model, 'phone2')
15 ->textInput() 15 ->textInput()
16 - ->hint(\Yii::t('core', 'Contact phone for website')); 16 + ->hint(\Yii::t('core', 'Контактный телефон для сайта'));
17 echo $form->field($model, 'email') 17 echo $form->field($model, 'email')
18 ->textInput() 18 ->textInput()
19 - ->hint(\Yii::t('core', 'Contact email for website')); 19 + ->hint(\Yii::t('core', 'Контактный email для сайта'));
20 echo $form->field($model, 'skype') 20 echo $form->field($model, 'skype')
21 ->textInput(); 21 ->textInput();
22 echo $form->field($model, 'house') 22 echo $form->field($model, 'house')
backend/views/settings/codes.php
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 use yii\web\View; 10 use yii\web\View;
11 use yiister\gentelella\widgets\Panel; 11 use yiister\gentelella\widgets\Panel;
12 12
13 - $this->title = Yii::t('core', 'Codes'); 13 + $this->title = Yii::t('core', 'Коды');
14 14
15 $this->params[ 'breadcrumbs' ][] = $this->title; 15 $this->params[ 'breadcrumbs' ][] = $this->title;
16 ?> 16 ?>
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 ->textInput(); 36 ->textInput();
37 37
38 echo Html::submitButton( 38 echo Html::submitButton(
39 - \Yii::t('core', 'Save'), 39 + \Yii::t('core', 'Сохранить'),
40 [ 40 [
41 'class' => 'btn btn-primary', 41 'class' => 'btn btn-primary',
42 ] 42 ]
backend/views/settings/robots.php
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 ->textarea([ 'rows' => 15 ]); 31 ->textarea([ 'rows' => 15 ]);
32 32
33 echo Html::submitButton( 33 echo Html::submitButton(
34 - \Yii::t('core', 'Save'), 34 + \Yii::t('core', 'Сохранить'),
35 [ 35 [
36 'class' => 'btn btn-primary', 36 'class' => 'btn btn-primary',
37 ] 37 ]
backend/views/settings/settings.php
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 ], 36 ],
37 'items' => [ 37 'items' => [
38 [ 38 [
39 - 'label' => \Yii::t('core', 'Main'), 39 + 'label' => \Yii::t('core', 'Главная'),
40 'content' => $this->render( 40 'content' => $this->render(
41 '_main_tab', 41 '_main_tab',
42 [ 42 [
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 ), 46 ),
47 ], 47 ],
48 [ 48 [
49 - 'label' => \Yii::t('core', 'Contact'), 49 + 'label' => \Yii::t('core', 'Контакты'),
50 'content' => $this->render( 50 'content' => $this->render(
51 '_contact_tab', 51 '_contact_tab',
52 [ 52 [
@@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
56 ), 56 ),
57 ], 57 ],
58 [ 58 [
59 - 'label' => \Yii::t('core', 'Social'), 59 + 'label' => \Yii::t('core', 'Социальные сети'),
60 'content' => $this->render( 60 'content' => $this->render(
61 '_social_tab', 61 '_social_tab',
62 [ 62 [
@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 ), 66 ),
67 ], 67 ],
68 [ 68 [
69 - 'label' => \Yii::t('core', 'Codes'), 69 + 'label' => \Yii::t('core', 'Коды'),
70 'content' => $this->render( 70 'content' => $this->render(
71 '_codes_tab', 71 '_codes_tab',
72 [ 72 [
@@ -90,7 +90,7 @@ @@ -90,7 +90,7 @@
90 ); 90 );
91 91
92 echo Html::submitButton( 92 echo Html::submitButton(
93 - 'Save', 93 + 'Сохранить',
94 [ 94 [
95 'class' => 'btn btn-primary', 95 'class' => 'btn btn-primary',
96 ] 96 ]
backend/views/site/error.php
@@ -18,14 +18,14 @@ @@ -18,14 +18,14 @@
18 18
19 <p class="text-center"> 19 <p class="text-center">
20 <a href="index.html"> 20 <a href="index.html">
21 - <img src="/img/logo.png" alt="Obaju template"> 21 + <img src="/img/logo.png">
22 </a> 22 </a>
23 </p> 23 </p>
24 24
25 - <h3>We are sorry - this page is not here anymore</h3>  
26 - <h4 class="text-muted">Error 404 - Page not found</h4> 25 + <h3>Извините, страница не доступна по данному адресу</h3>
  26 + <h4 class="text-muted">Ошибка 404 - Страница не найдена</h4>
27 27
28 - <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> Go to Homepage</a> 28 + <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> Вернуться на главную</a>
29 </p> 29 </p>
30 </div> 30 </div>
31 31
backend/views/site/gallery.php
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 13
14 Panel::begin( 14 Panel::begin(
15 [ 15 [
16 - 'header' => 'Gallery', 16 + 'header' => 'Галерея',
17 ] 17 ]
18 ); 18 );
19 19
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 </div> 29 </div>
30 <div class="row"> 30 <div class="row">
31 <?= Html::submitButton( 31 <?= Html::submitButton(
32 - \Yii::t('app', 'Save'), 32 + \Yii::t('app', 'Сохранить'),
33 [ 33 [
34 'class' => 'btn btn-lg btn-primary', 34 'class' => 'btn btn-lg btn-primary',
35 ] 35 ]
backend/views/site/index.php
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 23
24 <div class="count" id="sessions">0</div> 24 <div class="count" id="sessions">0</div>
25 25
26 - <h3>Sessions</h3> 26 + <h3>Сессии</h3>
27 <p>Lorem ipsum psdea itgum rixt.</p> 27 <p>Lorem ipsum psdea itgum rixt.</p>
28 </div> 28 </div>
29 </div> 29 </div>
backend/views/site/instruction.php
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 <div class="row"> 15 <div class="row">
16 <?php $panel = Panel::begin( 16 <?php $panel = Panel::begin(
17 [ 17 [
18 - 'header' => 'Instruction', 18 + 'header' => 'Инструкции',
19 ] 19 ]
20 ) ?> 20 ) ?>
21 <div class="jumbotron"> 21 <div class="jumbotron">
backend/views/sitemap/index.php
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 [ 34 [
35 'prefix' => 'fa fa-', 35 'prefix' => 'fa fa-',
36 ] 36 ]
37 - ) . \Yii::t('core', 'Edit'), 37 + ) . \Yii::t('core', 'Редактировать'),
38 [ 'update' ], 38 [ 'update' ],
39 [ 39 [
40 'class' => 'btn btn-app', 40 'class' => 'btn btn-app',
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 ] 53 ]
54 ) . Html::tag( 54 ) . Html::tag(
55 'span', 55 'span',
56 - \Yii::t('core', 'Generate'), 56 + \Yii::t('core', 'Сгенерировать'),
57 [ 57 [
58 'class' => 'indexed', 58 'class' => 'indexed',
59 ] 59 ]
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 echo Html::tag( 80 echo Html::tag(
81 'div', 81 'div',
82 Html::a( 82 Html::a(
83 - \Yii::t('core', 'View generated sitemap.xml'), 83 + \Yii::t('core', 'Посмотреть сгенерированный sitemap.xml'),
84 $sitemap->getUrl(), 84 $sitemap->getUrl(),
85 [ 85 [
86 'target' => '_blank', 86 'target' => '_blank',
backend/views/sitemap/update.php
@@ -13,15 +13,15 @@ @@ -13,15 +13,15 @@
13 * @var SitemapDynamic[] $entity_models 13 * @var SitemapDynamic[] $entity_models
14 */ 14 */
15 $this->params[ 'breadcrumbs' ][] = [ 15 $this->params[ 'breadcrumbs' ][] = [
16 - 'label' => \Yii::t('core', 'Sitemap'), 16 + 'label' => \Yii::t('core', 'Карта сайта'),
17 'url' => [ 'index' ], 17 'url' => [ 'index' ],
18 ]; 18 ];
19 - $this->title = \Yii::t('core', 'Update sitemap'); 19 + $this->title = \Yii::t('core', 'Обновить карту сайта');
20 $this->params[ 'breadcrumbs' ][] = $this->title; 20 $this->params[ 'breadcrumbs' ][] = $this->title;
21 $form = ActiveForm::begin(); 21 $form = ActiveForm::begin();
22 $xPanel = Panel::begin( 22 $xPanel = Panel::begin(
23 [ 23 [
24 - 'header' => \Yii::t('core', 'Static pages'), 24 + 'header' => \Yii::t('core', 'Статические страницы'),
25 'collapsable' => true, 25 'collapsable' => true,
26 'options' => [ 26 'options' => [
27 'class' => 'x_panel dynamic_fields', 27 'class' => 'x_panel dynamic_fields',
@@ -51,13 +51,13 @@ @@ -51,13 +51,13 @@
51 ) 51 )
52 ->dropDownList( 52 ->dropDownList(
53 [ 53 [
54 - 'always' => 'always',  
55 - 'hourly' => 'hourly',  
56 - 'daily' => 'daily',  
57 - 'weekly' => 'weekly',  
58 - 'monthly' => 'monthly',  
59 - 'yearly' => 'yearly',  
60 - 'never' => 'never', 54 + 'always' => 'всегда',
  55 + 'hourly' => 'ежечасно',
  56 + 'daily' => 'ежедневно',
  57 + 'weekly' => 'еженедельно',
  58 + 'monthly' => 'ежемесячно',
  59 + 'yearly' => 'ежегодно',
  60 + 'never' => 'никогда',
61 ] 61 ]
62 ) . $form->field( 62 ) . $form->field(
63 $model, 63 $model,
@@ -81,7 +81,7 @@ @@ -81,7 +81,7 @@
81 ); 81 );
82 } 82 }
83 echo Html::button( 83 echo Html::button(
84 - \Yii::t('core', 'Add field'), 84 + \Yii::t('core', 'Добавить поле'),
85 [ 85 [
86 'class' => 'btn btn-default', 86 'class' => 'btn btn-default',
87 'onclick' => 'sitemap_add(this)', 87 'onclick' => 'sitemap_add(this)',
@@ -93,7 +93,7 @@ @@ -93,7 +93,7 @@
93 $xPanel::end(); 93 $xPanel::end();
94 $xPanel2 = Panel::begin( 94 $xPanel2 = Panel::begin(
95 [ 95 [
96 - 'header' => \Yii::t('core', 'Dynamic pages'), 96 + 'header' => \Yii::t('core', 'Динамические страницы'),
97 'collapsable' => true, 97 'collapsable' => true,
98 ] 98 ]
99 ); 99 );
@@ -141,13 +141,13 @@ @@ -141,13 +141,13 @@
141 ->label(false) 141 ->label(false)
142 ->dropDownList( 142 ->dropDownList(
143 [ 143 [
144 - 'always' => 'always',  
145 - 'hourly' => 'hourly',  
146 - 'daily' => 'daily',  
147 - 'weekly' => 'weekly',  
148 - 'monthly' => 'monthly',  
149 - 'yearly' => 'yearly',  
150 - 'never' => 'never', 144 + 'always' => 'всегда',
  145 + 'hourly' => 'ежечасно',
  146 + 'daily' => 'ежедневно',
  147 + 'weekly' => 'еженедельно',
  148 + 'monthly' => 'ежемесячно',
  149 + 'yearly' => 'ежегодно',
  150 + 'never' => 'никогда',
151 ] 151 ]
152 ); 152 );
153 ?> 153 ?>
@@ -170,13 +170,13 @@ @@ -170,13 +170,13 @@
170 } 170 }
171 $xPanel2::end(); 171 $xPanel2::end();
172 echo Html::submitButton( 172 echo Html::submitButton(
173 - \Yii::t('core', 'Save'), 173 + \Yii::t('core', 'Сохранить'),
174 [ 174 [
175 'class' => 'btn btn-success', 175 'class' => 'btn btn-success',
176 ] 176 ]
177 ); 177 );
178 echo Html::submitButton( 178 echo Html::submitButton(
179 - \Yii::t('core', 'Save and generate'), 179 + \Yii::t('core', 'Сохранить и сгенерировать'),
180 [ 180 [
181 'class' => 'btn btn-primary', 181 'class' => 'btn btn-primary',
182 'name' => 'action', 182 'name' => 'action',
common/config/main.php
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 'translations' => [ 30 'translations' => [
31 'core' => [ 31 'core' => [
32 'class' => 'yii\i18n\PhpMessageSource', 32 'class' => 'yii\i18n\PhpMessageSource',
33 - 'basePath' => '@artbox/core/messages', 33 + 'basePath' => '@common/messages',
34 ], 34 ],
35 'app' => [ 35 'app' => [
36 'class' => 'yii\i18n\PhpMessageSource', 36 'class' => 'yii\i18n\PhpMessageSource',
common/messages/en/app.php
1 <?php 1 <?php
2 - return [];  
3 \ No newline at end of file 2 \ No newline at end of file
  3 +return [
  4 + 'Home' => 'Главная',
  5 + 'Submit' => 'Применить',
  6 + 'Save' => 'Сохранить',
  7 + 'Company name' => 'Название компании',
  8 +];
4 \ No newline at end of file 9 \ No newline at end of file
common/messages/en/core.php 0 → 100644
  1 +<?php
  2 +return [];
0 \ No newline at end of file 3 \ No newline at end of file
common/messages/ru/app.php
1 <?php 1 <?php
2 - return [];  
3 \ No newline at end of file 2 \ No newline at end of file
  3 + return [
  4 + 'Home' => 'Главная',
  5 + 'Submit' => 'Применить',
  6 + 'Save' => 'Сохранить',
  7 + 'Company name' => 'Название компании',
  8 + 'Profile' => 'Профиль',
  9 + 'Host' => 'Сервер',
  10 + 'User' => 'Логин',
  11 + 'Pass' => 'Пароль',
  12 + 'Create Page' => 'Создать страницу',
  13 + 'Add' => 'Добавить',
  14 + 'Blog Articles' => 'Список статей',
  15 + ];
4 \ No newline at end of file 16 \ No newline at end of file
common/messages/ru/core.php 0 → 100644
  1 +<?php
  2 +return [
  3 + 'Home' => 'Главная',
  4 + 'Submit' => 'Применить',
  5 + 'Save' => 'Сохранить',
  6 + 'Company name' => 'Название компании',
  7 + 'Old password' => 'Старый пароль',
  8 + 'New password' => 'Новый пароль',
  9 + 'New password repeat' => 'Повторить новый пароль',
  10 + 'Profile information' => 'Информация о профиле',
  11 + 'Personal information' => 'Персональная информация',
  12 + 'Change password' => 'Изменить пароль',
  13 + 'Name' => 'Имя',
  14 + 'Surname' => 'Фамилия',
  15 + 'Profile' => 'Профиль',
  16 + 'Settings' => 'Настройки',
  17 + 'Company logo' => 'Логотип компании',
  18 + 'About us' => 'О компании',
  19 + 'Phone' => 'Телефон',
  20 + 'Additional phone' => 'Дополнительный телефон',
  21 + 'House' => 'Дом',
  22 + 'Street' => 'Улица',
  23 + 'Office' => 'Офис',
  24 + 'City' => 'Город',
  25 + 'Country' => 'Страна',
  26 + 'Latitude' => 'Широта',
  27 + 'Longitude' => 'Долгота',
  28 + 'Google Analytics Key' => 'Код Google Analytics',
  29 + 'Pages' => 'Страницы',
  30 + 'Create Page' => 'Создать страницу',
  31 + 'Categories' => 'Категории',
  32 + 'Search for a categories ...' => 'Поиск по категориям',
  33 + 'Update' => 'Обновить',
  34 + 'Search' => 'Найти',
  35 + 'Reset' => 'Сброс',
  36 + 'Gallery' => 'Галерея',
  37 + 'Add' => 'Добавить',
  38 + 'Common' => 'Общее',
  39 + 'Title' => 'Заголовок',
  40 + 'Body' => 'Тело',
  41 + 'Aliases' => 'Псевдонимы',
  42 + 'Route' => 'Путь',
  43 + 'Value' => 'Значение',
  44 + 'Google analytics code' => 'Код Google аналитики',
  45 + 'Yandex metrics code' => 'Код Яндекс метрики',
  46 + 'Tag Manager code' => 'Код Tag Manager',
  47 + 'Sitemap' => 'Карта сайта',
  48 + 'Blog Articles' => 'Список статей',
  49 +];
0 \ No newline at end of file 50 \ No newline at end of file
frontend/widgets/views/_sidebar.php
@@ -45,7 +45,7 @@ _________________________________________________________ --&gt; @@ -45,7 +45,7 @@ _________________________________________________________ --&gt;
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">Categories</h3> 48 + <h3 class="panel-title">Категории</h3>
49 </div> 49 </div>
50 50
51 <div class="panel-body"> 51 <div class="panel-body">
@@ -69,7 +69,7 @@ _________________________________________________________ --&gt; @@ -69,7 +69,7 @@ _________________________________________________________ --&gt;
69 69
70 <div class="panel sidebar-menu"> 70 <div class="panel sidebar-menu">
71 <div class="panel-heading"> 71 <div class="panel-heading">
72 - <h3 class="panel-title">Tags</h3> 72 + <h3 class="panel-title">Теги</h3>
73 </div> 73 </div>
74 74
75 <div class="panel-body"> 75 <div class="panel-body">