Commit f4c99965fe935a5cb2b961470e8aa593a47e54f6

Authored by mzavalniuk
1 parent 10e74468

translate to ua some fixes

artweb/artbox-core/models/Feedback.php
... ... @@ -152,8 +152,8 @@
152 152 {
153 153 return [
154 154 'id' => Yii::t('core', 'id'),
155   - 'name' => Yii::t('core', 'name'),
156   - 'phone' => Yii::t('core', 'phone'),
  155 + 'name' => Yii::t('app', 'name'),
  156 + 'phone' => Yii::t('app', 'phone'),
157 157 'created_at' => Yii::t('core', 'created_at'),
158 158 'ip' => Yii::t('core', 'ip'),
159 159 'url' => Yii::t('core', 'url'),
... ...
frontend/models/Order.php
... ... @@ -195,4 +195,16 @@
195 195 }
196 196 }
197 197 }
  198 +
  199 + public function attributeLabels()
  200 + {
  201 + return [
  202 + 'name' => \Yii::t('app', 'name'),
  203 + 'phone' => \Yii::t('app', 'phone'),
  204 + 'email' => \Yii::t('app', 'email'),
  205 + 'city' => \Yii::t('app', 'city'),
  206 + 'address' => \Yii::t('app', 'address'),
  207 + 'secondname' => \Yii::t('app', 'secondname'),
  208 + ];
  209 + }
198 210 }
199 211 \ No newline at end of file
... ...
frontend/views/product/view.php
... ... @@ -488,14 +488,14 @@ JS;
488 488 ->label(false)
489 489 ->hiddenInput();
490 490 echo $form->field($order, 'name')
491   - ->label(false)
  491 + ->label(Yii::t('app','name'))
492 492 ->textInput(
493 493 [
494 494 'placeholder' => $order->getAttributeLabel('name'),
495 495 ]
496 496 );
497 497 echo $form->field($order, 'phone')
498   - ->label(false)
  498 + ->label(Yii::t('app','phone'))
499 499 ->textInput(
500 500 [
501 501 'placeholder' => $order->getAttributeLabel('phone'),
... ...