diff options
| author | 2014-12-11 17:26:01 +0100 | |
|---|---|---|
| committer | 2014-12-11 17:26:01 +0100 | |
| commit | cad4259e627a016a44e48395b242f973c1e4d502 (patch) | |
| tree | 39486c5d89ddbc4b16db990a6f6941bdb32ca3d2 /app/views | |
| parent | f43b2737065c0fdb2759839d0179ac6730c1bd54 (diff) | |
Fix i18n for subscription pages
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/feed/update.phtml | 76 | ||||
| -rw-r--r-- | app/views/stats/idle.phtml | 2 | ||||
| -rw-r--r-- | app/views/subscription/index.phtml | 38 |
3 files changed, 58 insertions, 58 deletions
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index d79ef2666..0b08d036c 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -2,9 +2,9 @@ <h1><?php echo $this->feed->name(); ?></h1> <div> - <a href="<?php echo _url('index', 'index', 'get', 'f_' . $this->feed->id()); ?>"><?php echo _i('link'); ?> <?php echo _t('filter'); ?></a> - <?php echo _t('or'); ?> - <a href="<?php echo _url('stats', 'repartition', 'id', $this->feed->id()); ?>"><?php echo _i('stats'); ?> <?php echo _t('stats'); ?></a> + <a href="<?php echo _url('index', 'index', 'get', 'f_' . $this->feed->id()); ?>"><?php echo _i('link'); ?> <?php echo _t('gen.action.filter'); ?></a> + <?php echo _t('gen.short.or'); ?> + <a href="<?php echo _url('stats', 'repartition', 'id', $this->feed->id()); ?>"><?php echo _i('stats'); ?> <?php echo _t('sub.feed.stats'); ?></a> </div> <p><?php echo $this->feed->description(); ?></p> @@ -12,27 +12,27 @@ <?php $nbEntries = $this->feed->nbEntries(); ?> <?php if ($this->feed->inError()) { ?> - <p class="alert alert-error"><span class="alert-head"><?php echo _t('damn'); ?></span> <?php echo _t('feed_in_error'); ?></p> + <p class="alert alert-error"><span class="alert-head"><?php echo _t('gen.short.damn'); ?></span> <?php echo _t('sub.feed.error'); ?></p> <?php } elseif ($nbEntries === 0) { ?> - <p class="alert alert-warn"><?php echo _t('feed_empty'); ?></p> + <p class="alert alert-warn"><?php echo _t('sub.feed.empty'); ?></p> <?php } ?> <form method="post" action="<?php echo _url('subscription', 'feed', 'id', $this->feed->id()); ?>" autocomplete="off"> - <legend><?php echo _t('informations'); ?></legend> + <legend><?php echo _t('sub.feed.informations'); ?></legend> <div class="form-group"> - <label class="group-name" for="name"><?php echo _t('title'); ?></label> + <label class="group-name" for="name"><?php echo _t('sub.feed.title'); ?></label> <div class="group-controls"> <input type="text" name="name" id="name" class="extend" value="<?php echo $this->feed->name() ; ?>" /> </div> </div> <div class="form-group"> - <label class="group-name" for="description"><?php echo _t('feed_description'); ?></label> + <label class="group-name" for="description"><?php echo _t('sub.feed.description'); ?></label> <div class="group-controls"> <textarea name="description" id="description"><?php echo htmlspecialchars($this->feed->description(), ENT_NOQUOTES, 'UTF-8'); ?></textarea> </div> </div> <div class="form-group"> - <label class="group-name" for="website"><?php echo _t('website_url'); ?></label> + <label class="group-name" for="website"><?php echo _t('sub.feed.website'); ?></label> <div class="group-controls"> <div class="stick"> <input type="text" name="website" id="website" class="extend" value="<?php echo $this->feed->website(); ?>" /> @@ -41,18 +41,18 @@ </div> </div> <div class="form-group"> - <label class="group-name" for="url"><?php echo _t('feed_url'); ?></label> + <label class="group-name" for="url"><?php echo _t('sub.feed.url'); ?></label> <div class="group-controls"> <div class="stick"> <input type="text" name="url" id="url" class="extend" value="<?php echo $this->feed->url(); ?>" /> <a class="btn" target="_blank" href="<?php echo $this->feed->url(); ?>"><?php echo _i('link'); ?></a> </div> - <a class="btn" target="_blank" href="http://validator.w3.org/feed/check.cgi?url=<?php echo $this->feed->url(); ?>"><?php echo _t('feed_validator'); ?></a> + <a class="btn" target="_blank" href="http://validator.w3.org/feed/check.cgi?url=<?php echo $this->feed->url(); ?>"><?php echo _t('sub.feed.validator'); ?></a> </div> </div> <div class="form-group"> - <label class="group-name" for="category"><?php echo _t('category'); ?></label> + <label class="group-name" for="category"><?php echo _t('sub.category'); ?></label> <div class="group-controls"> <select name="category" id="category"> <?php foreach ($this->categories as $cat) { ?> @@ -64,53 +64,53 @@ </div> </div> <div class="form-group"> - <label class="group-name" for="priority"><?php echo _t('show_in_all_flux'); ?></label> + <label class="group-name" for="priority"><?php echo _t('sub.feed.in_main_stream'); ?></label> <div class="group-controls"> <label class="checkbox" for="priority"> <input type="checkbox" name="priority" id="priority" value="10"<?php echo $this->feed->priority() > 0 ? ' checked="checked"' : ''; ?> /> - <?php echo _t('yes'); ?> + <?php echo _t('gen.short.yes'); ?> </label> </div> </div> <div class="form-group form-actions"> <div class="group-controls"> - <button class="btn btn-important"><?php echo _t('save'); ?></button> + <button class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button> <button class="btn btn-attention confirm" - data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>" + data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>" formaction="<?php echo _url('feed', 'delete', 'id', $this->feed->id()); ?>" - formmethod="post"><?php echo _t('delete'); ?></button> + formmethod="post"><?php echo _t('gen.action.remove'); ?></button> </div> </div> - <legend><?php echo _t('archiving_configuration'); ?></legend> + <legend><?php echo _t('sub.feed.archiving'); ?></legend> <div class="form-group"> <div class="group-controls"> <div class="stick"> - <input type="text" value="<?php echo _t('number_articles', $nbEntries); ?>" disabled="disabled" /> + <input type="text" value="<?php echo _t('sub.feed.number_entries', $nbEntries); ?>" disabled="disabled" /> <a class="btn" href="<?php echo _url('feed', 'actualize', 'id', $this->feed->id()); ?>"> - <?php echo _i('refresh'); ?> <?php echo _t('actualize'); ?> + <?php echo _i('refresh'); ?> <?php echo _t('gen.action.actualize'); ?> </a> </div> </div> </div> <div class="form-group"> - <label class="group-name" for="keep_history"><?php echo _t('keep_history'); ?></label> + <label class="group-name" for="keep_history"><?php echo _t('sub.feed.keep_history'); ?></label> <div class="group-controls"> <select class="number" name="keep_history" id="keep_history" required="required"><?php - foreach (array('' => '', -2 => _t('by_default'), 0 => '0', 10 => '10', 50 => '50', 100 => '100', 500 => '500', 1000 => '1 000', 5000 => '5 000', 10000 => '10 000', -1 => '∞') as $v => $t) { + foreach (array('' => '', -2 => _t('gen.short.by_default'), 0 => '0', 10 => '10', 50 => '50', 100 => '100', 500 => '500', 1000 => '1 000', 5000 => '5 000', 10000 => '10 000', -1 => '∞') as $v => $t) { echo '<option value="' . $v . ($this->feed->keepHistory() === $v ? '" selected="selected' : '') . '">' . $t . '</option>'; } ?></select> </div> </div> <div class="form-group"> - <label class="group-name" for="ttl"><?php echo _t('ttl'); ?></label> + <label class="group-name" for="ttl"><?php echo _t('sub.feed.ttl'); ?></label> <div class="group-controls"> <select class="number" name="ttl" id="ttl" required="required"><?php $found = false; - foreach (array(-2 => _t('by_default'), 900 => '15min', 1200 => '20min', 1500 => '25min', 1800 => '30min', 2700 => '45min', + foreach (array(-2 => _t('gen.short.by_default'), 900 => '15min', 1200 => '20min', 1500 => '25min', 1800 => '30min', 2700 => '45min', 3600 => '1h', 5400 => '1.5h', 7200 => '2h', 10800 => '3h', 14400 => '4h', 18800 => '5h', 21600 => '6h', 25200 => '7h', 28800 => '8h', 36000 => '10h', 43200 => '12h', 64800 => '18h', 86400 => '1d', 129600 => '1.5d', 172800 => '2d', 259200 => '3d', 345600 => '4d', 432000 => '5d', 518400 => '6d', @@ -128,21 +128,21 @@ </div> <div class="form-group form-actions"> <div class="group-controls"> - <button class="btn btn-important"><?php echo _t('save'); ?></button> - <button class="btn btn-attention confirm" formmethod="post" formaction="<?php echo _url('feed', 'truncate', 'id', $this->feed->id()); ?>"><?php echo _t('truncate'); ?></button> + <button class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button> + <button class="btn btn-attention confirm" formmethod="post" formaction="<?php echo _url('feed', 'truncate', 'id', $this->feed->id()); ?>"><?php echo _t('gen.action.truncate'); ?></button> </div> </div> - <legend><?php echo _t('login_configuration'); ?></legend> + <legend><?php echo _t('sub.feed.auth.configuration'); ?></legend> <?php $auth = $this->feed->httpAuth(false); ?> <div class="form-group"> - <label class="group-name" for="http_user"><?php echo _t('http_username'); ?></label> + <label class="group-name" for="http_user"><?php echo _t('sub.feed.auth.username'); ?></label> <div class="group-controls"> <input type="text" name="http_user" id="http_user" class="extend" value="<?php echo $auth['username']; ?>" autocomplete="off" /> - <?php echo _i('help'); ?> <?php echo _t('access_protected_feeds'); ?> + <?php echo _i('help'); ?> <?php echo _t('sub.feed.auth.help'); ?> </div> - <label class="group-name" for="http_pass"><?php echo _t('http_password'); ?></label> + <label class="group-name" for="http_pass"><?php echo _t('sub.feed.auth.password'); ?></label> <div class="group-controls"> <input type="password" name="http_pass" id="http_pass" class="extend" value="<?php echo $auth['password']; ?>" autocomplete="off" /> </div> @@ -150,24 +150,24 @@ <div class="form-group form-actions"> <div class="group-controls"> - <button type="submit" class="btn btn-important"><?php echo _t('save'); ?></button> - <button type="reset" class="btn"><?php echo _t('cancel'); ?></button> + <button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button> + <button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button> </div> </div> - <legend><?php echo _t('advanced'); ?></legend> + <legend><?php echo _t('sub.feed.advanced'); ?></legend> <div class="form-group"> - <label class="group-name" for="path_entries"><?php echo _t('css_path_on_website'); ?></label> + <label class="group-name" for="path_entries"><?php echo _t('sub.feed.css_path'); ?></label> <div class="group-controls"> - <input type="text" name="path_entries" id="path_entries" class="extend" value="<?php echo $this->feed->pathEntries(); ?>" placeholder="<?php echo _t('blank_to_disable'); ?>" /> - <?php echo _i('help'); ?> <?php echo _t('retrieve_truncated_feeds'); ?> + <input type="text" name="path_entries" id="path_entries" class="extend" value="<?php echo $this->feed->pathEntries(); ?>" placeholder="<?php echo _t('gen.short.blank_to_disable'); ?>" /> + <?php echo _i('help'); ?> <?php echo _t('sub.feed.css_help'); ?> </div> </div> <div class="form-group form-actions"> <div class="group-controls"> - <button type="submit" class="btn btn-important"><?php echo _t('save'); ?></button> - <button type="reset" class="btn"><?php echo _t('cancel'); ?></button> + <button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button> + <button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button> </div> </div> </form> diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index bfee4366c..22117792d 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -30,7 +30,7 @@ </div> </li> <li class="item"> - <span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?> (<?php echo _t('admin.stats.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_entries', $feed['nb_articles']); ?>)</span> </li> </ul> <?php } ?> diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index 2c56f79ed..b9e40988c 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -1,13 +1,13 @@ <?php $this->partial('aside_subscription'); ?> <div class="post drop-section"> - <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> - <h2><?php echo _t('subscription_management'); ?></h2> + <h2><?php echo _t('sub.title'); ?></h2> <form id="add_rss" method="post" action="<?php echo _url('feed', 'add'); ?>" autocomplete="off"> <div class="stick"> - <input type="url" name="url_rss" class="extend" placeholder="<?php echo _t('add_rss_feed'); ?>" /> + <input type="url" name="url_rss" class="extend" placeholder="<?php echo _t('sub.feed.add'); ?>" /> <div class="dropdown"> <div id="dropdown-cat" class="dropdown-target"></div> @@ -15,7 +15,7 @@ <ul class="dropdown-menu"> <li class="dropdown-close"><a href="#close">❌</a></li> - <li class="dropdown-header"><?php echo _t('category'); ?></li> + <li class="dropdown-header"><?php echo _t('sub.category'); ?></li> <li class="input"> <select name="category" id="category"> @@ -24,22 +24,22 @@ <?php echo $cat->name(); ?> </option> <?php } ?> - <option value="nc"><?php echo _t('new_category'); ?></option> + <option value="nc"><?php echo _t('sub.category.new'); ?></option> </select> </li> <li class="input" style="display:none"> - <input type="text" name="new_category[name]" id="new_category_name" autocomplete="off" placeholder="<?php echo _t('new_category'); ?>" /> + <input type="text" name="new_category[name]" id="new_category_name" autocomplete="off" placeholder="<?php echo _t('sub.category.new'); ?>" /> </li> <li class="separator"></li> - <li class="dropdown-header"><?php echo _t('http_authentication'); ?></li> + <li class="dropdown-header"><?php echo _t('sub.feed.auth.http'); ?></li> <li class="input"> - <input type="text" name="http_user" id="http_user_add" autocomplete="off" placeholder="<?php echo _t('username'); ?>" /> + <input type="text" name="http_user" id="http_user_add" autocomplete="off" placeholder="<?php echo _t('sub.feed.auth.username'); ?>" /> </li> <li class="input"> - <input type="password" name="http_pass" id="http_pass_add" autocomplete="off" placeholder="<?php echo _t('password'); ?>" /> + <input type="password" name="http_pass" id="http_pass_add" autocomplete="off" placeholder="<?php echo _t('sub.feed.auth.password'); ?>" /> </li> </ul> </div> @@ -48,16 +48,16 @@ </form> <p class="alert alert-warn"> - <?php echo _t('feeds_moved_category_deleted', $this->default_category->name()); ?> + <?php echo _t('sub.feed.moved_category_deleted', $this->default_category->name()); ?> </p> <div class="box"> - <div class="box-title"><label for="new-category"><?php echo _t('add_category'); ?></label></div> + <div class="box-title"><label for="new-category"><?php echo _t('sub.category.add'); ?></label></div> <ul class="box-content box-content-centered"> <form action="<?php echo _url('category', 'create'); ?>" method="post"> - <li class="item"><input type="text" id="new-category" name="new-category" placeholder="<?php echo _t('new_category'); ?>" /></li> - <li class="item"><button class="btn btn-important" type="submit"><?php echo _t('submit'); ?></button></li> + <li class="item"><input type="text" id="new-category" name="new-category" placeholder="<?php echo _t('sub.category.new'); ?>" /></li> + <li class="item"><button class="btn btn-important" type="submit"><?php echo _t('gen.action.submit'); ?></button></li> </form> </ul> </div> @@ -80,7 +80,7 @@ <ul class="dropdown-menu"> <li class="dropdown-close"><a href="#close">❌</a></li> - <li class="item"><a href="<?php echo _url('index', 'index', 'get', 'c_' . $cat->id()); ?>"><?php echo _t('filter'); ?></a></li> + <li class="item"><a href="<?php echo _url('index', 'index', 'get', 'c_' . $cat->id()); ?>"><?php echo _t('gen.action.filter'); ?></a></li> <?php $no_feed = empty($feeds); @@ -92,20 +92,20 @@ <?php } if (!$no_feed) { ?> <li class="item"> <button class="as-link confirm" - data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>" + data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>" type="submit" form="controller-category" formaction="<?php echo _url('category', 'empty', 'id', $cat->id()); ?>"> - <?php echo _t('ask_empty'); ?></button> + <?php echo _t('gen.action.empty'); ?></button> </li> <?php } if (!$is_default) { ?> <li class="item"> <button class="as-link confirm" - data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>" + data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>" type="submit" form="controller-category" formaction="<?php echo _url('category', 'delete', 'id', $cat->id()); ?>"> - <?php echo _t('delete'); ?></button> + <?php echo _t('gen.action.remove'); ?></button> </li> <?php } ?> </ul> @@ -130,7 +130,7 @@ <?php } } else { ?> - <li class="item disabled" dropzone="move"><?php echo _t('category_empty'); ?></li> + <li class="item disabled" dropzone="move"><?php echo _t('sub.category.empty'); ?></li> <?php } ?> </ul> </div> |
