Преглед изворни кода

Fix i18n (french and english)

Marien Fressinaud пре 11 година
родитељ
комит
61a2f9387f
3 измењених фајлова са 112 додато и 8 уклоњено
  1. 53 4
      app/i18n/en.php
  2. 53 4
      app/i18n/fr.php
  3. 6 0
      lib/lib_rss.php

+ 53 - 4
app/i18n/en.php

@@ -9,6 +9,53 @@
   'add_category' => 'Add a category',
   'add_query' => 'Add a query',
   'add_rss_feed' => 'Add a RSS feed',
+  'admin.check_install.cache.nok' => 'Check permissions on <em>./data/cache</em> directory. HTTP server must have rights to write into',
+  'admin.check_install.cache.ok' => 'Permissions on cache directory are good.',
+  'admin.check_install.categories.nok' => 'Category table is bad configured.',
+  'admin.check_install.categories.ok' => 'Category table is ok.',
+  'admin.check_install.connection.nok' => 'Connection to the database cannot being established.',
+  'admin.check_install.connection.ok' => 'Connection to the database is ok.',
+  'admin.check_install.ctype.nok' => 'You lack a required library for character type checking (php-ctype).',
+  'admin.check_install.ctype.ok' => 'You have the required library for character type checking (ctype).',
+  'admin.check_install.curl.nok' => 'You lack cURL (php5-curl package).',
+  'admin.check_install.curl.ok' => 'You have version %s of cURL.',
+  'admin.check_install.data.nok' => 'Check permissions on <em>./data</em> directory. HTTP server must have rights to write into',
+  'admin.check_install.data.ok' => 'Permissions on data directory are good.',
+  'admin.check_install.database' => 'Database installation',
+  'admin.check_install.dom.nok' => 'You lack a required library to browse the DOM (php-xml package).',
+  'admin.check_install.dom.ok' => 'You have the required library to browse the DOM.',
+  'admin.check_install.entries.nok' => 'Entry table is bad configured.',
+  'admin.check_install.entries.ok' => 'Entry table is ok.',
+  'admin.check_install.favicons.nok' => 'Check permissions on <em>./data/favicons</em> directory. HTTP server must have rights to write into',
+  'admin.check_install.favicons.ok' => 'Permissions on favicons directory are good.',
+  'admin.check_install.feeds.nok' => 'Feed table is bad configured.',
+  'admin.check_install.feeds.ok' => 'Feed table is ok.',
+  'admin.check_install.files' => 'File installation',
+  'admin.check_install.json.nok' => 'You lack JSON (php5-json package).',
+  'admin.check_install.json.ok' => 'You have version %s of JSON.',
+  'admin.check_install.logs.nok' => 'Check permissions on <em>./data/logs</em> directory. HTTP server must have rights to write into',
+  'admin.check_install.logs.ok' => 'Permissions on logs directory are good.',
+  'admin.check_install.minz.nok' => 'You lack the Minz framework.',
+  'admin.check_install.minz.ok' => 'You have the Minz framework.',
+  'admin.check_install.pcre.nok' => 'You lack a required library for regular expressions (php-pcre).',
+  'admin.check_install.pcre.ok' => 'You have the required library for regular expressions (PCRE).',
+  'admin.check_install.pdo.nok' => 'You lack PDO or one of the supported drivers (pdo_mysql, pdo_sqlite).',
+  'admin.check_install.pdo.ok' => 'You have PDO and at least one of the supported drivers (pdo_mysql, pdo_sqlite).',
+  'admin.check_install.pdo_mysql.nok' => 'You lack PDO for MySQL (it\'s ok if PDO is good).',
+  'admin.check_install.pdo_mysql.ok' => 'You have PDO for MySQL.',
+  'admin.check_install.pdo_sqlite.nok' => 'You lack PDO for SQLite (it\'s ok if PDO is good).',
+  'admin.check_install.pdo_sqlite.ok' => 'You have PDO for SQLite.',
+  'admin.check_install.persona.nok' => 'Check permissions on <em>./data/persona</em> directory. HTTP server must have rights to write into',
+  'admin.check_install.persona.ok' => 'Permissions on Mozilla Persona directory are good.',
+  'admin.check_install.php' => 'PHP installation',
+  'admin.check_install.php.nok' => 'Your PHP version is %s but FreshRSS requires at least version %s.',
+  'admin.check_install.php.ok' => 'Your PHP version is %s, which is compatible with FreshRSS.',
+  'admin.check_install.tables.nok' => 'There is one or more lacking tables in the database.',
+  'admin.check_install.tables.ok' => 'Tables are existing in the database.',
+  'admin.check_install.tokens.nok' => 'Check permissions on <em>./data/tokens</em> directory. HTTP server must have rights to write into',
+  'admin.check_install.tokens.ok' => 'Permissions on tokens directory are good.',
+  'admin.check_install.zip.nok' => 'You lack ZIP extension (php5-zip package).',
+  'admin.check_install.zip.ok' => 'You have version %s of ZIP extension.',
   'admin.users.articles_and_size' => '%s articles (%s)',
   'administration' => 'Manage',
   'advanced' => 'Advanced',
@@ -118,8 +165,8 @@
   'current_user' => 'Current user',
   'damn' => 'Damn!',
   'data_is_ok' => 'Permissions on data directory are good',
-  'dec' => 'dec',
   'Dec' => '\\D\\e\\c\\e\\m\\b\\e\\r',
+  'dec' => 'dec',
   'december' => 'Dec',
   'default_category' => 'Uncategorized',
   'default_user' => 'Username of the default user <small>(maximum 16 alphanumeric characters)</small>',
@@ -186,8 +233,10 @@
   'g+' => 'Google+',
   'gen.menu.admin' => 'Administration',
   'gen.menu.authentication' => 'Authentication',
+  'gen.menu.check_install' => 'Installation checking',
   'gen.menu.manage_users' => 'Manage users',
   'gen.menu.profil' => 'Profil',
+  'gen.title.check_install' => 'Installation checking',
   'general_configuration' => 'General configuration',
   'general_conf_is_ok' => 'General configuration has been saved.',
   'github_or_email' => '<a href="https://github.com/marienfressinaud/FreshRSS/issues">on Github</a> or <a href="mailto:dev@marienfressinaud.fr">by mail</a>',
@@ -219,8 +268,8 @@
   'javascript_for_shortcuts' => 'JavaScript must be enabled in order to use shortcuts',
   'javascript_is_better' => 'FreshRSS is more pleasant with JavaScript enabled',
   'javascript_should_be_activated' => 'JavaScript must be enabled',
-  'jul' => 'jul',
   'Jul' => '\\J\\u\\l\\y',
+  'jul' => 'jul',
   'july' => 'Jul',
   'jump_next' => 'jump to next unread sibling (feed or category)',
   'jun' => 'jun',
@@ -297,8 +346,8 @@
   'number_feeds' => '%d feeds',
   'n_entries_deleted' => '%d articles have been deleted',
   'n_feeds_actualized' => '%d feeds have been updated',
-  'Oct' => '\\O\\c\\t\\o\\b\\e\\r',
   'oct' => 'oct',
+  'Oct' => '\\O\\c\\t\\o\\b\\e\\r',
   'october' => 'Oct',
   'ok' => 'Ok!',
   'older_first' => 'Oldest first',
@@ -375,8 +424,8 @@
   'seconds_(0_means_no_timeout)' => 'seconds (0 means no timeout)',
   'see_on_website' => 'See on original website',
   'see_website' => 'See website',
-  'sep' => 'sep',
   'Sep' => '\\S\\e\\p\\t\\e\\m\\b\\e\\r',
+  'sep' => 'sep',
   'september' => 'Sep',
   'shaarli' => 'Shaarli',
   'share' => 'Share',

+ 53 - 4
app/i18n/fr.php

@@ -9,6 +9,53 @@
   'add_category' => 'Ajouter une catégorie',
   'add_query' => 'Créer un filtre',
   'add_rss_feed' => 'Ajouter un flux RSS',
+  'admin.check_install.cache.nok' => 'Veuillez vérifier les droits sur le répertoire <em>./data/cache</em>. Le serveur HTTP doit être capable d’écrire dedans',
+  'admin.check_install.cache.ok' => 'Les droits sur le répertoire de cache sont bons.',
+  'admin.check_install.categories.nok' => 'La table category est mal configurée.',
+  'admin.check_install.categories.ok' => 'La table category est bien configurée.',
+  'admin.check_install.connection.nok' => 'La connexion à la base de données est impossible.',
+  'admin.check_install.connection.ok' => 'La connexion à la base de données est bonne.',
+  'admin.check_install.ctype.nok' => 'Il manque une librairie pour la vérification des types de caractères (php-ctype).',
+  'admin.check_install.ctype.ok' => 'Vous disposez du nécessaire pour la vérification des types de caractères (ctype).',
+  'admin.check_install.curl.nok' => 'Vous ne disposez pas de cURL (paquet php5-curl).',
+  'admin.check_install.curl.ok' => 'Vous disposez de cURL dans sa version %s.',
+  'admin.check_install.data.nok' => 'Veuillez vérifier les droits sur le répertoire <em>./data</em>. Le serveur HTTP doit être capable d’écrire dedans',
+  'admin.check_install.data.ok' => 'Les droits sur le répertoire de data sont bons.',
+  'admin.check_install.database' => 'Installation de la base de données',
+  'admin.check_install.dom.nok' => 'Il manque une librairie pour parcourir le DOM (paquet php-xml).',
+  'admin.check_install.dom.ok' => 'Vous disposez du nécessaire pour parcourir le DOM.',
+  'admin.check_install.entries.nok' => 'La table entry est mal configurée.',
+  'admin.check_install.entries.ok' => 'La table entry est bien configurée.',
+  'admin.check_install.favicons.nok' => 'Veuillez vérifier les droits sur le répertoire <em>./data/favicons</em>. Le serveur HTTP doit être capable d’écrire dedans',
+  'admin.check_install.favicons.ok' => 'Les droits sur le répertoire des favicons sont bons.',
+  'admin.check_install.feeds.nok' => 'La table feed est mal configurée.',
+  'admin.check_install.feeds.ok' => 'La table feed est bien configurée.',
+  'admin.check_install.files' => 'Installation des fichiers',
+  'admin.check_install.json.nok' => 'Vous ne disposez pas de JSON (paquet php5-json).',
+  'admin.check_install.json.ok' => 'Vous disposez de JSON dans sa version %s.',
+  'admin.check_install.logs.nok' => 'Veuillez vérifier les droits sur le répertoire <em>./data/logs</em>. Le serveur HTTP doit être capable d’écrire dedans',
+  'admin.check_install.logs.ok' => 'Les droits sur le répertoire des logs sont bons.',
+  'admin.check_install.minz.nok' => 'Vous ne disposez pas de la librairie Minz.',
+  'admin.check_install.minz.ok' => 'Vous disposez du framework Minz',
+  'admin.check_install.pcre.nok' => 'Il manque une librairie pour les expressions régulières (php-pcre).',
+  'admin.check_install.pcre.ok' => 'Vous disposez du nécessaire pour les expressions régulières (PCRE).',
+  'admin.check_install.pdo.nok' => 'Vous ne disposez pas de PDO ou d’un des drivers supportés (pdo_mysql, pdo_sqlite).',
+  'admin.check_install.pdo.ok' => 'Vous disposez de PDO et d’au moins un des drivers supportés (pdo_mysql, pdo_sqlite).',
+  'admin.check_install.pdo_mysql.nok' => 'Vous ne possédez pas PDO pour MySQL (ok si PDO est bon).',
+  'admin.check_install.pdo_mysql.ok' => 'Vous possédez PDO pour MySQL.',
+  'admin.check_install.pdo_sqlite.nok' => 'Vous ne possédez pas PDO pour SQLite (ok si PDO est bon).',
+  'admin.check_install.pdo_sqlite.ok' => 'Vous possédez PDO pour SQLite.',
+  'admin.check_install.persona.nok' => 'Veuillez vérifier les droits sur le répertoire <em>./data/persona</em>. Le serveur HTTP doit être capable d’écrire dedans',
+  'admin.check_install.persona.ok' => 'Les droits sur le répertoire de Mozilla Persona sont bons.',
+  'admin.check_install.php' => 'Installation de PHP',
+  'admin.check_install.php.nok' => 'Votre version de PHP est la %s mais FreshRSS requiert au moins la version %s.',
+  'admin.check_install.php.ok' => 'Votre version de PHP est la %s, qui est compatible avec FreshRSS.',
+  'admin.check_install.tables.nok' => 'Il manque une ou plusieurs tables en base de données.',
+  'admin.check_install.tables.ok' => 'Les tables sont bien présentes en base de données.',
+  'admin.check_install.tokens.nok' => 'Veuillez vérifier les droits sur le répertoire <em>./data/tokens</em>. Le serveur HTTP doit être capable d’écrire dedans',
+  'admin.check_install.tokens.ok' => 'Les droits sur le répertoire des tokens sont bons.',
+  'admin.check_install.zip.nok' => 'Vous ne disposez pas de l\'extension ZIP (paquet php5-zip).',
+  'admin.check_install.zip.ok' => 'Vous disposez de l\'extension ZIP dans sa version %s.',
   'admin.users.articles_and_size' => '%s articles (%s)',
   'administration' => 'Gérer',
   'advanced' => 'Avancé',
@@ -118,8 +165,8 @@
   'current_user' => 'Utilisateur actuel',
   'damn' => 'Arf !',
   'data_is_ok' => 'Les droits sur le répertoire de data sont bons',
-  'dec' => 'déc.',
   'Dec' => '\\d\\é\\c\\e\\m\\b\\r\\e',
+  'dec' => 'déc.',
   'december' => 'décembre',
   'default_category' => 'Sans catégorie',
   'default_user' => 'Nom de l’utilisateur par défaut <small>(16 caractères alphanumériques maximum)</small>',
@@ -186,8 +233,10 @@
   'g+' => 'Google+',
   'gen.menu.admin' => 'Administration',
   'gen.menu.authentication' => 'Authentification',
+  'gen.menu.check_install' => 'Vérification de l\'installation',
   'gen.menu.manage_users' => 'Gestion des utilisateurs',
   'gen.menu.profil' => 'Profil',
+  'gen.title.check_install' => 'Vérification de l\'installation',
   'general_configuration' => 'Configuration générale',
   'general_conf_is_ok' => 'La configuration générale a été enregistrée.',
   'github_or_email' => '<a href="https://github.com/marienfressinaud/FreshRSS/issues">sur Github</a> ou <a href="mailto:dev@marienfressinaud.fr">par courriel</a>',
@@ -219,8 +268,8 @@
   'javascript_for_shortcuts' => 'Le JavaScript doit être activé pour pouvoir profiter des raccourcis.',
   'javascript_is_better' => 'FreshRSS est plus agréable à utiliser avec JavaScript activé',
   'javascript_should_be_activated' => 'Le JavaScript doit être activé.',
-  'jul' => 'jui.',
   'Jul' => '\\j\\u\\i\\l\\l\\e\\t',
+  'jul' => 'jui.',
   'july' => 'juillet',
   'jump_next' => 'sauter au prochain voisin non lu (flux ou catégorie)',
   'jun' => 'juin',
@@ -297,8 +346,8 @@
   'number_feeds' => '%d flux',
   'n_entries_deleted' => '%d articles ont été supprimés.',
   'n_feeds_actualized' => '%d flux ont été mis à jour.',
-  'Oct' => '\\o\\c\\t\\o\\b\\r\\e',
   'oct' => 'oct.',
+  'Oct' => '\\o\\c\\t\\o\\b\\r\\e',
   'october' => 'octobre',
   'ok' => 'Ok !',
   'older_first' => 'Plus anciens en premier',
@@ -375,8 +424,8 @@
   'seconds_(0_means_no_timeout)' => 'secondes (0 signifie aucun timeout ) ',
   'see_on_website' => 'Voir sur le site d’origine',
   'see_website' => 'Voir le site',
-  'sep' => 'sep.',
   'Sep' => '\\s\\e\\p\\t\\e\\m\\b\\r\\e',
+  'sep' => 'sep.',
   'september' => 'septembre',
   'shaarli' => 'Shaarli',
   'share' => 'Partager',

+ 6 - 0
lib/lib_rss.php

@@ -248,7 +248,9 @@ function is_referer_from_same_domain() {
 
 
 /**
+ * Check PHP and its extensions are well-installed.
  *
+ * @return array of tested values.
  */
 function check_install_php() {
 	return array(
@@ -268,7 +270,9 @@ function check_install_php() {
 
 
 /**
+ * Check different data files and directories exist.
  *
+ * @return array of tested values.
  */
 function check_install_files() {
 	return array(
@@ -283,7 +287,9 @@ function check_install_files() {
 
 
 /**
+ * Check database is well-installed.
  *
+ * @return array of tested values.
  */
 function check_install_database() {
 	$status = array(