Commit d68614ad3c70779e12a48822543c0de6f7c4cb83

Authored by Eugeny Galkovskiy
1 parent e05bdb8c

translates 1

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>Сессии</th> 17 + <th><?= \Yii::t('app', 'Сессии') ?></th>
18 </tr> 18 </tr>
19 </thead> 19 </thead>
20 <tbody> 20 <tbody>
backend/views/layouts/main.php
@@ -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="Поиск..."> 205 + <input type="text" class="form-control" placeholder="<?= \Yii::t('app', 'Поиск...') ?>">
206 <span class="input-group-btn"> 206 <span class="input-group-btn">
207 - <button class="btn btn-default" type="button">Найти!</button> 207 + <button class="btn btn-default" type="button"><?= \Yii::t('app', 'Найти!') ?></button>
208 </span> 208 </span>
209 </div> 209 </div>
210 </div> 210 </div>
backend/views/settings/_mail_tab.php
@@ -11,10 +11,13 @@ @@ -11,10 +11,13 @@
11 */ 11 */
12 12
13 echo $form->field($mail, 'host') 13 echo $form->field($mail, 'host')
14 - ->textInput(); 14 + ->textInput()
  15 + ->label(\Yii::t('app', 'Host'));
15 16
16 echo $form->field($mail, 'user') 17 echo $form->field($mail, 'user')
17 - ->textInput(); 18 + ->textInput()
  19 + ->label(\Yii::t('app', 'User'));
18 20
19 echo $form->field($mail, 'pass') 21 echo $form->field($mail, 'pass')
20 - ->textInput();  
21 \ No newline at end of file 22 \ No newline at end of file
  23 + ->textInput()
  24 + ->label(\Yii::t('app', 'Pass'));
22 \ No newline at end of file 25 \ No newline at end of file
backend/views/settings/settings.php
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 use yii\web\View; 13 use yii\web\View;
14 use yiister\gentelella\widgets\Panel; 14 use yiister\gentelella\widgets\Panel;
15 15
16 - $this->title = 'Settings'; 16 + $this->title = \Yii::t('app', 'Settings');
17 17
18 $this->params[ 'breadcrumbs' ][] = $this->title; 18 $this->params[ 'breadcrumbs' ][] = $this->title;
19 ?> 19 ?>
backend/views/site/error.php
@@ -22,10 +22,10 @@ @@ -22,10 +22,10 @@
22 </a> 22 </a>
23 </p> 23 </p>
24 24
25 - <h3>Извините, страница не доступна по данному адресу</h3>  
26 - <h4 class="text-muted">Ошибка 404 - Страница не найдена</h4> 25 + <h3><?= \Yii::t('app', 'Извините, страница не доступна по данному адресу') ?></h3>
  26 + <h4 class="text-muted"><?= \Yii::t('app', 'Ошибка 404 - Страница не найдена') ?></h4>
27 27
28 - <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> Вернуться на главную</a> 28 + <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> <?= \Yii::t('app', 'Вернуться на главную') ?></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' => 'Галерея', 16 + 'header' => \Yii::t('app', 'Галерея'),
17 ] 17 ]
18 ); 18 );
19 19
backend/views/site/index.php
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 use yii\web\View; 9 use yii\web\View;
10 use yiister\gentelella\widgets\Panel; 10 use yiister\gentelella\widgets\Panel;
11 11
12 - $this->title = 'Artbox !'; 12 + $this->title = \Yii::t('app', 'Artbox !');
13 13
14 AnalyticsAsset::register($this); 14 AnalyticsAsset::register($this);
15 ?> 15 ?>
@@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
23 23
24 <div class="count" id="sessions">0</div> 24 <div class="count" id="sessions">0</div>
25 25
26 - <h3>Сессии</h3>  
27 - <p>Lorem ipsum psdea itgum rixt.</p> 26 + <h3><?=\Yii::t('app', 'Сессии')?></h3>
  27 + <p><?=\Yii::t('app', '(подпись для сессий)')?></p>
28 </div> 28 </div>
29 </div> 29 </div>
30 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12"> 30 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
@@ -34,8 +34,8 @@ @@ -34,8 +34,8 @@
34 34
35 <div class="count" id="users">0</div> 35 <div class="count" id="users">0</div>
36 36
37 - <h3>Пользователи</h3>  
38 - <p>Lorem ipsum psdea itgum rixt.</p> 37 + <h3><?=\Yii::t('app', 'Пользователи')?></h3>
  38 + <p><?=\Yii::t('app', '(подпись для пользователей)')?></p>
39 </div> 39 </div>
40 </div> 40 </div>
41 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12"> 41 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
@@ -45,8 +45,8 @@ @@ -45,8 +45,8 @@
45 45
46 <div class="count" id="views">0</div> 46 <div class="count" id="views">0</div>
47 47
48 - <h3>Просмотры страниц</h3>  
49 - <p>Lorem ipsum psdea itgum rixt.</p> 48 + <h3><?=\Yii::t('app', 'Просмотры страниц')?></h3>
  49 + <p><?=\Yii::t('app', '(подпись для просмотра страниц)')?></p>
50 </div> 50 </div>
51 </div> 51 </div>
52 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12"> 52 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
@@ -56,8 +56,8 @@ @@ -56,8 +56,8 @@
56 56
57 <div class="count" id="newusers">0</div> 57 <div class="count" id="newusers">0</div>
58 58
59 - <h3>Новые сессии</h3>  
60 - <p>Lorem ipsum psdea itgum rixt.</p> 59 + <h3><?=\Yii::t('app', 'Новые сессии')?></h3>
  60 + <p><?=\Yii::t('app', '(подпись для новых сессий)')?></p>
61 </div> 61 </div>
62 </div> 62 </div>
63 </div> 63 </div>
@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 <div class="col-md-12"> 66 <div class="col-md-12">
67 <?php $panel = Panel::begin( 67 <?php $panel = Panel::begin(
68 [ 68 [
69 - 'header' => 'Analytic', 69 + 'header' => \Yii::t('app', 'Analytic'),
70 ] 70 ]
71 ) ?> 71 ) ?>
72 72
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> 80 <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
81 <?php $panel = Panel::begin( 81 <?php $panel = Panel::begin(
82 [ 82 [
83 - 'header' => 'Pie chart', 83 + 'header' => \Yii::t('app', 'Pie chart'),
84 ] 84 ]
85 ) ?> 85 ) ?>
86 86
@@ -93,7 +93,7 @@ @@ -93,7 +93,7 @@
93 93
94 <?php $panel = Panel::begin( 94 <?php $panel = Panel::begin(
95 [ 95 [
96 - 'header' => 'Some stats', 96 + 'header' => \Yii::t('app', 'Some stats'),
97 ] 97 ]
98 ); ?> 98 ); ?>
99 99
@@ -105,16 +105,16 @@ @@ -105,16 +105,16 @@
105 ], 105 ],
106 'items' => [ 106 'items' => [
107 [ 107 [
108 - 'label' => 'Браузеры', 108 + 'label' => \Yii::t('app', 'Браузеры'),
109 'content' => '<div id="browsers"></div>', 109 'content' => '<div id="browsers"></div>',
110 'active' => true, 110 'active' => true,
111 ], 111 ],
112 [ 112 [
113 - 'label' => 'Города', 113 + 'label' => \Yii::t('app', 'Города'),
114 'content' => '<div id="cities"></div>', 114 'content' => '<div id="cities"></div>',
115 ], 115 ],
116 [ 116 [
117 - 'label' => 'Страны', 117 + 'label' => \Yii::t('app', 'Страны'),
118 'content' => '<div id="countries"></div>', 118 'content' => '<div id="countries"></div>',
119 ], 119 ],
120 ], 120 ],
backend/views/site/instruction.php
@@ -15,12 +15,12 @@ @@ -15,12 +15,12 @@
15 <div class="row"> 15 <div class="row">
16 <?php $panel = Panel::begin( 16 <?php $panel = Panel::begin(
17 [ 17 [
18 - 'header' => 'Инструкции', 18 + 'header' => \Yii::t('app', 'Инструкции'),
19 ] 19 ]
20 ) ?> 20 ) ?>
21 <div class="jumbotron"> 21 <div class="jumbotron">
22 - <h1>Hello, world!</h1>  
23 - <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p> 22 + <h1><?=\Yii::t('app', 'Hello, world!')?></h1>
  23 + <p><?=\Yii::t('app', '(подпись для приветствия)')?></p>
24 </div> 24 </div>
25 <?php $panel::end(); ?> 25 <?php $panel::end(); ?>
26 </div> 26 </div>
backend/views/site/login.php
@@ -48,7 +48,7 @@ JS; @@ -48,7 +48,7 @@ JS;
48 <div class="x_title"> 48 <div class="x_title">
49 <h1><?= Html::encode($this->title) ?></h1> 49 <h1><?= Html::encode($this->title) ?></h1>
50 50
51 - <p>Пожалуйста, заполните все поля для входа:</p> 51 + <p><?=\Yii::t('app', 'Пожалуйста, заполните все поля для входа:')?></p>
52 </div> 52 </div>
53 <div class="row"> 53 <div class="row">
54 <div> 54 <div>
common/messages/ru/app.php
@@ -22,4 +22,16 @@ @@ -22,4 +22,16 @@
22 'Email' => 'Email', 22 'Email' => 'Email',
23 'Text' => 'Текст сообщения', 23 'Text' => 'Текст сообщения',
24 'Comment posted' => 'Ваш комментарий появится после проверки модератором', 24 'Comment posted' => 'Ваш комментарий появится после проверки модератором',
  25 + 'Hello, world!' => 'Добро пожаловать!',
  26 + 'Create Feedback' => 'Добавить отзыв',
  27 + 'Feedbacks' => 'Отзывы',
  28 + 'Search' => 'Поиск',
  29 + 'Reset' => 'Сброс',
  30 + 'Create' => 'Создать',
  31 + 'Update' => 'Обновить',
  32 + '(подпись для просмотра страниц)' => '',
  33 + '(подпись для новых сессий)' => '',
  34 + '(подпись для пользователей)' => '',
  35 + '(подпись для сессий)' => '',
  36 + '(подпись для приветствия)' => '',
25 ]; 37 ];
26 \ No newline at end of file 38 \ No newline at end of file