Commit 5a2397a4a6e8a53de12b8f0c63eba6fa91c3572b

Authored by Eugeny Galkovskiy
1 parent 06692811

composer 1

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