Skip to content

Commit

Permalink
added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 27, 2016
1 parent e43697f commit 9811ee7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
16 changes: 6 additions & 10 deletions src/grid/DomainGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 7 additions & 1 deletion src/messages/ru/domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

return [
'Domains in «ok» state' => 'В состоянии «ОК»',
];
'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.' => 'Данная операция передаёт домен другому пользователю необратимо. Вы не сможете отменить эту операцию.',
];
2 changes: 1 addition & 1 deletion src/models/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]);
}

Expand Down
4 changes: 2 additions & 2 deletions src/views/domain/_modalPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<h4><i class="fa fa-info-circle"></i>&nbsp;&nbsp;<?= Yii::t('app', 'Notice') ?></h4>

<p>
<?= Yii::t('app', 'The operation to transfer the domain to another user irrevocably. You can not bring it back.'); ?>
<?= Yii::t('hipanel/domain', 'This operation pushes the domain to another user irrevocably. You can not bring it back.') ?>
<?php if ($hasPincode['pincode_enabled']) : ?>
<?= Yii::t('app', 'To confirm this, you need to enter a PIN code.'); ?>
<?php endif; ?>
Expand Down Expand Up @@ -62,4 +62,4 @@
<hr>
<?= Html::submitButton('Send', ['class' => 'btn btn-success']) ?>

<?php ActiveForm::end() ?>
<?php ActiveForm::end() ?>
2 changes: 1 addition & 1 deletion src/views/domain/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
9 changes: 4 additions & 5 deletions src/widgets/views/ns.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@
<h4><i class="fa fa-info-circle"></i>&nbsp;&nbsp;<?= Yii::t('app', 'Notice') ?></h4>

<p>
<?= Yii::t('app', 'With this form you can assign the authoritative name server for your domain. '
. 'IP addresses can be assigned only child name servers, and they are created or '
. 'changed automatically in accordance with specified data.'
); ?>
<?= Yii::t('app', 'With this form you can assign the authoritative name servers for your domain.') ?></p><p>
<?= Yii::t('app', 'IP addresses can be assigned to child name servers only.') ?>
<?= Yii::t('app', 'Child name servers are created or changed automatically according to specified data.') ?>
</p>
</div>

Expand Down Expand Up @@ -144,4 +143,4 @@ class="glyphicon glyphicon-minus"></i></button>
</div>

<?php ActiveForm::end(); ?>
<?php Pjax::end(); ?>
<?php Pjax::end(); ?>

0 comments on commit 9811ee7

Please sign in to comment.