Skip to content

Commit

Permalink
Merge pull request #1 from ekilei/master
Browse files Browse the repository at this point in the history
97139 Перевод компонента cms-measure
  • Loading branch information
skeeks-semenov committed May 5, 2016
2 parents 0017d40 + 7f1db4c commit 45311a5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions messages/ru/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@
'Units of measurement' => 'Единицы измерения',
'Settings' => 'Настройки',
'Default' => 'По умолчанию',
'Unit of measure' => 'Наименование единицы измерения',
'Conventional symbol' => 'Условное обозначение',
'Conventional symbol (international)' => 'Условное обозначение (международное)',
'The code letter of symbol (international)' => 'Кодовое буквенное обозначение (международное)',
'Main' => 'Основное',
];
22 changes: 11 additions & 11 deletions models/Measure.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,17 @@ public function rules()
public function attributeLabels()
{
return [
'id' => Yii::t('app', 'ID'),
'created_by' => Yii::t('app', 'Created By'),
'updated_by' => Yii::t('app', 'Updated By'),
'created_at' => Yii::t('app', 'Created At'),
'updated_at' => Yii::t('app', 'Updated At'),
'code' => Yii::t('app', 'Code'),
'name' => Yii::t('app', 'Наименование единицы измерения'),
'symbol_rus' => Yii::t('app', 'Условное обозначение'),
'symbol_intl' => Yii::t('app', 'Условное обозначение (международное)'),
'symbol_letter_intl' => Yii::t('app', 'Кодовое буквенное обозначение (международное)'),
'def' => Yii::t('app', 'Default'),
'id' => \Yii::t('skeeks/measure', 'ID'),
'created_by' => \Yii::t('skeeks/measure', 'Created By'),
'updated_by' => \Yii::t('skeeks/measure', 'Updated By'),
'created_at' => \Yii::t('skeeks/measure', 'Created At'),
'updated_at' => \Yii::t('skeeks/measure', 'Updated At'),
'code' => \Yii::t('skeeks/measure', 'Code'),
'name' => \Yii::t('skeeks/measure', 'Unit of measure'),
'symbol_rus' => \Yii::t('skeeks/measure', 'Conventional symbol'),
'symbol_intl' => \Yii::t('skeeks/measure', 'Conventional symbol (international)'),
'symbol_letter_intl' => \Yii::t('skeeks/measure', 'The code letter of symbol (international)'),
'def' => \Yii::t('skeeks/measure', 'Default'),
];
}

Expand Down
2 changes: 1 addition & 1 deletion views/admin-measure/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<?php $form = ActiveForm::begin(); ?>

<?= $form->fieldSet('Основное'); ?>
<?= $form->fieldSet(\Yii::t('skeeks/measure','Main')); ?>

<?= $form->fieldInputInt($model, 'code')->textInput(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => 500]); ?>
Expand Down

0 comments on commit 45311a5

Please sign in to comment.