A free, self-hostable news aggregator…
Fix i18n for logs, pagination and javascript vars
Marien Fressinaud8a40a7265759
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.phpindex 1cf618f7f..eff47ed58 100755--- a/app/Controllers/indexController.php+++ b/app/Controllers/indexController.php@@ -217,7 +217,7 @@ class FreshRSS_index_Controller extends Minz_ActionController {Minz_Error::error(403);}- Minz_View::prependTitle(_t('logs') . ' · ');+ Minz_View::prependTitle(_t('index.logs.title') . ' · ');if (Minz_Request::isPost()) {FreshRSS_LogDAO::truncate();diff --git a/app/i18n/en/gen.php b/app/i18n/en/gen.phpindex eadc80360..28659cccb 100644--- a/app/i18n/en/gen.php+++ b/app/i18n/en/gen.php@@ -2,6 +2,7 @@return array('action' => array(+ 'back_to_rss_feeds' => '← Go back to your RSS feeds','disable' => 'Disable','enable' => 'Enable','manage' => 'Manage',@@ -11,6 +12,13 @@ return array('login' => 'Login','logout' => 'Logout',),+ 'js' => array(+ 'category_empty' => 'Empty category',+ 'confirm_action' => 'Are you sure you want to perform this action? It cannot be cancelled!',+ 'confirm_action_feed_cat' => 'Are you sure you want to perform this action? You will lose related favorites and user queries. It cannot be cancelled!',+ 'notif_body_new_articles' => 'There are \\d new articles to read on FreshRSS.',+ 'notif_title_new_articles' => 'FreshRSS: new articles!',+ ),'menu' => array('about' => 'About','admin' => 'Administration',@@ -29,6 +37,12 @@ return array('user_management' => 'Manage users','user_profile' => 'Profile',),+ 'pagination' => array(+ 'first' => 'First',+ 'last' => 'Last',+ 'next' => 'Next',+ 'previous' => 'Previous',+ ),'title' => array('_' => 'Title','authentication' => 'Authentication',@@ -96,7 +110,6 @@ return array('auto_remove_article' => 'Hide articles after reading','auto_share' => 'Share','auto_share_help' => 'If there is only one sharing mode, it is used. Else modes are accessible by their number.',- 'back_to_rss_feeds' => '← Go back to your RSS feeds','bad_opml_file' => 'Your OPML file is invalid','base_url' => 'Base URL','bdd' => 'Database',@@ -125,7 +138,6 @@ return array('category_created' => 'Category %s has been created.','category_deleted' => 'Category has been deleted.','category_emptied' => 'Category has been emptied',- 'category_empty' => 'Empty category','category_name_exists' => 'Category name already exists.','category_no_id' => 'You must precise the id of the category.','category_no_name' => 'Category name cannot be empty.',@@ -136,11 +148,8 @@ return array('change_value' => 'You should change this value by any other','checks' => 'Checks','choose_language' => 'Choose a language for FreshRSS',- 'clear_logs' => 'Clear the logs','collapse_article' => 'Collapse','configuration_updated' => 'Configuration has been updated',- 'confirm_action' => 'Are you sure you want to perform this action? It cannot be cancelled!',- 'confirm_action_feed_cat' => 'Are you sure you want to perform this action? You will lose related favorites and user queries. It cannot be cancelled!','congratulations' => 'Congratulations!','content_width' => 'Content width','create' => 'Create',@@ -204,7 +213,6 @@ return array('file_to_import' => 'File to import<br />(OPML, Json or Zip)','file_to_import_no_zip' => 'File to import<br />(OPML or Json)','finish_installation' => 'Complete installation',- 'first' => 'First','first_article' => 'Skip to the first article','fix_errors_before' => 'Fix errors before skip to the next step.','focus_search' => 'Access search box',@@ -252,7 +260,6 @@ return array('keep_logged_in' => 'Keep me logged in <small>(1 month)</small>','language' => 'Language','language_defined' => 'Language has been defined.',- 'last' => 'Last','last_3_month' => 'Last three months','last_6_month' => 'Last six months','last_article' => 'Skip to the last article',@@ -267,7 +274,6 @@ return array('login_persona_problem' => 'Connection problem with Persona?','login_required' => 'Login required:','login_with_persona' => 'Login with Persona',- 'logs_empty' => 'Log file is empty','mar' => 'mar','march' => 'Mar','mark_cat_read' => 'Mark category as read',@@ -283,7 +289,6 @@ return array('n_feeds_actualized' => '%d feeds have been updated','new_article' => 'There are new available articles, click to refresh the page.','new_category' => 'New category',- 'next' => 'Next','next_article' => 'Skip to the next article','next_page' => 'Skip to the next page','next_step' => 'Go to the next step',@@ -301,8 +306,6 @@ return array('not_reads' => '%d unread','not_yet_implemented' => 'Not yet implemented','nothing_to_load' => 'There are no more articles',- 'notif_body_new_articles' => 'There are \\d new articles to read on FreshRSS.',- 'notif_title_new_articles' => 'FreshRSS: new articles!','nov' => 'nov','november' => 'Nov','number_articles' => '%d articles',@@ -329,7 +332,6 @@ return array('php_is_nok' => 'Your PHP version is %s but FreshRSS requires at least version %s','php_is_ok' => 'Your PHP version is %s, which is compatible with FreshRSS','prefix' => 'Table prefix',- 'previous' => 'Previous','previous_article' => 'Skip to the previous article','previous_page' => 'Skip to the previous page','print' => 'Print',diff --git a/app/i18n/en/index.php b/app/i18n/en/index.phpindex 5e05657d1..97df646c4 100644--- a/app/i18n/en/index.php+++ b/app/i18n/en/index.php@@ -1,6 +1,12 @@<?phpreturn array(+ 'logs' => array(+ '_' => 'Logs',+ 'clear' => 'Clear the logs',+ 'empty' => 'Log file is empty',+ 'title' => 'Logs',+ ),'menu' => array('about' => 'About FreshRSS','actualize' => 'Actualize',diff --git a/app/i18n/fr/gen.php b/app/i18n/fr/gen.phpindex d22e51f2d..3d3878eb1 100644--- a/app/i18n/fr/gen.php+++ b/app/i18n/fr/gen.php@@ -2,6 +2,7 @@return array('action' => array(+ 'back_to_rss_feeds' => '← Retour à vos flux RSS','disable' => 'Désactiver','enable' => 'Activer','manage' => 'Gérer',@@ -11,6 +12,13 @@ return array('login' => 'Connexion','logout' => 'Déconnexion',),+ 'js' => array(+ 'category_empty' => 'Catégorie vide',+ 'confirm_action' => 'Êtes-vous sûr(e) de vouloir continuer ? Cette action ne peut être annulée !',+ 'confirm_action_feed_cat' => 'Êtes-vous sûr(e) de vouloir continuer ? Vous perdrez les favoris et les filtres associés. Cette action ne peut être annulée !',+ 'notif_body_new_articles' => 'Il y a \\d nouveaux articles à lire sur FreshRSS.',+ 'notif_title_new_articles' => 'FreshRSS : nouveaux articles !',+ ),'menu' => array('about' => 'À propos','admin' => 'Administration',@@ -29,6 +37,12 @@ return array('user_management' => 'Gestion des utilisateurs','user_profile' => 'Profil',),+ 'pagination' => array(+ 'first' => 'Début',+ 'last' => 'Fin',+ 'next' => 'Suivant',+ 'previous' => 'Précédent',+ ),'title' => array('_' => 'Titre','authentication' => 'Authentification',@@ -96,7 +110,6 @@ return array('auto_remove_article' => 'Cacher les articles après lecture','auto_share' => 'Partager','auto_share_help' => 'S’il n’y a qu’un mode de partage, celui-ci est utilisé automatiquement. Sinon ils sont accessibles par leur numéro.',- 'back_to_rss_feeds' => '← Retour à vos flux RSS','bad_opml_file' => 'Votre fichier OPML n’est pas valide.','base_url' => 'Base de l’URL','bdd' => 'Base de données',@@ -125,7 +138,6 @@ return array('category_created' => 'La catégorie %s a été créée.','category_deleted' => 'La catégorie a été supprimée.','category_emptied' => 'La catégorie a été vidée.',- 'category_empty' => 'Catégorie vide','category_name_exists' => 'Une catégorie possède déjà ce nom.','category_no_id' => 'Vous devez préciser l’id de la catégorie.','category_no_name' => 'Vous devez préciser un nom pour la catégorie.',@@ -136,11 +148,8 @@ return array('change_value' => 'Vous devriez changer cette valeur par n’importe quelle autre','checks' => 'Vérifications','choose_language' => 'Choisissez la langue pour FreshRSS',- 'clear_logs' => 'Effacer les logs','collapse_article' => 'Refermer','configuration_updated' => 'La configuration a été mise à jour.',- 'confirm_action' => 'Êtes-vous sûr(e) de vouloir continuer ? Cette action ne peut être annulée !',- 'confirm_action_feed_cat' => 'Êtes-vous sûr(e) de vouloir continuer ? Vous perdrez les favoris et les filtres associés. Cette action ne peut être annulée !','congratulations' => 'Félicitations !','content_width' => 'Largeur du contenu','create' => 'Créer',@@ -204,7 +213,6 @@ return array('file_to_import' => 'Fichier à importer<br />(OPML, Json ou Zip)','file_to_import_no_zip' => 'Fichier à importer<br />(OPML ou Json)','finish_installation' => 'Terminer l’installation',- 'first' => 'Début','first_article' => 'Passer au premier article','fix_errors_before' => 'Veuillez corriger les erreurs avant de passer à l’étape suivante.','focus_search' => 'Accéder à la recherche',@@ -252,7 +260,6 @@ return array('keep_logged_in' => 'Rester connecté <small>(1 mois)</small>','language' => 'Langue','language_defined' => 'La langue a bien été définie.',- 'last' => 'Fin','last_3_month' => 'Depuis les trois derniers mois','last_6_month' => 'Depuis les six derniers mois','last_article' => 'Passer au dernier article',@@ -267,7 +274,6 @@ return array('login_persona_problem' => 'Problème de connexion à Persona ?','login_required' => 'Accès protégé par mot de passe :','login_with_persona' => 'Connexion avec Persona',- 'logs_empty' => 'Les logs sont vides.','mar' => 'mar.','march' => 'mars','mark_cat_read' => 'Marquer la catégorie comme lue',@@ -283,7 +289,6 @@ return array('n_feeds_actualized' => '%d flux ont été mis à jour.','new_article' => 'Il y a de nouveaux articles disponibles, cliquez pour rafraîchir la page.','new_category' => 'Nouvelle catégorie',- 'next' => 'Suivant','next_article' => 'Passer à l’article suivant','next_page' => 'Passer à la page suivante','next_step' => 'Passer à l’étape suivante',@@ -301,8 +306,6 @@ return array('not_reads' => '%d non lus','not_yet_implemented' => 'Pas encore implémenté','nothing_to_load' => 'Fin des articles',- 'notif_body_new_articles' => 'Il y a \\d nouveaux articles à lire sur FreshRSS.',- 'notif_title_new_articles' => 'FreshRSS : nouveaux articles !','nov' => 'nov.','november' => 'novembre','number_articles' => '%d articles',@@ -329,7 +332,6 @@ return array('php_is_nok' => 'Votre version de PHP est la %s mais FreshRSS requiert au moins la version %s','php_is_ok' => 'Votre version de PHP est la %s, qui est compatible avec FreshRSS','prefix' => 'Préfixe des tables',- 'previous' => 'Précédent','previous_article' => 'Passer à l’article précédent','previous_page' => 'Passer à la page précédente','print' => 'Imprimer',diff --git a/app/i18n/fr/index.php b/app/i18n/fr/index.phpindex 3fea1b879..4b8c85033 100644--- a/app/i18n/fr/index.php+++ b/app/i18n/fr/index.php@@ -1,6 +1,12 @@<?phpreturn array(+ 'logs' => array(+ '_' => 'Logs',+ 'clear' => 'Effacer les logs',+ 'empty' => 'Les logs sont vides.',+ 'title' => 'Logs',+ ),'menu' => array('about' => 'À propos de FreshRSS','actualize' => 'Actualiser',diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtmlindex 0961ac3fe..6577e0109 100644--- a/app/views/helpers/javascript_vars.phtml+++ b/app/views/helpers/javascript_vars.phtml@@ -59,10 +59,10 @@ echo 'url={',"},\n";echo 'i18n={',- 'confirmation_default:"', _t('confirm_action'), '",',- 'notif_title_articles:"', _t('notif_title_new_articles'), '",',- 'notif_body_articles:"', _t('notif_body_new_articles'), '",',- 'category_empty:"', _t('category_empty'), '"',+ 'confirmation_default:"', _t('gen.js.confirm_action'), '",',+ 'notif_title_articles:"', _t('gen.js.notif_title_new_articles'), '",',+ 'notif_body_articles:"', _t('gen.js.notif_body_new_articles'), '",',+ 'category_empty:"', _t('gen.js.category_empty'), '"',"},\n";echo 'icons={',diff --git a/app/views/helpers/logs_pagination.phtml b/app/views/helpers/logs_pagination.phtmlindex ad46279c7..58b3c68f4 100755--- a/app/views/helpers/logs_pagination.phtml+++ b/app/views/helpers/logs_pagination.phtml@@ -9,14 +9,14 @@<?php $params[$getteur] = 1; ?><li class="item pager-first"><?php if ($this->currentPage > 1) { ?>- <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>">« <?php echo _t('first'); ?></a>+ <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>">« <?php echo _t('gen.pagination.first'); ?></a><?php } ?></li><?php $params[$getteur] = $this->currentPage - 1; ?><li class="item pager-previous"><?php if ($this->currentPage > 1) { ?>- <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>">‹ <?php echo _t('previous'); ?></a>+ <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>">‹ <?php echo _t('gen.pagination.previous'); ?></a><?php } ?></li>@@ -34,13 +34,13 @@<?php $params[$getteur] = $this->currentPage + 1; ?><li class="item pager-next"><?php if ($this->currentPage < $this->nbPage) { ?>- <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo _t('next'); ?> ›</a>+ <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo _t('gen.pagination.next'); ?> ›</a><?php } ?></li><?php $params[$getteur] = $this->nbPage; ?><li class="item pager-last"><?php if ($this->currentPage < $this->nbPage) { ?>- <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo _t('last'); ?> »</a>+ <a href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo _t('gen.pagination.last'); ?> »</a><?php } ?></li></ul>diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtmlindex 101692daf..0262325f5 100644--- a/app/views/index/logs.phtml+++ b/app/views/index/logs.phtml@@ -1,10 +1,10 @@<div class="post content">- <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('logs'); ?></h1>+ <h1><?php echo _t('index.logs'); ?></h1><form method="post" action="<?php echo _url('index', 'logs'); ?>"><p><input type="hidden" name="clearLogs" />- <button type="submit" class="btn"><?php echo _t('clear_logs'); ?></button>+ <button type="submit" class="btn"><?php echo _t('index.logs.clear'); ?></button></p></form><?php $items = $this->logsPaginator->items(); ?>@@ -20,6 +20,6 @@<?php $this->logsPaginator->render('logs_pagination.phtml','page'); ?></div><?php } else { ?>- <p class="alert alert-warn"><?php echo _t('logs_empty'); ?></p>+ <p class="alert alert-warn"><?php echo _t('index.logs.empty'); ?></p><?php } ?></div>