Commit 5a2397a4a6e8a53de12b8f0c63eba6fa91c3572b

Authored by Eugeny Galkovskiy
1 parent 06692811

composer 1

common/messages/ru/app.php
1 1 <?php
2   - return [];
3 2 \ No newline at end of file
  3 +return [
  4 + 'Contact us on ' => 'Свяжитесь с нами ',
  5 + ' or ' => ' или '
  6 + 'tel:' => 'по тел.',
  7 +];
4 8 \ No newline at end of file
... ...
common/messages/ua/app.php 0 → 100644
  1 +<?php
  2 +return [
  3 + 'Contact us on ' => '',
  4 +];
0 5 \ No newline at end of file
... ...
composer.json
... ... @@ -18,7 +18,7 @@
18 18 "minimum-stability": "stable",
19 19 "require": {
20 20 "php": ">=7.0",
21   - "yiisoft/yii2": "~2.0",
  21 + "yiisoft/yii2": "<=2.0.12",
22 22 "yiisoft/yii2-bootstrap": "~2.0",
23 23 "yiisoft/yii2-swiftmailer": "~2.0",
24 24 "noam148/yii2-image-manager": "~1.0",
... ...
frontend/views/layouts/main.php
... ... @@ -105,7 +105,7 @@ _________________________________________________________ --&gt;
105 105 <?php
106 106 if (!empty($settings->phone)) {
107 107 echo \Yii::t('app', 'Contact us on ');
108   - echo Html::a($settings->phone, "tel: {$settings->phone}");
  108 + echo Html::a($settings->phone, \Yii::t('app', 'tel:')." {$settings->phone}");
109 109 if (!empty($settings->email)) {
110 110 echo \Yii::t('app', ' or ');
111 111 echo Html::a($settings->email, "mailto:$settings->email");
... ...