diff options
| author | 2014-12-11 00:00:15 +0100 | |
|---|---|---|
| committer | 2014-12-11 00:00:15 +0100 | |
| commit | d455837c6d6e3ad3d64d06f40c947c93fc4e2086 (patch) | |
| tree | 22749b7dbd363986320ce83abe7f40e80b370117 /app/views | |
| parent | 8a40a726575947c074216ad9084275e0195f9c30 (diff) | |
Fix i18n for normal view
Diffstat (limited to 'app/views')
| -rwxr-xr-x | app/views/helpers/pagination.phtml | 8 | ||||
| -rw-r--r-- | app/views/index/logs.phtml | 6 | ||||
| -rw-r--r-- | app/views/index/normal.phtml | 16 |
3 files changed, 15 insertions, 15 deletions
diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml index 3ea6c3582..8b40e4336 100755 --- a/app/views/helpers/pagination.phtml +++ b/app/views/helpers/pagination.phtml @@ -20,7 +20,7 @@ <li class="item pager-next"> <?php if (FreshRSS_Context::$next_id) { ?> <a id="load_more" href="<?php echo Minz_Url::display($url_next); ?>"> - <?php echo _t('load_more'); ?> + <?php echo _t('gen.pagination.load_more'); ?> </a> <?php } elseif ($url_mark_read) { ?> <button id="bigMarkAsRead" @@ -28,13 +28,13 @@ form="mark-read-pagination" formaction="<?php echo Minz_Url::display($url_mark_read); ?>" type="submit"> - <?php echo _t('nothing_to_load'); ?><br /> + <?php echo _t('gen.pagination.nothing_to_load'); ?><br /> <span class="bigTick">✓</span><br /> - <?php echo _t('mark_all_read'); ?> + <?php echo _t('gen.pagination.mark_all_read'); ?> </button> <?php } else { ?> <a id="bigMarkAsRead" href="."> - <?php echo _t('nothing_to_load'); ?><br /> + <?php echo _t('gen.pagination.nothing_to_load'); ?><br /> </a> <?php } ?> </li> diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml index 0262325f5..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('gen.action.back_to_rss_feeds'); ?></a> - <h1><?php echo _t('index.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('index.logs.clear'); ?></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('index.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 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 |
