A free, self-hostable news aggregator…
Fix strings and url on auth configuration page
Marien Fressinaud67aa7e76c186
diff --git a/app/i18n/en/admin.php b/app/i18n/en/admin.phpindex 26af23225..083cabfed 100644--- a/app/i18n/en/admin.php+++ b/app/i18n/en/admin.php@@ -12,7 +12,7 @@ return array('title' => 'Authentication','title_reset' => 'Authentication reset','token' => 'Authentication token',- 'token_help' => 'Allows to access RSS output of the default user without authentication.<br /><kbd>%s?output=rss&token=%s</kbd>',+ 'token_help' => 'Allows to access RSS output of the default user without authentication:','type' => 'Authentication method','unsafe_autologin' => 'Allow unsafe automatic login using the format: ',),diff --git a/app/i18n/fr/admin.php b/app/i18n/fr/admin.phpindex a0d173b0c..1d327a33c 100644--- a/app/i18n/fr/admin.php+++ b/app/i18n/fr/admin.php@@ -12,7 +12,7 @@ return array('title' => 'Authentification','title_reset' => 'Réinitialisation de l’authentification','token' => 'Jeton d’identification',- 'token_help' => 'Permet d’accéder à la sortie RSS de l’utilisateur par défaut sans besoin de s’authentifier.<br /><kbd>%s?output=rss&token=%s</kbd>',+ 'token_help' => 'Permet d’accéder à la sortie RSS de l’utilisateur par défaut sans besoin de s’authentifier :','type' => 'Méthode d’authentification','unsafe_autologin' => 'Autoriser les connexions automatiques non-sûres au format : ',),diff --git a/app/views/auth/index.phtml b/app/views/auth/index.phtmlindex 420937042..ee1e2d8b9 100644--- a/app/views/auth/index.phtml+++ b/app/views/auth/index.phtml@@ -47,7 +47,7 @@<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('admin.auth.unsafe_autologin'); ?>- <kbd>p/i/?a=formLogin&u=Alice&p=1234</kbd>+ <kbd><?php echo Minz_Url::display(array('c' => 'auth', 'a' => 'login', 'params' => array('u' => 'alice', 'p' => '1234')), 'html', true); ?></kbd></label></div></div>@@ -59,7 +59,8 @@<div class="group-controls"><input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo _t('gen.short.blank_to_disable'); ?>"<?phpecho Minz_Configuration::canLogIn() ? '' : ' disabled="disabled"'; ?> />- <?php echo _i('help'); ?> <?php echo _t('admin.auth.token_help', Minz_Url::display(null, 'html', true), $token); ?>+ <?php echo _i('help'); ?> <?php echo _t('admin.auth.token_help'); ?>+ <kbd><?php echo Minz_Url::display(array('params' => array('output' => 'rss', 'token' => $token)), 'html', true); ?></kbd></div></div><?php } ?>