From 9811ee70be84639322444f0f6c7538ce2b178231 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Wed, 27 Jan 2016 14:50:09 +0000 Subject: [PATCH] added translations --- src/grid/DomainGridView.php | 16 ++++++---------- src/messages/ru/domain.php | 8 +++++++- src/models/Domain.php | 2 +- src/views/domain/_modalPush.php | 4 ++-- src/views/domain/view.php | 2 +- src/widgets/views/ns.php | 9 ++++----- 6 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/grid/DomainGridView.php b/src/grid/DomainGridView.php index 61affc0d..029c2f98 100644 --- a/src/grid/DomainGridView.php +++ b/src/grid/DomainGridView.php @@ -59,16 +59,15 @@ public static function defaultColumns() 'url' => Url::toRoute('set-whois-protect'), 'popover' => 'WHOIS protection', 'pluginOptions' => [ - 'onColor' => 'success', 'offColor' => 'warning', ], ], 'is_secured' => [ - 'class' => BootstrapSwitchColumn::className(), - 'filter' => false, - 'url' => Url::toRoute('set-lock'), - 'attribute' => 'is_secured', - 'popover' => Yii::t('app', 'Protection from transfer'), + 'class' => BootstrapSwitchColumn::className(), + 'filter' => false, + 'url' => Url::toRoute('set-lock'), + 'attribute' => 'is_secured', + 'popover' => Yii::t('app', 'Protection from transfer'), ], 'note' => [ 'class' => 'hiqdev\xeditable\grid\XEditableColumn', @@ -98,10 +97,7 @@ public static function defaultColumns() 'label' => Yii::t('app', 'Autorenew'), 'filter' => false, 'url' => Url::toRoute('set-autorenewal'), - 'popover' => 'The domain will be autorenewed for one year in a week before it expires if you have enough credit on your account', - 'pluginOptions' => [ - 'onColor' => 'info', - ], + 'popover' => Yii::t('hipanel/domain', 'The domain will be autorenewed for one year in a week before it expires if you have enough credit on your account'), ], 'nameservers' => [ 'format' => 'raw', diff --git a/src/messages/ru/domain.php b/src/messages/ru/domain.php index cc9a3087..ce4e38a0 100644 --- a/src/messages/ru/domain.php +++ b/src/messages/ru/domain.php @@ -2,4 +2,10 @@ return [ 'Domains in «ok» state' => 'В состоянии «ОК»', -]; \ No newline at end of file + 'Incoming transfer domains' => 'Входящий трансфер', + 'Outgoing transfer domains' => 'Исходящий трансфер', + 'Expired domains' => 'Просроченные домены', + + 'The domain will be autorenewed for one year in a week before it expires if you have enough credit on your account' => 'Домен будет продлён на один год автоматически за неделю до окончания срока при наличии средств на счету', + 'This operation pushes the domain to another user irrevocably. You can not bring it back.' => 'Данная операция передаёт домен другому пользователю необратимо. Вы не сможете отменить эту операцию.', +]; diff --git a/src/models/Domain.php b/src/models/Domain.php index b57e431f..021b86b5 100644 --- a/src/models/Domain.php +++ b/src/models/Domain.php @@ -182,7 +182,7 @@ public function attributeLabels() 'expires_soon' => Yii::t('app', ' label'), // Domain transfer - 'password' => Yii::t('app', ' Code'), + 'password' => Yii::t('app', 'Auth/EPP Code'), ]); } diff --git a/src/views/domain/_modalPush.php b/src/views/domain/_modalPush.php index 4b3b023b..a8b08346 100644 --- a/src/views/domain/_modalPush.php +++ b/src/views/domain/_modalPush.php @@ -22,7 +22,7 @@

  

- + @@ -62,4 +62,4 @@


'btn btn-success']) ?> - \ No newline at end of file + diff --git a/src/views/domain/view.php b/src/views/domain/view.php index 54f9ce06..d1fcc938 100644 --- a/src/views/domain/view.php +++ b/src/views/domain/view.php @@ -183,7 +183,7 @@ 'label' => Yii::t('app', 'Premium package autorenewal'), 'filter' => false, 'url' => Url::toRoute(['@hdomain/set-paid-feature-autorenewal']), - 'popover' => 'The domain will be autorenewed for one year in a week before it expires if you have enough credit on your account', + 'popover' => Yii::t('hipanel/domain', 'The domain will be autorenewed for one year in a week before it expires if you have enough credit on your account'), 'visible' => $model->is_premium === 't' ? true : false, 'pluginOptions' => [ 'onColor' => 'info', diff --git a/src/widgets/views/ns.php b/src/widgets/views/ns.php index e83690b4..42c5f097 100644 --- a/src/widgets/views/ns.php +++ b/src/widgets/views/ns.php @@ -56,10 +56,9 @@

  

- +

+ +

@@ -144,4 +143,4 @@ class="glyphicon glyphicon-minus"> - \ No newline at end of file +