diff options
| author | 2014-12-11 16:10:39 +0100 | |
|---|---|---|
| committer | 2014-12-11 16:10:39 +0100 | |
| commit | f43b2737065c0fdb2759839d0179ac6730c1bd54 (patch) | |
| tree | 96f5a345c2bd97573742c9ada6acb6dfd258cde3 /app/views | |
| parent | 57bffe83eb396580d08633af93d6cd10a443bf09 (diff) | |
Update i18n for statistics
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/stats/idle.phtml | 16 | ||||
| -rw-r--r-- | app/views/stats/index.phtml | 34 | ||||
| -rw-r--r-- | app/views/stats/repartition.phtml | 22 |
3 files changed, 36 insertions, 36 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index 75cba1081..bfee4366c 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -1,9 +1,9 @@ <?php $this->partial('aside_stats'); ?> <div class="post"> - <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('stats_idle'); ?></h1> + <h1><?php echo _t('admin.stats.idle'); ?></h1> <?php $current_url = urlencode(Minz_Url::display( @@ -16,7 +16,7 @@ $nothing = false; ?> <div class="stat"> - <h2><?php echo _t($period); ?></h2> + <h2><?php echo _t('gen.date.' . $period); ?></h2> <form id="form-delete" method="post" style="display: none"></form> @@ -24,13 +24,13 @@ <ul class="horizontal-list"> <li class="item"> <div class="stick"> - <a class="btn" href="<?php echo _url('index', 'index', 'get', 'f_' . $feed['id']); ?>"><?php echo _i('link'); ?> <?php echo _t('filter'); ?></a> - <a class="btn" href="<?php echo _url('subscription', 'index', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('administration'); ?></a> - <button class="btn btn-attention confirm" form="form-delete" formaction="<?php echo _url('feed', 'delete', 'id', $feed['id'], 'r', $current_url); ?>"><?php echo _t('delete'); ?></button> + <a class="btn" href="<?php echo _url('index', 'index', 'get', 'f_' . $feed['id']); ?>"><?php echo _i('link'); ?> <?php echo _t('gen.action.filter'); ?></a> + <a class="btn" href="<?php echo _url('subscription', 'index', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?></a> + <button class="btn btn-attention confirm" form="form-delete" formaction="<?php echo _url('feed', 'delete', 'id', $feed['id'], 'r', $current_url); ?>"><?php echo _t('gen.action.remove'); ?></button> </div> </li> <li class="item"> - <span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?> (<?php echo _t('number_articles', $feed['nb_articles']); ?>)</span> + <span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?> (<?php echo _t('admin.stats.number_articles', $feed['nb_articles']); ?>)</span> </li> </ul> <?php } ?> @@ -42,7 +42,7 @@ if ($nothing) { ?> <p class="alert alert-warn"> - <span class="alert-head"><?php echo _t('stats_no_idle'); ?></span> + <span class="alert-head"><?php echo _t('admin.stats.no_idle'); ?></span> </p> <?php } ?> </div> diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml index 1300cb2c7..c13c5d26c 100644 --- a/app/views/stats/index.phtml +++ b/app/views/stats/index.phtml @@ -1,38 +1,38 @@ <?php $this->partial('aside_stats'); ?> <div class="post"> - <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('stats_main'); ?></h1> + <h1><?php echo _t('admin.stats.main'); ?></h1> <div class="stat half"> - <h2><?php echo _t('stats_entry_repartition'); ?></h2> + <h2><?php echo _t('admin.stats.entry_repartition'); ?></h2> <table> <thead> <tr> <th> </th> - <th><?php echo _t('main_stream'); ?></th> - <th><?php echo _t('all_feeds'); ?></th> + <th><?php echo _t('admin.stats.main_stream'); ?></th> + <th><?php echo _t('admin.stats.all_feeds'); ?></th> </tr> </thead> <tbody> <tr> - <th><?php echo _t('status_total'); ?></th> + <th><?php echo _t('admin.stats.status_total'); ?></th> <td class="numeric"><?php echo format_number($this->repartition['main_stream']['total']); ?></td> <td class="numeric"><?php echo format_number($this->repartition['all_feeds']['total']); ?></td> </tr> <tr> - <th><?php echo _t('status_read'); ?></th> + <th><?php echo _t('admin.stats.status_read'); ?></th> <td class="numeric"><?php echo format_number($this->repartition['main_stream']['read']); ?></td> <td class="numeric"><?php echo format_number($this->repartition['all_feeds']['read']); ?></td> </tr> <tr> - <th><?php echo _t('status_unread'); ?></th> + <th><?php echo _t('admin.stats.status_unread'); ?></th> <td class="numeric"><?php echo format_number($this->repartition['main_stream']['unread']); ?></td> <td class="numeric"><?php echo format_number($this->repartition['all_feeds']['unread']); ?></td> </tr> <tr> - <th><?php echo _t('status_favorites'); ?></th> + <th><?php echo _t('admin.stats.status_favorites'); ?></th> <td class="numeric"><?php echo format_number($this->repartition['main_stream']['favorite']); ?></td> <td class="numeric"><?php echo format_number($this->repartition['all_feeds']['favorite']); ?></td> </tr> @@ -41,14 +41,14 @@ </div><!-- --><div class="stat half"> - <h2><?php echo _t('stats_top_feed'); ?></h2> + <h2><?php echo _t('admin.stats.top_feed'); ?></h2> <table> <thead> <tr> - <th><?php echo _t('feed'); ?></th> - <th><?php echo _t('category'); ?></th> - <th><?php echo _t('stats_entry_count'); ?></th> - <th><?php echo _t('stats_percent_of_total'); ?></th> + <th><?php echo _t('admin.stats.feed'); ?></th> + <th><?php echo _t('admin.stats.category'); ?></th> + <th><?php echo _t('admin.stats.entry_count'); ?></th> + <th><?php echo _t('admin.stats.percent_of_total'); ?></th> </tr> </thead> <tbody> @@ -65,18 +65,18 @@ </div> <div class="stat"> - <h2><?php echo _t('stats_entry_per_day'); ?></h2> + <h2><?php echo _t('admin.stats.entry_per_day'); ?></h2> <div id="statsEntryPerDay" style="height: 300px"></div> </div> <div class="stat half"> - <h2><?php echo _t('stats_feed_per_category'); ?></h2> + <h2><?php echo _t('admin.stats.feed_per_category'); ?></h2> <div id="statsFeedPerCategory" style="height: 300px"></div> <div id="statsFeedPerCategoryLegend"></div> </div><!-- --><div class="stat half"> - <h2><?php echo _t('stats_entry_per_category'); ?></h2> + <h2><?php echo _t('admin.stats.entry_per_category'); ?></h2> <div id="statsEntryPerCategory" style="height: 300px"></div> <div id="statsEntryPerCategoryLegend"></div> </div> diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml index 4ea71cfb5..b20d9bbd0 100644 --- a/app/views/stats/repartition.phtml +++ b/app/views/stats/repartition.phtml @@ -1,12 +1,12 @@ <?php $this->partial('aside_stats'); ?> <div class="post "> - <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('stats_repartition'); ?></h1> + <h1><?php echo _t('admin.stats.repartition'); ?></h1> <select id="feed_select" class="select-change"> - <option data-url="<?php echo _url('stats', 'repartition')?>"><?php echo _t('all_feeds')?></option> + <option data-url="<?php echo _url('stats', 'repartition')?>"><?php echo _t('admin.stats.all_feeds')?></option> <?php foreach ($this->categories as $category) { $feeds = $category->feeds(); if (!empty($feeds)) { @@ -25,17 +25,17 @@ <?php if ($this->feed) {?> <a class="btn" href="<?php echo _url('subscription', 'index', 'id', $this->feed->id()); ?>"> - <?php echo _i('configure'); ?> <?php echo _t('administration'); ?> + <?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?> </a> <?php }?> <div class="stat"> <table> <tr> - <th><?php echo _t('status_total'); ?></th> - <th><?php echo _t('status_read'); ?></th> - <th><?php echo _t('status_unread'); ?></th> - <th><?php echo _t('status_favorites'); ?></th> + <th><?php echo _t('admin.stats.status_total'); ?></th> + <th><?php echo _t('admin.stats.status_read'); ?></th> + <th><?php echo _t('admin.stats.status_unread'); ?></th> + <th><?php echo _t('admin.stats.status_favorites'); ?></th> </tr> <tr> <td class="numeric"><?php echo $this->repartition['total']; ?></td> @@ -47,17 +47,17 @@ </div> <div class="stat"> - <h2><?php echo _t('stats_entry_per_hour', $this->averageHour); ?></h2> + <h2><?php echo _t('admin.stats.entry_per_hour', $this->averageHour); ?></h2> <div id="statsEntryPerHour" style="height: 300px"></div> </div> <div class="stat half"> - <h2><?php echo _t('stats_entry_per_day_of_week', $this->averageDayOfWeek); ?></h2> + <h2><?php echo _t('admin.stats.entry_per_day_of_week', $this->averageDayOfWeek); ?></h2> <div id="statsEntryPerDayOfWeek" style="height: 300px"></div> </div><!-- --><div class="stat half"> - <h2><?php echo _t('stats_entry_per_month', $this->averageMonth); ?></h2> + <h2><?php echo _t('admin.stats.entry_per_month', $this->averageMonth); ?></h2> <div id="statsEntryPerMonth" style="height: 300px"></div> </div> </div> |
