aboutsummaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-17 21:41:33 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-17 21:41:33 +0100
commit0b898678003b154fde1abd57da27e9246606085f (patch)
tree87e7c5575cc9a269b3807a58499db52854d48e47 /app/views/index
parent930026df2159b027bc035f4ed15c39a43eb0e9fe (diff)
parent875b8a72f97429c4e4df6d292daf4261fb7a45bd (diff)
Merge branch 'dev' into 252-extensions
Conflicts: app/i18n/en/admin.php app/i18n/en/feedback.php app/i18n/en/gen.php app/i18n/fr/admin.php app/i18n/fr/feedback.php app/i18n/fr/gen.php app/views/index/normal.phtml
Diffstat (limited to 'app/views/index')
-rw-r--r--app/views/index/about.phtml26
-rw-r--r--app/views/index/logs.phtml8
-rw-r--r--app/views/index/normal.phtml14
-rw-r--r--app/views/index/reader.phtml6
-rwxr-xr-xapp/views/index/rss.phtml2
5 files changed, 28 insertions, 28 deletions
diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml
index 407d13ae9..ff2c538a2 100644
--- a/app/views/index/about.phtml
+++ b/app/views/index/about.phtml
@@ -1,27 +1,27 @@
<div class="post content">
- <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
+ <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
- <h1><?php echo _t('about_freshrss'); ?></h1>
+ <h1><?php echo _t('index.about'); ?></h1>
<dl class="infos">
- <dt><?php echo _t('project_website'); ?></dt>
+ <dt><?php echo _t('index.about.project_website'); ?></dt>
<dd><a href="<?php echo FRESHRSS_WEBSITE; ?>"><?php echo FRESHRSS_WEBSITE; ?></a></dd>
- <dt><?php echo _t('lead_developer'); ?></dt>
- <dd><a href="mailto:contact@marienfressinaud.fr">Marien Fressinaud</a> — <a href="http://marienfressinaud.fr"><?php echo _t('website'); ?></a></dd>
+ <dt><?php echo _t('index.about.lead_developer'); ?></dt>
+ <dd><a href="mailto:contact@marienfressinaud.fr">Marien Fressinaud</a> — <a href="http://marienfressinaud.fr"><?php echo _t('index.about.website'); ?></a></dd>
- <dt><?php echo _t('bugs_reports'); ?></dt>
- <dd><?php echo _t('github_or_email'); ?></dd>
+ <dt><?php echo _t('index.about.bugs_reports'); ?></dt>
+ <dd><?php echo _t('index.about.github_or_email'); ?></dd>
- <dt><?php echo _t('license'); ?></dt>
- <dd><?php echo _t('agpl3'); ?></dd>
+ <dt><?php echo _t('index.about.license'); ?></dt>
+ <dd><?php echo _t('index.about.agpl3'); ?></dd>
- <dt><?php echo _t('version'); ?></dt>
+ <dt><?php echo _t('index.about.version'); ?></dt>
<dd><?php echo FRESHRSS_VERSION; ?></dd>
</dl>
- <p><?php echo _t('freshrss_description'); ?></p>
+ <p><?php echo _t('index.about.freshrss_description'); ?></p>
- <h1><?php echo _t('credits'); ?></h1>
- <p><?php echo _t('credits_content'); ?></p>
+ <h1><?php echo _t('index.about.credits'); ?></h1>
+ <p><?php echo _t('index.about.credits_content'); ?></p>
</div>
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index 101692daf..02256bd98 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -1,10 +1,10 @@
<div class="post content">
- <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
+ <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
- <h1><?php echo _t('logs'); ?></h1>
+ <h1><?php echo _t('index.log'); ?></h1>
<form method="post" action="<?php echo _url('index', 'logs'); ?>"><p>
<input type="hidden" name="clearLogs" />
- <button type="submit" class="btn"><?php echo _t('clear_logs'); ?></button>
+ <button type="submit" class="btn"><?php echo _t('index.log.clear'); ?></button>
</p></form>
<?php $items = $this->logsPaginator->items(); ?>
@@ -20,6 +20,6 @@
<?php $this->logsPaginator->render('logs_pagination.phtml','page'); ?>
</div>
<?php } else { ?>
- <p class="alert alert-warn"><?php echo _t('logs_empty'); ?></p>
+ <p class="alert alert-warn"><?php echo _t('index.log.empty'); ?></p>
<?php } ?>
</div>
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index f2e1c5012..817732c2c 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -17,7 +17,7 @@ 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) {
$this->entry = Minz_ExtensionManager::callHook('entry_before_display', $item);
@@ -36,7 +36,7 @@ if (!empty($this->entries)) {
if ($display_today && $this->entry->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
@@ -44,7 +44,7 @@ if (!empty($this->entries)) {
}
if ($display_yesterday && $this->entry->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
@@ -52,7 +52,7 @@ if (!empty($this->entries)) {
}
if ($display_others && $this->entry->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;
@@ -66,7 +66,7 @@ if (!empty($this->entries)) {
<h1 class="title"><a target="_blank" href="<?php echo $this->entry->link(); ?>"><?php echo $this->entry->title(); ?></a></h1>
<?php
$author = $this->entry->author();
- echo $author != '' ? '<div class="author">' . _t('by_author', $author) . '</div>' : '',
+ echo $author != '' ? '<div class="author">' . _t('gen.short.by_author', $author) . '</div>' : '',
$lazyload && $hidePosts ? lazyimg($this->entry->content()) : $this->entry->content();
?>
</div><?php
@@ -84,7 +84,7 @@ if (!empty($this->entries)) {
<?php } else { ?>
<div id="stream" class="prompt alert alert-warn normal">
- <h2><?php echo _t('no_feed_to_display'); ?></h2>
- <a href="<?php echo _url('subscription', 'index'); ?>"><?php echo _t('think_to_add'); ?></a><br /><br />
+ <h2><?php echo _t('index.feed.empty'); ?></h2>
+ <a href="<?php echo _url('subscription', 'index'); ?>"><?php echo _t('index.feed.add'); ?></a><br /><br />
</div>
<?php } ?>
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index 75bea9743..ae65a72d2 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -26,7 +26,7 @@ if (!empty($this->entries)) {
<div class="author"><?php
$author = $item->author();
- echo $author != '' ? _t('by_author', $author) . ' — ' : '',
+ echo $author != '' ? _t('gen.short.by_author', $author) . ' — ' : '',
$item->date();
?></div>
@@ -41,7 +41,7 @@ if (!empty($this->entries)) {
<?php } else { ?>
<div id="stream" class="prompt alert alert-warn reader">
- <h2><?php echo _t('no_feed_to_display'); ?></h2>
- <a href="<?php echo _url('subscription', 'index'); ?>"><?php echo _t('think_to_add'); ?></a><br /><br />
+ <h2><?php echo _t('index.feed.empty'); ?></h2>
+ <a href="<?php echo _url('subscription', 'index'); ?>"><?php echo _t('index.feed.add'); ?></a><br /><br />
</div>
<?php } ?>
diff --git a/app/views/index/rss.phtml b/app/views/index/rss.phtml
index e34b15ab1..86074517c 100755
--- a/app/views/index/rss.phtml
+++ b/app/views/index/rss.phtml
@@ -3,7 +3,7 @@
<channel>
<title><?php echo $this->rss_title; ?></title>
<link><?php echo Minz_Url::display(null, 'html', true); ?></link>
- <description><?php echo _t('rss_feeds_of', $this->rss_title); ?></description>
+ <description><?php echo _t('index.feed.rss_of', $this->rss_title); ?></description>
<pubDate><?php echo date('D, d M Y H:i:s O'); ?></pubDate>
<lastBuildDate><?php echo gmdate('D, d M Y H:i:s'); ?> GMT</lastBuildDate>
<atom:link href="<?php echo Minz_Url::display($this->url, 'html', true); ?>" rel="self" type="application/rss+xml" />