Skip to content

Commit

Permalink
WEB: Translate news.tpl into Russian. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 12, 2015
1 parent 5b0ddbc commit 17199cf
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/Controller.php
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion templates_ru/intro_header.tpl
Expand Up @@ -11,7 +11,7 @@
<div class="rbtop">
<div>
<p>
{include file='shadowed_text.tpl' text='Screenshots' shadowcolor='#fff' textcolor='#356a02'}
{include file='shadowed_text.tpl' text='Скриншоты' shadowcolor='#fff' textcolor='#356a02'}
</p>
</div>
</div>
Expand Down
38 changes: 38 additions & 0 deletions 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}

<div class="box">
<a name="{$news->getDate()|date_format:"%Y-%m-%d"}{if $news_filename|strlen == 9}{$news_filename|substr:'-1'}{/if}"></a>
<div class="head">
<a href="{$baseurl}news/{$news_date}/">
<span class="news-date">{$news->getDate()|date_f:"M j, Y"}</span>:
{$news->getTitle()}
</a>
</div>
<div class="content">
<div class="news-author">
Опубликовано разработчиком {$news->getAuthor()}
</div>
{if $news->getImage() != null}
{$news->getImage()}
{/if}
{$news->getContent()}
<div class="spacing"></div>
</div>
</div>
{/foreach}

{* Only show the 'more news' link if we're on the main page *}
{if is_bool($news_archive_link) && $news_archive_link}
<p class="bottom-link">
<span class="feeds float_left">
<a href="feeds/atom/">Atom</a> |
<a href="feeds/rss/">RSS</a>
</span>
<a href="news/archive/" class="float_right">Ещё новости...</a>
</p>
{/if}

0 comments on commit 17199cf

Please sign in to comment.