Commit 86123e25669d87cd733decf7ae4a62d568d79dd3
1 parent
82308ad4
add eng translates
Showing
1 changed file
with
16 additions
and
3 deletions
Show diff stats
frontend/views/site/contact.php
@@ -67,7 +67,12 @@ JS; | @@ -67,7 +67,12 @@ JS; | ||
67 | <p> | 67 | <p> |
68 | <?php | 68 | <?php |
69 | if (!empty( $settings->street )) { | 69 | if (!empty( $settings->street )) { |
70 | - echo "<span itemprop=\"streetAddress\">".$settings->street; | 70 | + $notEn = (\artbox\core\models\Language::getCurrent()->url !== 'en')?true:false; |
71 | + echo "<span itemprop=\"streetAddress\">". | ||
72 | + $notEn? | ||
73 | + $settings->street | ||
74 | + :'m. Poznyaki, st. Sribnokilskaya' | ||
75 | + ; | ||
71 | if (!empty( $settings->house )) { | 76 | if (!empty( $settings->house )) { |
72 | echo " " . $settings->house; | 77 | echo " " . $settings->house; |
73 | } | 78 | } |
@@ -75,9 +80,17 @@ JS; | @@ -75,9 +80,17 @@ JS; | ||
75 | echo Html::tag('br'); | 80 | echo Html::tag('br'); |
76 | } | 81 | } |
77 | if (!empty( $settings->city )) { | 82 | if (!empty( $settings->city )) { |
78 | - echo "<span itemprop=\"addressLocality\">".$settings->city."</span>"; | 83 | + echo "<span itemprop=\"addressLocality\">". |
84 | + | ||
85 | + $notEn?$settings->city | ||
86 | + :'Kyiv' | ||
87 | + ."</span>"; | ||
79 | if (!empty( $settings->country )) { | 88 | if (!empty( $settings->country )) { |
80 | - echo Html::tag('strong', ", <span itemprop=\"addressCountry\">" . $settings->country."</span>"); | 89 | + echo Html::tag('strong', ", <span itemprop=\"addressCountry\">" . |
90 | + $notEn? | ||
91 | + $settings->country | ||
92 | + :'Ukraine' | ||
93 | + ."</span>"); | ||
81 | } | 94 | } |
82 | } | 95 | } |
83 | ?> | 96 | ?> |