summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-11 21:44:11 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-11 21:44:25 +0100
commita1faa826bf04326a073b918f0ff76ac90c9acd31 (patch)
tree48a82c71d1e683f0c10f85f6fdbda3896adcd703 /app/views
parenta84e9e50bfe17ab1c84ff22ec7accdfd0b9a76db (diff)
Fix french i18n for last views
Diffstat (limited to 'app/views')
-rw-r--r--app/views/error/index.phtml2
-rw-r--r--app/views/feed/add.phtml34
-rw-r--r--app/views/javascript/actualize.phtml4
-rw-r--r--app/views/update/apply.phtml4
-rw-r--r--app/views/update/checkInstall.phtml2
-rw-r--r--app/views/update/index.phtml14
-rw-r--r--app/views/user/manage.phtml26
-rw-r--r--app/views/user/profile.phtml22
8 files changed, 54 insertions, 54 deletions
diff --git a/app/views/error/index.phtml b/app/views/error/index.phtml
index 5e1949800..fe3abf8c4 100644
--- a/app/views/error/index.phtml
+++ b/app/views/error/index.phtml
@@ -3,7 +3,7 @@
<h1 class="alert-head"><?php echo $this->code; ?></h1>
<p>
<?php echo $this->errorMessage; ?><br />
- <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>
</p>
</div>
</div>
diff --git a/app/views/feed/add.phtml b/app/views/feed/add.phtml
index 1db053b52..4cdd3f390 100644
--- a/app/views/feed/add.phtml
+++ b/app/views/feed/add.phtml
@@ -1,16 +1,16 @@
<?php if ($this->feed) { ?>
<div class="post">
- <h1><?php echo _t('add_rss_feed'); ?></h1>
+ <h1><?php echo _t('sub.feed.add'); ?></h1>
<?php if (!$this->load_ok) { ?>
- <p class="alert alert-error"><span class="alert-head"><?php echo _t('damn'); ?></span> <?php echo _t('internal_problem_feed', _url('index', 'logs')); ?></p>
+ <p class="alert alert-error"><span class="alert-head"><?php echo _t('gen.short.damn'); ?></span> <?php echo _t('feedback.sub.feed.internal_problem', _url('index', 'logs')); ?></p>
<?php } ?>
<form method="post" action="<?php echo _url('feed', 'add'); ?>" autocomplete="off">
- <legend><?php echo _t('informations'); ?></legend>
+ <legend><?php echo _t('sub.feed.informations'); ?></legend>
<?php if ($this->load_ok) { ?>
<div class="form-group">
- <label class="group-name"><?php echo _t('title'); ?></label>
+ <label class="group-name"><?php echo _t('sub.feed.title'); ?></label>
<div class="group-controls">
<label><?php echo $this->feed->name() ; ?></label>
</div>
@@ -18,7 +18,7 @@
<?php $desc = $this->feed->description(); if ($desc != '') { ?>
<div class="form-group">
- <label class="group-name"><?php echo _t('feed_description'); ?></label>
+ <label class="group-name"><?php echo _t('sub.feed.description'); ?></label>
<div class="group-controls">
<label><?php echo htmlspecialchars($desc, ENT_NOQUOTES, 'UTF-8'); ?></label>
</div>
@@ -26,7 +26,7 @@
<?php } ?>
<div class="form-group">
- <label class="group-name"><?php echo _t('website_url'); ?></label>
+ <label class="group-name"><?php echo _t('sub.feed.website'); ?></label>
<div class="group-controls">
<?php echo $this->feed->website(); ?>
<a class="btn" target="_blank" href="<?php echo $this->feed->website(); ?>"><?php echo _i('link'); ?></a>
@@ -35,17 +35,17 @@
<?php } ?>
<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_rss" 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) { ?>
@@ -53,37 +53,37 @@
<?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>
<span 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'); ?>" />
</span>
</div>
</div>
- <legend><?php echo _t('http_authentication'); ?></legend>
+ <legend><?php echo _t('sub.feed.auth.http'); ?></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" />
</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>
<div class="group-controls">
- <?php echo _i('help'); ?> <?php echo _t('access_protected_feeds'); ?>
+ <?php echo _i('help'); ?> <?php echo _t('sub.feed.auth.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/javascript/actualize.phtml b/app/views/javascript/actualize.phtml
index 74cef4998..454228909 100644
--- a/app/views/javascript/actualize.phtml
+++ b/app/views/javascript/actualize.phtml
@@ -9,7 +9,7 @@ var feeds = [<?php foreach ($this->feeds as $feed) { ?>{<?php
function initProgressBar(init) {
if (init) {
$("body").after("\<div id=\"actualizeProgress\" class=\"notification good\">\
- <?php echo _t('refresh'); ?><br /><span class=\"title\">/</span><br />\
+ <?php echo _t('feedback.sub.actualize'); ?><br /><span class=\"title\">/</span><br />\
<span class=\"progress\">0 / " + feed_count + "</span>\
</div>");
} else {
@@ -23,7 +23,7 @@ function updateProgressBar(i, title_feed) {
function updateFeeds() {
if (feed_count === 0) {
- openNotification("<?php echo _t('no_feed_to_refresh'); ?>", "good");
+ openNotification("<?php echo _t('feedback.sub.feed.no_refresh'); ?>", "good");
ajax_loading = false;
return;
}
diff --git a/app/views/update/apply.phtml b/app/views/update/apply.phtml
index 30566c7ab..8221929ae 100644
--- a/app/views/update/apply.phtml
+++ b/app/views/update/apply.phtml
@@ -1,9 +1,9 @@
<?php $this->partial('aside_configure'); ?>
<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('update_system'); ?></h1>
+ <h1><?php echo _t('admin.update'); ?></h1>
<?php ask_info_update(); ?>
</div>
diff --git a/app/views/update/checkInstall.phtml b/app/views/update/checkInstall.phtml
index b36551340..a92860c7e 100644
--- a/app/views/update/checkInstall.phtml
+++ b/app/views/update/checkInstall.phtml
@@ -1,7 +1,7 @@
<?php $this->partial('aside_configure'); ?>
<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>
<h2><?php echo _t('admin.check_install.php'); ?></h2>
diff --git a/app/views/update/index.phtml b/app/views/update/index.phtml
index 401f6acd6..5c07d307e 100644
--- a/app/views/update/index.phtml
+++ b/app/views/update/index.phtml
@@ -1,12 +1,12 @@
<?php $this->partial('aside_configure'); ?>
<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('update_system'); ?></h1>
+ <h1><?php echo _t('admin.update'); ?></h1>
<p>
- <?php echo _i('help'); ?> <?php echo _t('update_last', $this->last_update_time); ?>
+ <?php echo _i('help'); ?> <?php echo _t('admin.update.last', $this->last_update_time); ?>
</p>
<?php if (!empty($this->message)) { ?>
@@ -16,8 +16,8 @@
</p>
<?php } elseif ($this->check_last_hour) { ?>
<p class="alert alert-warn">
- <span class="alert-head"><?php echo _t('damn'); ?></span>
- <?php echo _t('no_update'); ?>
+ <span class="alert-head"><?php echo _t('gen.short.damn'); ?></span>
+ <?php echo _t('admin.update.none'); ?>
</p>
<?php } ?>
@@ -26,11 +26,11 @@
(empty($this->message) || $this->message['status'] !== 'good')) {
?>
<p>
- <a href="<?php echo _url('update', 'check'); ?>" class="btn"><?php echo _t('update_check'); ?></a>
+ <a href="<?php echo _url('update', 'check'); ?>" class="btn"><?php echo _t('admin.update.check'); ?></a>
</p>
<?php } ?>
<?php if ($this->update_to_apply) { ?>
- <a class="btn btn-important" href="<?php echo _url('update', 'apply'); ?>"><?php echo _t('update_apply'); ?></a>
+ <a class="btn btn-important" href="<?php echo _url('update', 'apply'); ?>"><?php echo _t('admin.update.apply'); ?></a>
<?php } ?>
</div>
diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml
index e46e02572..b175d48df 100644
--- a/app/views/user/manage.phtml
+++ b/app/views/user/manage.phtml
@@ -1,13 +1,13 @@
<?php $this->partial('aside_configure'); ?>
<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>
<form method="post" action="<?php echo _url('user', 'create'); ?>">
- <legend><?php echo _t('create_user'); ?></legend>
+ <legend><?php echo _t('admin.user.create'); ?></legend>
<div class="form-group">
- <label class="group-name" for="new_user_language"><?php echo _t('language'); ?></label>
+ <label class="group-name" for="new_user_language"><?php echo _t('admin.user.language'); ?></label>
<div class="group-controls">
<select name="new_user_language" id="new_user_language">
<?php $languages = FreshRSS_Context::$conf->availableLanguages(); ?>
@@ -19,25 +19,25 @@
</div>
<div class="form-group">
- <label class="group-name" for="new_user_name"><?php echo _t('username'); ?></label>
+ <label class="group-name" for="new_user_name"><?php echo _t('admin.user.username'); ?></label>
<div class="group-controls">
<input id="new_user_name" name="new_user_name" type="text" size="16" required="required" maxlength="16" autocomplete="off" pattern="[0-9a-zA-Z]{1,16}" placeholder="demo" />
</div>
</div>
<div class="form-group">
- <label class="group-name" for="new_user_passwordPlain"><?php echo _t('password_form'); ?></label>
+ <label class="group-name" for="new_user_passwordPlain"><?php echo _t('admin.user.password_form'); ?></label>
<div class="group-controls">
<div class="stick">
<input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" autocomplete="off" pattern=".{7,}" />
<a class="btn toggle-password"><?php echo _i('key'); ?></a>
</div>
- <noscript><b><?php echo _t('javascript_should_be_activated'); ?></b></noscript>
+ <noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="new_user_email"><?php echo _t('persona_connection_email'); ?></label>
+ <label class="group-name" for="new_user_email"><?php echo _t('admin.user.email_persona'); ?></label>
<?php $mail = FreshRSS_Context::$conf->mail_login; ?>
<div class="group-controls">
<input type="email" id="new_user_email" name="new_user_email" class="extend" autocomplete="off" placeholder="alice@example.net" />
@@ -46,17 +46,17 @@
<div class="form-group form-actions">
<div class="group-controls">
- <button type="submit" class="btn btn-important"><?php echo _t('create'); ?></button>
- <button type="reset" class="btn"><?php echo _t('cancel'); ?></button>
+ <button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
+ <button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
</div>
</div>
</form>
<form method="post" action="<?php echo _url('user', 'delete'); ?>">
- <legend><?php echo _t('users'); ?></legend>
+ <legend><?php echo _t('admin.user.users'); ?></legend>
<div class="form-group">
- <label class="group-name" for="user-list"><?php echo _t('users_list'); ?></label>
+ <label class="group-name" for="user-list"><?php echo _t('admin.user.user_list'); ?></label>
<div class="group-controls">
<select id="user-list" class="select-change" name="username">
<?php foreach (listUsers() as $username) { ?>
@@ -64,7 +64,7 @@
<?php } ?>
</select>
- <p><?php echo _t('admin.users.articles_and_size',
+ <p><?php echo _t('admin.user.articles_and_size',
format_number($this->nb_articles),
format_bytes($this->size_user)); ?></p>
</div>
@@ -72,7 +72,7 @@
<div class="form-group form-actions">
<div class="group-controls">
- <button type="submit" class="btn btn-attention confirm"><?php echo _t('delete'); ?></button>
+ <button type="submit" class="btn btn-attention confirm"><?php echo _t('gen.action.remove'); ?></button>
</div>
</div>
</form>
diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml
index 60257012c..fc9b24674 100644
--- a/app/views/user/profile.phtml
+++ b/app/views/user/profile.phtml
@@ -1,36 +1,36 @@
<?php $this->partial('aside_configure'); ?>
<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>
<form method="post" action="<?php echo _url('user', 'profile'); ?>">
- <legend><?php echo _t('login_configuration'); ?></legend>
+ <legend><?php echo _t('conf.profile'); ?></legend>
<div class="form-group">
- <label class="group-name" for="current_user"><?php echo _t('current_user'); ?></label>
+ <label class="group-name" for="current_user"><?php echo _t('conf.user.current'); ?></label>
<div class="group-controls">
<input id="current_user" type="text" disabled="disabled" value="<?php echo Minz_Session::param('currentUser', '_'); ?>" />
<label class="checkbox" for="is_admin">
<input type="checkbox" id="is_admin" disabled="disabled" <?php echo FreshRSS_Auth::hasAccess('admin') ? 'checked="checked" ' : ''; ?>/>
- <?php echo _t('is_admin'); ?>
+ <?php echo _t('conf.user.is_admin'); ?>
</label>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="passwordPlain"><?php echo _t('password_form'); ?></label>
+ <label class="group-name" for="passwordPlain"><?php echo _t('conf.profile.password_form'); ?></label>
<div class="group-controls">
<div class="stick">
<input type="password" id="passwordPlain" name="passwordPlain" autocomplete="off" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/>
<a class="btn toggle-password"><?php echo _i('key'); ?></a>
</div>
- <noscript><b><?php echo _t('javascript_should_be_activated'); ?></b></noscript>
+ <noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
</div>
</div>
<?php if (Minz_Configuration::apiEnabled()) { ?>
<div class="form-group">
- <label class="group-name" for="apiPasswordPlain"><?php echo _t('password_api'); ?></label>
+ <label class="group-name" for="apiPasswordPlain"><?php echo _t('conf.profile.password_api'); ?></label>
<div class="group-controls">
<div class="stick">
<input type="password" id="apiPasswordPlain" name="apiPasswordPlain" autocomplete="off" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/>
@@ -41,18 +41,18 @@
<?php } ?>
<div class="form-group">
- <label class="group-name" for="mail_login"><?php echo _t('persona_connection_email'); ?></label>
+ <label class="group-name" for="mail_login"><?php echo _t('conf.profile.email_persona'); ?></label>
<?php $mail = FreshRSS_Context::$conf->mail_login; ?>
<div class="group-controls">
<input type="email" id="mail_login" name="mail_login" class="extend" autocomplete="off" value="<?php echo $mail; ?>" <?php echo FreshRSS_Auth::hasAccess('admin') ? '' : 'disabled="disabled"'; ?> placeholder="alice@example.net" />
- <noscript><b><?php echo _t('javascript_should_be_activated'); ?></b></noscript>
+ <noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
</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>