Commit f4c99965fe935a5cb2b961470e8aa593a47e54f6
1 parent
10e74468
translate to ua some fixes
Showing
3 changed files
with
16 additions
and
4 deletions
Show diff stats
artweb/artbox-core/models/Feedback.php
@@ -152,8 +152,8 @@ | @@ -152,8 +152,8 @@ | ||
152 | { | 152 | { |
153 | return [ | 153 | return [ |
154 | 'id' => Yii::t('core', 'id'), | 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 | 'created_at' => Yii::t('core', 'created_at'), | 157 | 'created_at' => Yii::t('core', 'created_at'), |
158 | 'ip' => Yii::t('core', 'ip'), | 158 | 'ip' => Yii::t('core', 'ip'), |
159 | 'url' => Yii::t('core', 'url'), | 159 | 'url' => Yii::t('core', 'url'), |
frontend/models/Order.php
@@ -195,4 +195,16 @@ | @@ -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 | \ No newline at end of file | 211 | \ No newline at end of file |
frontend/views/product/view.php
@@ -488,14 +488,14 @@ JS; | @@ -488,14 +488,14 @@ JS; | ||
488 | ->label(false) | 488 | ->label(false) |
489 | ->hiddenInput(); | 489 | ->hiddenInput(); |
490 | echo $form->field($order, 'name') | 490 | echo $form->field($order, 'name') |
491 | - ->label(false) | 491 | + ->label(Yii::t('app','name')) |
492 | ->textInput( | 492 | ->textInput( |
493 | [ | 493 | [ |
494 | 'placeholder' => $order->getAttributeLabel('name'), | 494 | 'placeholder' => $order->getAttributeLabel('name'), |
495 | ] | 495 | ] |
496 | ); | 496 | ); |
497 | echo $form->field($order, 'phone') | 497 | echo $form->field($order, 'phone') |
498 | - ->label(false) | 498 | + ->label(Yii::t('app','phone')) |
499 | ->textInput( | 499 | ->textInput( |
500 | [ | 500 | [ |
501 | 'placeholder' => $order->getAttributeLabel('phone'), | 501 | 'placeholder' => $order->getAttributeLabel('phone'), |