aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-11 21:15:01 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-11 21:15:01 +0100
commita84e9e50bfe17ab1c84ff22ec7accdfd0b9a76db (patch)
treedc8661ab8f4d933c5d0637b72791a286f2374ef9 /app/views/auth
parent59fc73baa9cbd87fdc2d63e83533a36533c740bf (diff)
Fix french i18n for auth and configure views
Diffstat (limited to 'app/views/auth')
-rw-r--r--app/views/auth/formLogin.phtml14
-rw-r--r--app/views/auth/index.phtml32
-rw-r--r--app/views/auth/personaLogin.phtml8
-rw-r--r--app/views/auth/reset.phtml14
4 files changed, 34 insertions, 34 deletions
diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml
index 0194a11a5..979e17349 100644
--- a/app/views/auth/formLogin.phtml
+++ b/app/views/auth/formLogin.phtml
@@ -1,28 +1,28 @@
<div class="prompt">
- <h1><?php echo _t('login'); ?></h1>
+ <h1><?php echo _t('gen.auth.login'); ?></h1>
<form id="crypto-form" method="post" action="<?php echo _url('auth', 'login'); ?>">
<div>
- <label for="username"><?php echo _t('username'); ?></label>
+ <label for="username"><?php echo _t('gen.auth.username'); ?></label>
<input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
</div>
<div>
- <label for="passwordPlain"><?php echo _t('password'); ?></label>
+ <label for="passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
<input type="password" id="passwordPlain" required="required" />
<input type="hidden" id="challenge" name="challenge" /><br />
- <noscript><strong><?php echo _t('javascript_should_be_activated'); ?></strong></noscript>
+ <noscript><strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
</div>
<div>
<label class="checkbox" for="keep_logged_in">
<input type="checkbox" name="keep_logged_in" id="keep_logged_in" value="1" />
- <?php echo _t('keep_logged_in'); ?>
+ <?php echo _t('gen.auth.keep_logged_in'); ?>
</label>
<br />
</div>
<div>
- <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('login'); ?></button>
+ <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('gen.auth.login'); ?></button>
</div>
</form>
- <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('about_freshrss'); ?></a></p>
+ <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
</div>
diff --git a/app/views/auth/index.phtml b/app/views/auth/index.phtml
index 17a81f08b..420937042 100644
--- a/app/views/auth/index.phtml
+++ b/app/views/auth/index.phtml
@@ -1,22 +1,22 @@
<?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('auth', 'index'); ?>">
- <legend><?php echo _t('auth_type'); ?></legend>
+ <legend><?php echo _t('admin.auth.type'); ?></legend>
<div class="form-group">
- <label class="group-name" for="auth_type"><?php echo _t('auth_type'); ?></label>
+ <label class="group-name" for="auth_type"><?php echo _t('admin.auth.type'); ?></label>
<div class="group-controls">
<select id="auth_type" name="auth_type" required="required">
<?php if (!in_array(Minz_Configuration::authType(), array('form', 'persona', 'http_auth', 'none'))) { ?>
<option selected="selected"></option>
<?php } ?>
- <option value="form"<?php echo Minz_Configuration::authType() === 'form' ? ' selected="selected"' : '', cryptAvailable() ? '' : ' disabled="disabled"'; ?>><?php echo _t('auth_form'); ?></option>
- <option value="persona"<?php echo Minz_Configuration::authType() === 'persona' ? ' selected="selected"' : '', FreshRSS_Context::$conf->mail_login == '' ? ' disabled="disabled"' : ''; ?>><?php echo _t('auth_persona'); ?></option>
- <option value="http_auth"<?php echo Minz_Configuration::authType() === 'http_auth' ? ' selected="selected"' : '', httpAuthUser() == '' ? ' disabled="disabled"' : ''; ?>><?php echo _t('http_auth'); ?> (REMOTE_USER = '<?php echo httpAuthUser(); ?>')</option>
- <option value="none"<?php echo Minz_Configuration::authType() === 'none' ? ' selected="selected"' : ''; ?>><?php echo _t('auth_none'); ?></option>
+ <option value="form"<?php echo Minz_Configuration::authType() === 'form' ? ' selected="selected"' : '', cryptAvailable() ? '' : ' disabled="disabled"'; ?>><?php echo _t('admin.auth.form'); ?></option>
+ <option value="persona"<?php echo Minz_Configuration::authType() === 'persona' ? ' selected="selected"' : '', FreshRSS_Context::$conf->mail_login == '' ? ' disabled="disabled"' : ''; ?>><?php echo _t('admin.auth.persona'); ?></option>
+ <option value="http_auth"<?php echo Minz_Configuration::authType() === 'http_auth' ? ' selected="selected"' : '', httpAuthUser() == '' ? ' disabled="disabled"' : ''; ?>><?php echo _t('admin.auth.http'); ?> (REMOTE_USER = '<?php echo httpAuthUser(); ?>')</option>
+ <option value="none"<?php echo Minz_Configuration::authType() === 'none' ? ' selected="selected"' : ''; ?>><?php echo _t('admin.auth.none'); ?></option>
</select>
</div>
</div>
@@ -26,7 +26,7 @@
<label class="checkbox" for="anon_access">
<input type="checkbox" name="anon_access" id="anon_access" value="1"<?php echo Minz_Configuration::allowAnonymous() ? ' checked="checked"' : '',
Minz_Configuration::canLogIn() ? '' : ' disabled="disabled"'; ?> />
- <?php echo _t('allow_anonymous', Minz_Configuration::defaultUser()); ?>
+ <?php echo _t('admin.auth.allow_anonymous', Minz_Configuration::defaultUser()); ?>
</label>
</div>
</div>
@@ -36,7 +36,7 @@
<label class="checkbox" for="anon_refresh">
<input type="checkbox" name="anon_refresh" id="anon_refresh" value="1"<?php echo Minz_Configuration::allowAnonymousRefresh() ? ' checked="checked"' : '',
Minz_Configuration::canLogIn() ? '' : ' disabled="disabled"'; ?> />
- <?php echo _t('allow_anonymous_refresh'); ?>
+ <?php echo _t('admin.auth.allow_anonymous_refresh'); ?>
</label>
</div>
</div>
@@ -46,7 +46,7 @@
<label class="checkbox" for="unsafe_autologin">
<input type="checkbox" name="unsafe_autologin" id="unsafe_autologin" value="1"<?php echo Minz_Configuration::unsafeAutologinEnabled() ? ' checked="checked"' : '',
Minz_Configuration::canLogIn() ? '' : ' disabled="disabled"'; ?> />
- <?php echo _t('unsafe_autologin'); ?>
+ <?php echo _t('admin.auth.unsafe_autologin'); ?>
<kbd>p/i/?a=formLogin&amp;u=Alice&amp;p=1234</kbd>
</label>
</div>
@@ -54,12 +54,12 @@
<?php if (Minz_Configuration::canLogIn()) { ?>
<div class="form-group">
- <label class="group-name" for="token"><?php echo _t('auth_token'); ?></label>
+ <label class="group-name" for="token"><?php echo _t('admin.auth.token'); ?></label>
<?php $token = FreshRSS_Context::$conf->token; ?>
<div class="group-controls">
- <input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo _t('blank_to_disable'); ?>"<?php
+ <input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo _t('gen.short.blank_to_disable'); ?>"<?php
echo Minz_Configuration::canLogIn() ? '' : ' disabled="disabled"'; ?> />
- <?php echo _i('help'); ?> <?php echo _t('explain_token', Minz_Url::display(null, 'html', true), $token); ?>
+ <?php echo _i('help'); ?> <?php echo _t('admin.auth.token_help', Minz_Url::display(null, 'html', true), $token); ?>
</div>
</div>
<?php } ?>
@@ -69,15 +69,15 @@
<label class="checkbox" for="api_enabled">
<input type="checkbox" name="api_enabled" id="api_enabled" value="1"<?php echo Minz_Configuration::apiEnabled() ? ' checked="checked"' : '',
Minz_Configuration::needsLogin() ? '' : ' disabled="disabled"'; ?> />
- <?php echo _t('api_enabled'); ?>
+ <?php echo _t('admin.auth.api_enabled'); ?>
</label>
</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/auth/personaLogin.phtml b/app/views/auth/personaLogin.phtml
index dd3e22b52..545ed2eac 100644
--- a/app/views/auth/personaLogin.phtml
+++ b/app/views/auth/personaLogin.phtml
@@ -1,21 +1,21 @@
<?php if ($this->res === false) { ?>
<div class="prompt">
- <h1><?php echo _t('login'); ?></h1>
+ <h1><?php echo _t('gen.auth.login'); ?></h1>
<p>
<a class="signin btn btn-important" href="<?php echo _url('auth', 'login'); ?>">
- <?php echo _i('login'); ?> <?php echo _t('login_with_persona'); ?>
+ <?php echo _i('login'); ?> <?php echo _t('gen.auth.login_persona'); ?>
</a>
<br /><br />
<?php echo _i('help'); ?>
<small>
- <a href="<?php echo _url('auth', 'reset'); ?>"><?php echo _t('login_persona_problem'); ?></a>
+ <a href="<?php echo _url('auth', 'reset'); ?>"><?php echo _t('gen.auth.login_persona_problem'); ?></a>
</small>
</p>
- <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('about_freshrss'); ?></a></p>
+ <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
</div>
<?php
} else {
diff --git a/app/views/auth/reset.phtml b/app/views/auth/reset.phtml
index e501555c4..6e9816ad3 100644
--- a/app/views/auth/reset.phtml
+++ b/app/views/auth/reset.phtml
@@ -1,5 +1,5 @@
<div class="prompt">
- <h1><?php echo _t('auth_reset'); ?></h1>
+ <h1><?php echo _t('gen.auth.reset'); ?></h1>
<?php if (!empty($this->message)) { ?>
<p class="alert <?php echo $this->message['status'] === 'bad' ? 'alert-error' : 'alert-warn'; ?>">
@@ -11,22 +11,22 @@
<?php if (!$this->no_form) { ?>
<form id="crypto-form" method="post" action="<?php echo _url('auth', 'reset'); ?>">
<p class="alert alert-warn">
- <span class="alert-head"><?php echo _t('attention'); ?></span><br />
- <?php echo _t('auth_will_reset'); ?>
+ <span class="alert-head"><?php echo _t('gen.short.attention'); ?></span><br />
+ <?php echo _t('gen.auth.will_reset'); ?>
</p>
<div>
- <label for="username"><?php echo _t('username_admin'); ?></label>
+ <label for="username"><?php echo _t('gen.auth.username_admin'); ?></label>
<input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
</div>
<div>
- <label for="passwordPlain"><?php echo _t('password'); ?></label>
+ <label for="passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
<input type="password" id="passwordPlain" required="required" />
<input type="hidden" id="challenge" name="challenge" /><br />
- <noscript><strong><?php echo _t('javascript_should_be_activated'); ?></strong></noscript>
+ <noscript><strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
</div>
<div>
- <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('submit'); ?></button>
+ <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
</div>
</form>
<?php } ?>