summaryrefslogtreecommitdiff
path: root/app/views/index/normal.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-11 00:00:15 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-11 00:00:15 +0100
commitd455837c6d6e3ad3d64d06f40c947c93fc4e2086 (patch)
tree22749b7dbd363986320ce83abe7f40e80b370117 /app/views/index/normal.phtml
parent8a40a726575947c074216ad9084275e0195f9c30 (diff)
Fix i18n for normal view
Diffstat (limited to 'app/views/index/normal.phtml')
-rw-r--r--app/views/index/normal.phtml16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index 02d621bd0..62fb68931 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -32,12 +32,12 @@ if (!empty($this->entries)) {
<div id="stream" class="normal<?php echo $hidePosts ? ' hide_posts' : ''; ?>"><?php
?><div id="new-article">
- <a href="<?php echo Minz_Url::display(Minz_Request::currentRequest()); ?>"><?php echo _t('new_article'); ?></a>
+ <a href="<?php echo Minz_Url::display(Minz_Request::currentRequest()); ?>"><?php echo _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a>
</div><?php
foreach ($this->entries as $item) {
if ($display_today && $item->isDay(FreshRSS_Days::TODAY, $today)) {
?><div class="day" id="day_today"><?php
- echo _t('today');
+ echo _t('gen.date.today');
?><span class="date"> — <?php echo timestamptodate(time(), false); ?></span><?php
?><span class="name"><?php echo FreshRSS_Context::$name; ?></span><?php
?></div><?php
@@ -45,7 +45,7 @@ if (!empty($this->entries)) {
}
if ($display_yesterday && $item->isDay(FreshRSS_Days::YESTERDAY, $today)) {
?><div class="day" id="day_yesterday"><?php
- echo _t('yesterday');
+ echo _t('gen.date.yesterday');
?><span class="date"> — <?php echo timestamptodate(time() - 86400, false); ?></span><?php
?><span class="name"><?php echo FreshRSS_Context::$name; ?></span><?php
?></div><?php
@@ -53,7 +53,7 @@ if (!empty($this->entries)) {
}
if ($display_others && $item->isDay(FreshRSS_Days::BEFORE_YESTERDAY, $today)) {
?><div class="day" id="day_before_yesterday"><?php
- echo _t('before_yesterday');
+ echo _t('gen.date.before_yesterday');
?><span class="name"><?php echo FreshRSS_Context::$name; ?></span><?php
?></div><?php
$display_others = false;
@@ -100,7 +100,7 @@ if (!empty($this->entries)) {
<h1 class="title"><a target="_blank" href="<?php echo $item->link(); ?>"><?php echo $item->title(); ?></a></h1>
<?php
$author = $item->author();
- echo $author != '' ? '<div class="author">' . _t('by_author', $author) . '</div>' : '',
+ echo $author != '' ? '<div class="author">' . _t('index.entry.by_author', $author) . '</div>' : '',
$lazyload && $hidePosts ? lazyimg($item->content()) : $item->content();
?>
</div>
@@ -135,7 +135,7 @@ if (!empty($this->entries)) {
<div id="dropdown-share-<?php echo $item->id();?>" class="dropdown-target"></div>
<a class="dropdown-toggle" href="#dropdown-share-<?php echo $item->id();?>">
<?php echo _i('share'); ?>
- <?php echo _t('share'); ?>
+ <?php echo _t('index.share'); ?>
</a>
<ul class="dropdown-menu">
@@ -143,7 +143,7 @@ if (!empty($this->entries)) {
<?php foreach ($sharing as $share) :?>
<li class="item share">
<a target="_blank" href="<?php echo FreshRSS_Share::generateUrl(FreshRSS_Context::$conf->shares, $share, $item->link(), $item->title() . ' . ' . $feed->name())?>">
- <?php echo _t($share['name']);?>
+ <?php echo _t('index.share.' . $share['name']);?>
</a>
</li>
<?php endforeach;?>
@@ -158,7 +158,7 @@ if (!empty($this->entries)) {
<div id="dropdown-tags-<?php echo $item->id();?>" class="dropdown-target"></div>
<?php echo _i('tag'); ?>
<a class="dropdown-toggle" href="#dropdown-tags-<?php echo $item->id();?>"><?php
- echo _t('related_tags');
+ echo _t('index.tag.related');
?></a>
<ul class="dropdown-menu">
<li class="dropdown-close"><a href="#close">❌</a></li><?php