From 17199cf2db8a175dfd8efc40bbb1ce54affcce6f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 6 Dec 2015 15:38:05 +0100 Subject: [PATCH] WEB: Translate news.tpl into Russian. Fixes --- include/Controller.php | 2 +- templates_ru/intro_header.tpl | 2 +- templates_ru/news.tpl | 38 +++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 templates_ru/news.tpl diff --git a/include/Controller.php b/include/Controller.php index 9ab07d47b..6abef56c8 100644 --- a/include/Controller.php +++ b/include/Controller.php @@ -33,7 +33,7 @@ public function __construct() { global $lang; - $lang = 'de'; + $lang = 'ru'; $this->_smarty->template_dir = array("templates_$lang", 'templates'); $this->_smarty->compile_id = $lang; diff --git a/templates_ru/intro_header.tpl b/templates_ru/intro_header.tpl index f9b0c4b35..724cd2723 100644 --- a/templates_ru/intro_header.tpl +++ b/templates_ru/intro_header.tpl @@ -11,7 +11,7 @@

- {include file='shadowed_text.tpl' text='Screenshots' shadowcolor='#fff' textcolor='#356a02'} + {include file='shadowed_text.tpl' text='Скриншоты' shadowcolor='#fff' textcolor='#356a02'}

diff --git a/templates_ru/news.tpl b/templates_ru/news.tpl new file mode 100644 index 000000000..8dbbbdd08 --- /dev/null +++ b/templates_ru/news.tpl @@ -0,0 +1,38 @@ +{foreach from=$news_items item=news} +{assign var='news_date' value=$news->getDate()|date_format:"%Y%m%d"} +{assign var='news_filename' value=$news->getFilename()|substr:'0':'-4'} +{if !empty($date) && ($date == 'archive' || strlen($date) == 8)} + {assign var='news_date' value=$news_filename} +{/if} + +
+ + +
+
+ Опубликовано разработчиком {$news->getAuthor()} +
+ {if $news->getImage() != null} + {$news->getImage()} + {/if} + {$news->getContent()} +
+
+
+{/foreach} + +{* Only show the 'more news' link if we're on the main page *} +{if is_bool($news_archive_link) && $news_archive_link} + +{/if}