Add handler for common HTTP errors

This commit is contained in:
Benjamin Renard 2022-04-24 19:11:37 +02:00
parent e808e3bfb7
commit 3a61299005
9 changed files with 427 additions and 287 deletions

View file

@ -77,20 +77,62 @@ function add_url_handler($pattern, $handler=null, $authenticated=false, $overrid
} }
} }
/**
* Show error page
*
* @param $request UrlRequest|null The request (optional, default: null)
* @param $error_code int|null The HTTP error code (optional, default: 400)
*
* @return void
**/
function error_page($request=null, $error_code=null) {
global $smarty;
$http_errors = array(
400 => array(
'pagetitle' => _("Bad request"),
'message' => _("Invalid request."),
),
401 => array(
'pagetitle' => _("Authentication required"),
'message' => _("You have to be authenticated to access to this page."),
),
403 => array(
'pagetitle' => _("Access denied"),
'message' => _("You do not have access to this application. If you think this is an error, please contact support."),
),
404 => array(
'pagetitle' => _("Whoops ! Page not found"),
'message' => _("The requested page can not be found."),
),
);
$error_code = ($error_code?intval($error_code):400);
if (array_key_exists($error_code, $http_errors))
$error = $http_errors[intval($error_code)];
else
$error = array(
'pagetitle' => _('Error'),
'message' => _('An unknown error occurred. If problem persist, please contact support.'),
);
http_response_code($error_code);
$smarty -> assign('message', $error['message']);
display_template('error_page.tpl', $error['pagetitle']);
exit();
}
/* /*
* Error 404 page * Error 404 page
*/ */
/** /**
* Error 404 handler * Error 404 handler
* *
* @param $request UrlRequest|null The request (optional, default: null) * @param[in] $request UrlRequest|null The request (optional, default: null)
* *
* @return void * @retval void
**/ **/
function error_404($request=null) { function error_404($request=null) {
display_template('error_404.tpl', _("Whoops ! Page not found")); error_page($request, 404);
exit();
} }
$_404_url_handler = 'error_404'; $_404_url_handler = 'error_404';

View file

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2022-04-24 17:42+0200\n" "POT-Creation-Date: 2022-04-24 19:09+0200\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Benjamin Renard <brenard@easter-eggs.com>\n" "Last-Translator: Benjamin Renard <brenard@easter-eggs.com>\n"
"Language-Team: \n" "Language-Team: \n"
@ -17,8 +17,8 @@ msgid "Invalid element identifier."
msgstr "Identifiant d'élément invalide." msgstr "Identifiant d'élément invalide."
#: /home/brenard/dev/eesyphp/includes/url-helpers.php:9 #: /home/brenard/dev/eesyphp/includes/url-helpers.php:9
#: /home/brenard/dev/eesyphp/includes/url-public.php:219 #: /home/brenard/dev/eesyphp/includes/url-public.php:222
#: /home/brenard/dev/eesyphp/includes/url-public.php:245 #: /home/brenard/dev/eesyphp/includes/url-public.php:246
#, php-format #, php-format
msgid "Item #% s not found." msgid "Item #% s not found."
msgstr "L'élément #%s est introuvable." msgstr "L'élément #%s est introuvable."
@ -27,11 +27,11 @@ msgstr "L'élément #%s est introuvable."
msgid "Smarty version not supported." msgid "Smarty version not supported."
msgstr "Une erreur est survenue en affichant cette page." msgstr "Une erreur est survenue en affichant cette page."
#: /home/brenard/dev/eesyphp/includes/smarty.php:134 #: /home/brenard/dev/eesyphp/includes/smarty.php:148
msgid "No template specified." msgid "No template specified."
msgstr "Aucun template spécifié." msgstr "Aucun template spécifié."
#: /home/brenard/dev/eesyphp/includes/smarty.php:145 #: /home/brenard/dev/eesyphp/includes/smarty.php:166
msgid "An error occurred while viewing this page." msgid "An error occurred while viewing this page."
msgstr "Une erreur est survenue en affichant cette page." msgstr "Une erreur est survenue en affichant cette page."
@ -56,7 +56,7 @@ msgstr ""
msgid "Search" msgid "Search"
msgstr "Rechercher" msgstr "Rechercher"
#: /home/brenard/dev/eesyphp/includes/url-public.php:129 #: /home/brenard/dev/eesyphp/includes/url-public.php:128
#, php-format #, php-format
msgid "Element %s" msgid "Element %s"
msgstr "Élément %s" msgstr "Élément %s"
@ -108,29 +108,29 @@ msgstr ""
"Des erreurs empêchent l'enregistrement de cet élément. Merci de les corriger " "Des erreurs empêchent l'enregistrement de cet élément. Merci de les corriger "
"avant de tenter d'enregistrer vos modifications." "avant de tenter d'enregistrer vos modifications."
#: /home/brenard/dev/eesyphp/includes/url-public.php:210 #: /home/brenard/dev/eesyphp/includes/url-public.php:211
#, php-format #, php-format
msgid "Element %s: Modification" msgid "Element %s: Modification"
msgstr "Élément %s : Modification" msgstr "Élément %s : Modification"
#: /home/brenard/dev/eesyphp/includes/url-public.php:223 #: /home/brenard/dev/eesyphp/includes/url-public.php:226
msgid "This item is already archived." msgid "This item is already archived."
msgstr "Cet élément est déjà archivé." msgstr "Cet élément est déjà archivé."
#: /home/brenard/dev/eesyphp/includes/url-public.php:226 #: /home/brenard/dev/eesyphp/includes/url-public.php:229
msgid "You cannot archive this item." msgid "You cannot archive this item."
msgstr "Vous ne pouvez pas archiver cet élément." msgstr "Vous ne pouvez pas archiver cet élément."
#: /home/brenard/dev/eesyphp/includes/url-public.php:230 #: /home/brenard/dev/eesyphp/includes/url-public.php:232
#, php-format #, php-format
msgid "The element '% s' has been archived successfully." msgid "The element '% s' has been archived successfully."
msgstr "L'élément '%s' a bien été archivé." msgstr "L'élément '%s' a bien été archivé."
#: /home/brenard/dev/eesyphp/includes/url-public.php:234 #: /home/brenard/dev/eesyphp/includes/url-public.php:235
msgid "An error occurred while archiving this item." msgid "An error occurred while archiving this item."
msgstr "Une erreur est survenue en archivant cet élément." msgstr "Une erreur est survenue en archivant cet élément."
#: /home/brenard/dev/eesyphp/includes/url-public.php:248 #: /home/brenard/dev/eesyphp/includes/url-public.php:249
msgid "You cannot delete this item." msgid "You cannot delete this item."
msgstr "Vous ne pouvez pas supprimer cet élément." msgstr "Vous ne pouvez pas supprimer cet élément."
@ -139,7 +139,7 @@ msgstr "Vous ne pouvez pas supprimer cet élément."
msgid "The element '% s' has been deleted successfully." msgid "The element '% s' has been deleted successfully."
msgstr "L'élément '%s' a bien été supprimé." msgstr "L'élément '%s' a bien été supprimé."
#: /home/brenard/dev/eesyphp/includes/url-public.php:256 #: /home/brenard/dev/eesyphp/includes/url-public.php:255
msgid "An error occurred while deleting this item." msgid "An error occurred while deleting this item."
msgstr "Une erreur est survenue en supprimant cet élément." msgstr "Une erreur est survenue en supprimant cet élément."
@ -204,65 +204,65 @@ msgstr ""
"Cette commande peut-être utilisée pour générer/mettre à jour le fichier lang/" "Cette commande peut-être utilisée pour générer/mettre à jour le fichier lang/"
"messages.pot." "messages.pot."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:167 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:165
#, php-format #, php-format
msgid "Compendium file %s not found." msgid "Compendium file %s not found."
msgstr "Fichier compendium %s introuvable." msgstr "Fichier compendium %s introuvable."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:179 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:172
#, php-format #, php-format
msgid "POT file not found (%s). Please run extract_messages first." msgid "POT file not found (%s). Please run extract_messages first."
msgstr "" msgstr ""
"Fichier POT introuvable (%s). Merci de lancer la commande extract_messages " "Fichier POT introuvable (%s). Merci de lancer la commande extract_messages "
"pour commencer." "pour commencer."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:194 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:184
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:333 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:301
#, php-format #, php-format
msgid "Lang directory '%s' found" msgid "Lang directory '%s' found"
msgstr "Dossier de langue '%s' trouvé" msgstr "Dossier de langue '%s' trouvé"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:201 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:190
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:340 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:307
#, php-format #, php-format
msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it."
msgstr "" msgstr ""
"Le dossier LC_MESSAGES est introuvable dans le dossier de langue '%s', on " "Le dossier LC_MESSAGES est introuvable dans le dossier de langue '%s', on "
"l'ignore." "l'ignore."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:218 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:205
#, php-format #, php-format
msgid "Fail to init messages in %s PO file using msginit (%s)." msgid "Fail to init messages in %s PO file using msginit (%s)."
msgstr "" msgstr ""
"Impossible d'initialiser les messages dans le fichier PO %s en utilisant " "Impossible d'initialiser les messages dans le fichier PO %s en utilisant "
"msginit (%s)." "msginit (%s)."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:238 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:223
#, php-format #, php-format
msgid "Fail to update messages in %s PO file using msgmerge (%s)." msgid "Fail to update messages in %s PO file using msgmerge (%s)."
msgstr "" msgstr ""
"Impossible de mettre à jour les messages dans les fichiers PO %s en " "Impossible de mettre à jour les messages dans les fichiers PO %s en "
"utilisant msgmerge (%s)." "utilisant msgmerge (%s)."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:246 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:229
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:350 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:315
#, php-format #, php-format
msgid "PO file not found in lang '%s' directory, ignore it." msgid "PO file not found in lang '%s' directory, ignore it."
msgstr "" msgstr ""
"Le fichier PO est introuvable dans le dossier de langue '%s', on l'ignore." "Le fichier PO est introuvable dans le dossier de langue '%s', on l'ignore."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:255 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:236
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:398 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:356
#, php-format #, php-format
msgid "Fail to open root lang directory (%s)." msgid "Fail to open root lang directory (%s)."
msgstr "Impossible d'ouvrir le dossier racine des langues (%s)." msgstr "Impossible d'ouvrir le dossier racine des langues (%s)."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:260 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:241
msgid "Update messages in translation PO lang files" msgid "Update messages in translation PO lang files"
msgstr "" msgstr ""
"Mettre à jour les messages dans les fichiers de traduction PO existants" "Mettre à jour les messages dans les fichiers de traduction PO existants"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:262 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:243
msgid "" msgid ""
"This command could be used to init/update PO files in lang/*/LC_MESSAGES " "This command could be used to init/update PO files in lang/*/LC_MESSAGES "
"directories." "directories."
@ -270,28 +270,28 @@ msgstr ""
"Cette commande peut-être utilisée pour initialiser/mettre à jour les " "Cette commande peut-être utilisée pour initialiser/mettre à jour les "
"fichiers PO les dossiers lang/*/LC_MESSAGES." "fichiers PO les dossiers lang/*/LC_MESSAGES."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:289 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:270
#, php-format #, php-format
msgid "Lang alias symlink found: %s -> %s" msgid "Lang alias symlink found: %s -> %s"
msgstr "Lien symbolique d'alias de langue trouvé : %s -> %s" msgstr "Lien symbolique d'alias de langue trouvé : %s -> %s"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:299 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:277
#, php-format #, php-format
msgid "JSON catalog symlink for %s -> %s created (%s)" msgid "JSON catalog symlink for %s -> %s created (%s)"
msgstr "Lien symbolique de catalogue JSON pour %s -> %s créé (%s)" msgstr "Lien symbolique de catalogue JSON pour %s -> %s créé (%s)"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:281
#, php-format #, php-format
msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" msgid "Fail to create JSON catalog symlink for %s -> %s (%s)"
msgstr "" msgstr ""
"Impossible de créer le lien symbolique de catalogue JSON pour %s -> %s (%s)" "Impossible de créer le lien symbolique de catalogue JSON pour %s -> %s (%s)"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:317 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:287
#, php-format #, php-format
msgid "JSON catalog symlink for %s -> %s already exist (%s)" msgid "JSON catalog symlink for %s -> %s already exist (%s)"
msgstr "Le lien symbolique du catalogue JSON pour %s -> %s existe déjà (%s)" msgstr "Le lien symbolique du catalogue JSON pour %s -> %s existe déjà (%s)"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:325 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:293
#, php-format #, php-format
msgid "" msgid ""
"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)" "JSON catalog file for %s already exist, but it's not a symlink to %s (%s)"
@ -299,29 +299,29 @@ msgstr ""
"Le catalogue JSON pour %s existe, mais il ne s'agit par d'un lien symbolique " "Le catalogue JSON pour %s existe, mais il ne s'agit par d'un lien symbolique "
"vers %s (%s)" "vers %s (%s)"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:364 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:329
#, php-format #, php-format
msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)."
msgstr "" msgstr ""
"Impossible de compiler les messages depuis le fichier PO %s en tant que " "Impossible de compiler les messages depuis le fichier PO %s en tant que "
"fichier MO en utilisant msgfmt (%s)." "fichier MO en utilisant msgfmt (%s)."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:375 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:339
#, php-format #, php-format
msgid "Fail to open %s JSON catalog file in write mode (%s)." msgid "Fail to open %s JSON catalog file in write mode (%s)."
msgstr "Impossible d'ouvrir le catalogue JSON %s en mode écriture (%s)." msgstr "Impossible d'ouvrir le catalogue JSON %s en mode écriture (%s)."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:382 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:344
#, php-format #, php-format
msgid "Fail to write %s JSON catalog in file (%s)." msgid "Fail to write %s JSON catalog in file (%s)."
msgstr "Impossible d'écrire le fichier du catalogue JSON %s (%s)." msgstr "Impossible d'écrire le fichier du catalogue JSON %s (%s)."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:389 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:349
#, php-format #, php-format
msgid "%s JSON catalog writed (%s)." msgid "%s JSON catalog writed (%s)."
msgstr "Catalogue JSON %s créé (%s)." msgstr "Catalogue JSON %s créé (%s)."
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:404 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:362
msgid "" msgid ""
"Compile messages from existing translation PO lang files to corresponding MO " "Compile messages from existing translation PO lang files to corresponding MO "
"files and JSON catalogs" "files and JSON catalogs"
@ -329,7 +329,7 @@ msgstr ""
"Compiler les messages depuis les fichiers PO de traduction existants vers " "Compiler les messages depuis les fichiers PO de traduction existants vers "
"les fichiers MO et les catalogues JSON correspondant" "les fichiers MO et les catalogues JSON correspondant"
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:409 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:367
msgid "" msgid ""
"This command could be used to compile PO files in lang/*/LC_MESSAGES " "This command could be used to compile PO files in lang/*/LC_MESSAGES "
"directories to MO files and as JSON catalogs in public_html/translations." "directories to MO files and as JSON catalogs in public_html/translations."
@ -352,10 +352,52 @@ msgstr ""
"Mail originalement destiné à %s." "Mail originalement destiné à %s."
#: /home/brenard/dev/eesyphp/includes/url.php:92 #: /home/brenard/dev/eesyphp/includes/url.php:92
msgid "Bad request"
msgstr "Mauvaise requête"
#: /home/brenard/dev/eesyphp/includes/url.php:93
msgid "Invalid request."
msgstr "Requête invalide."
#: /home/brenard/dev/eesyphp/includes/url.php:96
msgid "Authentication required"
msgstr "Authentification requise"
#: /home/brenard/dev/eesyphp/includes/url.php:97
msgid "You have to be authenticated to access to this page."
msgstr "Vous devez être authentifié pour accéder à cette page."
#: /home/brenard/dev/eesyphp/includes/url.php:100
msgid "Access denied"
msgstr "Accès interdit"
#: /home/brenard/dev/eesyphp/includes/url.php:101
msgid ""
"You do not have access to this application. If you think this is an error, "
"please contact support."
msgstr ""
"Vous n'avez pas accès à cette application. Si vous pensez qu'il s'agit d'une "
"erreur, merci de prendre contact avec le support."
#: /home/brenard/dev/eesyphp/includes/url.php:104
msgid "Whoops ! Page not found" msgid "Whoops ! Page not found"
msgstr "Oups ! Page introuvable" msgstr "Oups ! Page introuvable"
#: /home/brenard/dev/eesyphp/includes/url.php:117 #: /home/brenard/dev/eesyphp/includes/url.php:105
msgid "The requested page can not be found."
msgstr "La page demandée est introuvable."
#: /home/brenard/dev/eesyphp/includes/url.php:113
msgid "Error"
msgstr "Erreur"
#: /home/brenard/dev/eesyphp/includes/url.php:114
msgid "An unknown error occurred. If problem persist, please contact support."
msgstr ""
"Une erreur inconnue est survenue. Si le problème persiste, merci de prendre "
"contact avec le support."
#: /home/brenard/dev/eesyphp/includes/url.php:159
msgid "" msgid ""
"Unable to determine the requested page. If the problem persists, please " "Unable to determine the requested page. If the problem persists, please "
"contact support." "contact support."
@ -363,7 +405,7 @@ msgstr ""
"Impossible de déterminer la page demandée. Si le problème persiste, merci de " "Impossible de déterminer la page demandée. Si le problème persiste, merci de "
"prendre contact avec le support." "prendre contact avec le support."
#: /home/brenard/dev/eesyphp/includes/url.php:270 #: /home/brenard/dev/eesyphp/includes/url.php:312
msgid "" msgid ""
"Unable to determine the requested page (loop detected). If the problem " "Unable to determine the requested page (loop detected). If the problem "
"persists, please contact support." "persists, please contact support."
@ -371,11 +413,11 @@ msgstr ""
"Impossible de déterminer la page demandée (boucle détectée). Si le problème " "Impossible de déterminer la page demandée (boucle détectée). Si le problème "
"persiste, merci de prendre contact avec le support." "persiste, merci de prendre contact avec le support."
#: /home/brenard/dev/eesyphp/includes/url.php:295 #: /home/brenard/dev/eesyphp/includes/url.php:337
msgid "This request cannot be processed." msgid "This request cannot be processed."
msgstr "Cette requête ne peut être traitée." msgstr "Cette requête ne peut être traitée."
#: /home/brenard/dev/eesyphp/includes/url.php:313 #: /home/brenard/dev/eesyphp/includes/url.php:355
msgid "This request could not be processed correctly." msgid "This request could not be processed correctly."
msgstr "Cette requête n'a put être traitée correctement." msgstr "Cette requête n'a put être traitée correctement."
@ -389,36 +431,36 @@ msgstr "La commande CLI '%s' n'existe pas."
msgid "The CLI command '%s' handler is not callable !" msgid "The CLI command '%s' handler is not callable !"
msgstr "La fonction implémentant la commande CLI '%s' n'est pas exécutable !" msgstr "La fonction implémentant la commande CLI '%s' n'est pas exécutable !"
#: /home/brenard/dev/eesyphp/includes/cli.php:46 #: /home/brenard/dev/eesyphp/includes/cli.php:54
#, php-format #, php-format
msgid "Usage: %s [-h] [-qd] command\n" msgid "Usage: %s [-h] [-qd] command\n"
msgstr "Utilisation: %s [-h] [-qd] commande\n" msgstr "Utilisation: %s [-h] [-qd] commande\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:47 #: /home/brenard/dev/eesyphp/includes/cli.php:55
msgid " -h Show this message\n" msgid " -h Show this message\n"
msgstr " -h Affiche ce message\n" msgstr " -h Affiche ce message\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:48 #: /home/brenard/dev/eesyphp/includes/cli.php:56
msgid " -q / -d Quiet/Debug mode\n" msgid " -q / -d Quiet/Debug mode\n"
msgstr " -q / -d Mode silencieux/debug\n" msgstr " -q / -d Mode silencieux/debug\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:49 #: /home/brenard/dev/eesyphp/includes/cli.php:57
msgid " --trace Trace mode (the most verbose)\n" msgid " --trace Trace mode (the most verbose)\n"
msgstr " --trace Mode trace (le plus verbeux)\n" msgstr " --trace Mode trace (le plus verbeux)\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:50 #: /home/brenard/dev/eesyphp/includes/cli.php:58
msgid " command Command to run\n" msgid " command Command to run\n"
msgstr " command La commande à exécuter\n" msgstr " command La commande à exécuter\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:52 #: /home/brenard/dev/eesyphp/includes/cli.php:60
msgid "Available commands:\n" msgid "Available commands:\n"
msgstr "Commandes disponibles:\n" msgstr "Commandes disponibles:\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:94 #: /home/brenard/dev/eesyphp/includes/cli.php:102
msgid "Only one command could be executed !" msgid "Only one command could be executed !"
msgstr "Une seul commande peut-être exécutée !" msgstr "Une seul commande peut-être exécutée !"
#: /home/brenard/dev/eesyphp/includes/cli.php:119 #: /home/brenard/dev/eesyphp/includes/cli.php:127
#, php-format #, php-format
msgid "" msgid ""
"Invalid parameter \"%s\".\n" "Invalid parameter \"%s\".\n"
@ -428,150 +470,150 @@ msgstr ""
"Note : Les paramètres/arguments de la requête doivent être placés après " "Note : Les paramètres/arguments de la requête doivent être placés après "
"celle-ci." "celle-ci."
#: /home/brenard/dev/eesyphp/includes/cli.php:144 #: /home/brenard/dev/eesyphp/includes/cli.php:149
#, php-format #, php-format
msgid "An exception occured running command %s" msgid "An exception occured running command %s"
msgstr "Une exception est survenue en exécutant la commande %s" msgstr "Une exception est survenue en exécutant la commande %s"
#: /home/brenard/dev/eesyphp/includes/cli.php:150 #: /home/brenard/dev/eesyphp/includes/cli.php:155
#, php-format #, php-format
msgid "Item #%s:\n" msgid "Item #%s:\n"
msgstr "Élément #%s :\n" msgstr "Élément #%s :\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:151 #: /home/brenard/dev/eesyphp/includes/cli.php:156
#, php-format #, php-format
msgid "ID: %s" msgid "ID: %s"
msgstr "ID : %s" msgstr "ID : %s"
#: /home/brenard/dev/eesyphp/includes/cli.php:152 #: /home/brenard/dev/eesyphp/includes/cli.php:157
#, php-format #, php-format
msgid "Name: '%s'" msgid "Name: '%s'"
msgstr "Nom : %s" msgstr "Nom : %s"
#: /home/brenard/dev/eesyphp/includes/cli.php:153 #: /home/brenard/dev/eesyphp/includes/cli.php:158
#, php-format #, php-format
msgid "Date: %s" msgid "Date: %s"
msgstr "Date : %s" msgstr "Date : %s"
#: /home/brenard/dev/eesyphp/includes/cli.php:155 #: /home/brenard/dev/eesyphp/includes/cli.php:160
#, php-format #, php-format
msgid "Description: %s" msgid "Description: %s"
msgstr "Description : %s" msgstr "Description : %s"
#: /home/brenard/dev/eesyphp/includes/cli.php:156 #: /home/brenard/dev/eesyphp/includes/cli.php:161
msgid "Not set" msgid "Not set"
msgstr "Non-défini" msgstr "Non-défini"
#: /home/brenard/dev/eesyphp/includes/cli.php:158 #: /home/brenard/dev/eesyphp/includes/cli.php:163
#, php-format #, php-format
msgid "Status: %s" msgid "Status: %s"
msgstr "Statut : %s" msgstr "Statut : %s"
#: /home/brenard/dev/eesyphp/includes/cli.php:211 #: /home/brenard/dev/eesyphp/includes/cli.php:216
msgid "No item.\n" msgid "No item.\n"
msgstr "Aucun élément.\n" msgstr "Aucun élément.\n"
#: /home/brenard/dev/eesyphp/includes/cli.php:237 #: /home/brenard/dev/eesyphp/includes/cli.php:242
#, php-format #, php-format
msgid "%d item(s)" msgid "%d item(s)"
msgstr "%d élément(s)" msgstr "%d élément(s)"
#: /home/brenard/dev/eesyphp/includes/cli.php:243 #: /home/brenard/dev/eesyphp/includes/cli.php:248
msgid "List/search items" msgid "List/search items"
msgstr "Lister/rechercher les éléments" msgstr "Lister/rechercher les éléments"
#: /home/brenard/dev/eesyphp/includes/cli.php:244 #: /home/brenard/dev/eesyphp/includes/cli.php:249
msgid "[patterns]" msgid "[patterns]"
msgstr "[mots clés]" msgstr "[mots clés]"
#: /home/brenard/dev/eesyphp/includes/cli.php:246 #: /home/brenard/dev/eesyphp/includes/cli.php:251
msgid "-o|--orderby Ordering list criterion. Possible values:" msgid "-o|--orderby Ordering list criterion. Possible values:"
msgstr "-o|--orderby Critère de tri de la liste. Valeurs possibles :" msgstr "-o|--orderby Critère de tri de la liste. Valeurs possibles :"
#: /home/brenard/dev/eesyphp/includes/cli.php:248 #: /home/brenard/dev/eesyphp/includes/cli.php:253
msgid "-r|--reverse Reverse order" msgid "-r|--reverse Reverse order"
msgstr "-r|--reverse Ordre inverse" msgstr "-r|--reverse Ordre inverse"
#: /home/brenard/dev/eesyphp/includes/cli.php:249 #: /home/brenard/dev/eesyphp/includes/cli.php:254
msgid "-s|--status Filter on status. Possible values:" msgid "-s|--status Filter on status. Possible values:"
msgstr "-s|--status Filtrer sur le statut. Valeurs possibles :" msgstr "-s|--status Filtrer sur le statut. Valeurs possibles :"
#: /home/brenard/dev/eesyphp/includes/cli.php:256 #: /home/brenard/dev/eesyphp/includes/cli.php:261
msgid "You must provide a valid ID." msgid "You must provide a valid ID."
msgstr "Vous devez fournir un ID valide." msgstr "Vous devez fournir un ID valide."
#: /home/brenard/dev/eesyphp/includes/cli.php:262 #: /home/brenard/dev/eesyphp/includes/cli.php:267
#: /home/brenard/dev/eesyphp/includes/cli.php:286 #: /home/brenard/dev/eesyphp/includes/cli.php:291
#, php-format #, php-format
msgid "Item #%s not found." msgid "Item #%s not found."
msgstr "Élément #%s introuvable." msgstr "Élément #%s introuvable."
#: /home/brenard/dev/eesyphp/includes/cli.php:270 #: /home/brenard/dev/eesyphp/includes/cli.php:275
msgid "Show item" msgid "Show item"
msgstr "Voir un élément" msgstr "Voir un élément"
#: /home/brenard/dev/eesyphp/includes/cli.php:271 #: /home/brenard/dev/eesyphp/includes/cli.php:276
msgid "[ID]" msgid "[ID]"
msgstr "[ID]" msgstr "[ID]"
#: /home/brenard/dev/eesyphp/includes/cli.php:276 #: /home/brenard/dev/eesyphp/includes/cli.php:281
msgid "You must provide item ID." msgid "You must provide item ID."
msgstr "Vous devez fournir un ID valide." msgstr "Vous devez fournir un ID valide."
#: /home/brenard/dev/eesyphp/includes/cli.php:280 #: /home/brenard/dev/eesyphp/includes/cli.php:285
msgid "Invalid item ID" msgid "Invalid item ID"
msgstr "ID d'élément invalide" msgstr "ID d'élément invalide"
#: /home/brenard/dev/eesyphp/includes/cli.php:291 #: /home/brenard/dev/eesyphp/includes/cli.php:296
msgid "Are you sure you want to delete this item? Type 'yes' to continue: " msgid "Are you sure you want to delete this item? Type 'yes' to continue: "
msgstr "" msgstr ""
"Êtes-vous sûre de vouloir supprimer cet élément ? Taper 'yes' pour " "Êtes-vous sûre de vouloir supprimer cet élément ? Taper 'yes' pour "
"continuer : " "continuer : "
#: /home/brenard/dev/eesyphp/includes/cli.php:295 #: /home/brenard/dev/eesyphp/includes/cli.php:300
msgid "User cancel" msgid "User cancel"
msgstr "L'utilisateur a annulé" msgstr "L'utilisateur a annulé"
#: /home/brenard/dev/eesyphp/includes/cli.php:301 #: /home/brenard/dev/eesyphp/includes/cli.php:306
#, php-format #, php-format
msgid "An error occured deleting item #%d." msgid "An error occured deleting item #%d."
msgstr "Une erreur est survenue en supprimant l'élément #%d." msgstr "Une erreur est survenue en supprimant l'élément #%d."
#: /home/brenard/dev/eesyphp/includes/cli.php:308 #: /home/brenard/dev/eesyphp/includes/cli.php:313
msgid "Delete item" msgid "Delete item"
msgstr "Supprimer un élément" msgstr "Supprimer un élément"
#: /home/brenard/dev/eesyphp/includes/cli.php:309 #: /home/brenard/dev/eesyphp/includes/cli.php:314
msgid "[item ID]" msgid "[item ID]"
msgstr "[ID de l'élément]" msgstr "[ID de l'élément]"
#: /home/brenard/dev/eesyphp/includes/cli.php:321 #: /home/brenard/dev/eesyphp/includes/cli.php:326
msgid "Export items (as CSV)" msgid "Export items (as CSV)"
msgstr "Exporter les éléments (au format CSV)" msgstr "Exporter les éléments (au format CSV)"
#: /home/brenard/dev/eesyphp/includes/cli.php:322 #: /home/brenard/dev/eesyphp/includes/cli.php:327
msgid "[output file path]" msgid "[output file path]"
msgstr "[chemin du fichier de sortie]" msgstr "[chemin du fichier de sortie]"
#: /home/brenard/dev/eesyphp/includes/cli.php:337 #: /home/brenard/dev/eesyphp/includes/cli.php:342
msgid "Restore items (from CSV)" msgid "Restore items (from CSV)"
msgstr "Restaurer les éléments (depuis un fichier CSV)" msgstr "Restaurer les éléments (depuis un fichier CSV)"
#: /home/brenard/dev/eesyphp/includes/cli.php:338 #: /home/brenard/dev/eesyphp/includes/cli.php:343
msgid "[input file path]" msgid "[input file path]"
msgstr "[chemin du fichier d'entrée]" msgstr "[chemin du fichier d'entrée]"
#: /home/brenard/dev/eesyphp/includes/cli.php:411 #: /home/brenard/dev/eesyphp/includes/cli.php:412
msgid "Cron to handle item expiration" msgid "Cron to handle item expiration"
msgstr "Cron gérant l'expiration des éléments" msgstr "Cron gérant l'expiration des éléments"
#: /home/brenard/dev/eesyphp/includes/cli.php:414 #: /home/brenard/dev/eesyphp/includes/cli.php:415
msgid "-j/--just-try Just-try mode : do not really removed expired item(s)" msgid "-j/--just-try Just-try mode : do not really removed expired item(s)"
msgstr "" msgstr ""
"-j/--just-try Mode just-try : Ne supprime pas réellement les éléments " "-j/--just-try Mode just-try : Ne supprime pas réellement les éléments "
"expirés" "expirés"
#: /home/brenard/dev/eesyphp/includes/cli.php:415 #: /home/brenard/dev/eesyphp/includes/cli.php:416
msgid "-m/--max-age Item expiration limit (in days, optional)" msgid "-m/--max-age Item expiration limit (in days, optional)"
msgstr "" msgstr ""
"-m/--max-age Limite d'expiration des éléments (en secondes, optionnel)" "-m/--max-age Limite d'expiration des éléments (en secondes, optionnel)"
@ -596,10 +638,6 @@ msgstr "Annuler"
msgid "Validate" msgid "Validate"
msgstr "Valider" msgstr "Valider"
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:44
msgid "Error"
msgstr "Erreur"
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:52 #: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:52
msgid "OK" msgid "OK"
msgstr "OK" msgstr "OK"
@ -730,10 +768,6 @@ msgid_plural "Elements %1 to %2 on %3"
msgstr[0] "%3 élément" msgstr[0] "%3 élément"
msgstr[1] "Éléments %1 à %2 sur %3" msgstr[1] "Éléments %1 à %2 sur %3"
#: /home/brenard/dev/eesyphp/templates/error_404.tpl:3
msgid "The requested page can not be found."
msgstr "La page demandée est introuvable."
#: /home/brenard/dev/eesyphp/templates/show.tpl:14 #: /home/brenard/dev/eesyphp/templates/show.tpl:14
msgid "Creation date" msgid "Creation date"
msgstr "Date de création" msgstr "Date de création"

View file

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"POT-Creation-Date: 2022-04-24 17:42+0200\n" "POT-Creation-Date: 2022-04-24 19:09+0200\n"
"PO-Revision-Date: 2022-04-24 17:42+0200\n" "PO-Revision-Date: 2022-04-24 19:09+0200\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"

View file

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"POT-Creation-Date: 2022-04-24 17:42+0200\n" "POT-Creation-Date: 2022-04-24 19:09+0200\n"
"PO-Revision-Date: 2022-04-24 17:42+0200\n" "PO-Revision-Date: 2022-04-24 19:09+0200\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
@ -11,8 +11,8 @@ msgid "Invalid element identifier."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-helpers.php:9 #: /home/brenard/dev/eesyphp/includes/url-helpers.php:9
#: /home/brenard/dev/eesyphp/includes/url-public.php:219 #: /home/brenard/dev/eesyphp/includes/url-public.php:222
#: /home/brenard/dev/eesyphp/includes/url-public.php:245 #: /home/brenard/dev/eesyphp/includes/url-public.php:246
#, php-format #, php-format
msgid "Item #% s not found." msgid "Item #% s not found."
msgstr "" msgstr ""
@ -21,11 +21,11 @@ msgstr ""
msgid "Smarty version not supported." msgid "Smarty version not supported."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/smarty.php:134 #: /home/brenard/dev/eesyphp/includes/smarty.php:148
msgid "No template specified." msgid "No template specified."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/smarty.php:145 #: /home/brenard/dev/eesyphp/includes/smarty.php:166
msgid "An error occurred while viewing this page." msgid "An error occurred while viewing this page."
msgstr "" msgstr ""
@ -48,7 +48,7 @@ msgstr ""
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:129 #: /home/brenard/dev/eesyphp/includes/url-public.php:128
#, php-format #, php-format
msgid "Element %s" msgid "Element %s"
msgstr "" msgstr ""
@ -96,29 +96,29 @@ msgid ""
"before attempting to save your changes." "before attempting to save your changes."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:210 #: /home/brenard/dev/eesyphp/includes/url-public.php:211
#, php-format #, php-format
msgid "Element %s: Modification" msgid "Element %s: Modification"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:223 #: /home/brenard/dev/eesyphp/includes/url-public.php:226
msgid "This item is already archived." msgid "This item is already archived."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:226 #: /home/brenard/dev/eesyphp/includes/url-public.php:229
msgid "You cannot archive this item." msgid "You cannot archive this item."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:230 #: /home/brenard/dev/eesyphp/includes/url-public.php:232
#, php-format #, php-format
msgid "The element '% s' has been archived successfully." msgid "The element '% s' has been archived successfully."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:234 #: /home/brenard/dev/eesyphp/includes/url-public.php:235
msgid "An error occurred while archiving this item." msgid "An error occurred while archiving this item."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:248 #: /home/brenard/dev/eesyphp/includes/url-public.php:249
msgid "You cannot delete this item." msgid "You cannot delete this item."
msgstr "" msgstr ""
@ -127,7 +127,7 @@ msgstr ""
msgid "The element '% s' has been deleted successfully." msgid "The element '% s' has been deleted successfully."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:256 #: /home/brenard/dev/eesyphp/includes/url-public.php:255
msgid "An error occurred while deleting this item." msgid "An error occurred while deleting this item."
msgstr "" msgstr ""
@ -184,113 +184,113 @@ msgstr ""
msgid "This command could be used to generate/update lang/messages.pot file." msgid "This command could be used to generate/update lang/messages.pot file."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:167 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:165
#, php-format #, php-format
msgid "Compendium file %s not found." msgid "Compendium file %s not found."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:179 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:172
#, php-format #, php-format
msgid "POT file not found (%s). Please run extract_messages first." msgid "POT file not found (%s). Please run extract_messages first."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:194 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:184
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:333 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:301
#, php-format #, php-format
msgid "Lang directory '%s' found" msgid "Lang directory '%s' found"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:201 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:190
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:340 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:307
#, php-format #, php-format
msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:218 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:205
#, php-format #, php-format
msgid "Fail to init messages in %s PO file using msginit (%s)." msgid "Fail to init messages in %s PO file using msginit (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:238 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:223
#, php-format #, php-format
msgid "Fail to update messages in %s PO file using msgmerge (%s)." msgid "Fail to update messages in %s PO file using msgmerge (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:246 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:229
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:350 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:315
#, php-format #, php-format
msgid "PO file not found in lang '%s' directory, ignore it." msgid "PO file not found in lang '%s' directory, ignore it."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:255 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:236
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:398 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:356
#, php-format #, php-format
msgid "Fail to open root lang directory (%s)." msgid "Fail to open root lang directory (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:260 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:241
msgid "Update messages in translation PO lang files" msgid "Update messages in translation PO lang files"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:262 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:243
msgid "" msgid ""
"This command could be used to init/update PO files in lang/*/LC_MESSAGES " "This command could be used to init/update PO files in lang/*/LC_MESSAGES "
"directories." "directories."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:289 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:270
#, php-format #, php-format
msgid "Lang alias symlink found: %s -> %s" msgid "Lang alias symlink found: %s -> %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:299 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:277
#, php-format #, php-format
msgid "JSON catalog symlink for %s -> %s created (%s)" msgid "JSON catalog symlink for %s -> %s created (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:281
#, php-format #, php-format
msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" msgid "Fail to create JSON catalog symlink for %s -> %s (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:317 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:287
#, php-format #, php-format
msgid "JSON catalog symlink for %s -> %s already exist (%s)" msgid "JSON catalog symlink for %s -> %s already exist (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:325 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:293
#, php-format #, php-format
msgid "" msgid ""
"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)" "JSON catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:364 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:329
#, php-format #, php-format
msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:375 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:339
#, php-format #, php-format
msgid "Fail to open %s JSON catalog file in write mode (%s)." msgid "Fail to open %s JSON catalog file in write mode (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:382 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:344
#, php-format #, php-format
msgid "Fail to write %s JSON catalog in file (%s)." msgid "Fail to write %s JSON catalog in file (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:389 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:349
#, php-format #, php-format
msgid "%s JSON catalog writed (%s)." msgid "%s JSON catalog writed (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:404 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:362
msgid "" msgid ""
"Compile messages from existing translation PO lang files to corresponding MO " "Compile messages from existing translation PO lang files to corresponding MO "
"files and JSON catalogs" "files and JSON catalogs"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:409 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:367
msgid "" msgid ""
"This command could be used to compile PO files in lang/*/LC_MESSAGES " "This command could be used to compile PO files in lang/*/LC_MESSAGES "
"directories to MO files and as JSON catalogs in public_html/translations." "directories to MO files and as JSON catalogs in public_html/translations."
@ -306,26 +306,64 @@ msgid ""
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:92 #: /home/brenard/dev/eesyphp/includes/url.php:92
msgid "Bad request"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:93
msgid "Invalid request."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:96
msgid "Authentication required"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:97
msgid "You have to be authenticated to access to this page."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:100
msgid "Access denied"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:101
msgid ""
"You do not have access to this application. If you think this is an error, "
"please contact support."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:104
msgid "Whoops ! Page not found" msgid "Whoops ! Page not found"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:117 #: /home/brenard/dev/eesyphp/includes/url.php:105
msgid "The requested page can not be found."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:113
msgid "Error"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:114
msgid "An unknown error occurred. If problem persist, please contact support."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:159
msgid "" msgid ""
"Unable to determine the requested page. If the problem persists, please " "Unable to determine the requested page. If the problem persists, please "
"contact support." "contact support."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:270 #: /home/brenard/dev/eesyphp/includes/url.php:312
msgid "" msgid ""
"Unable to determine the requested page (loop detected). If the problem " "Unable to determine the requested page (loop detected). If the problem "
"persists, please contact support." "persists, please contact support."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:295 #: /home/brenard/dev/eesyphp/includes/url.php:337
msgid "This request cannot be processed." msgid "This request cannot be processed."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:313 #: /home/brenard/dev/eesyphp/includes/url.php:355
msgid "This request could not be processed correctly." msgid "This request could not be processed correctly."
msgstr "" msgstr ""
@ -339,182 +377,182 @@ msgstr ""
msgid "The CLI command '%s' handler is not callable !" msgid "The CLI command '%s' handler is not callable !"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:46 #: /home/brenard/dev/eesyphp/includes/cli.php:54
#, php-format #, php-format
msgid "Usage: %s [-h] [-qd] command\n" msgid "Usage: %s [-h] [-qd] command\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:47 #: /home/brenard/dev/eesyphp/includes/cli.php:55
msgid " -h Show this message\n" msgid " -h Show this message\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:48 #: /home/brenard/dev/eesyphp/includes/cli.php:56
msgid " -q / -d Quiet/Debug mode\n" msgid " -q / -d Quiet/Debug mode\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:49 #: /home/brenard/dev/eesyphp/includes/cli.php:57
msgid " --trace Trace mode (the most verbose)\n" msgid " --trace Trace mode (the most verbose)\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:50 #: /home/brenard/dev/eesyphp/includes/cli.php:58
msgid " command Command to run\n" msgid " command Command to run\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:52 #: /home/brenard/dev/eesyphp/includes/cli.php:60
msgid "Available commands:\n" msgid "Available commands:\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:94 #: /home/brenard/dev/eesyphp/includes/cli.php:102
msgid "Only one command could be executed !" msgid "Only one command could be executed !"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:119 #: /home/brenard/dev/eesyphp/includes/cli.php:127
#, php-format #, php-format
msgid "" msgid ""
"Invalid parameter \"%s\".\n" "Invalid parameter \"%s\".\n"
"Note: Command's parameter/argument must be place after the command." "Note: Command's parameter/argument must be place after the command."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:144 #: /home/brenard/dev/eesyphp/includes/cli.php:149
#, php-format #, php-format
msgid "An exception occured running command %s" msgid "An exception occured running command %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:150 #: /home/brenard/dev/eesyphp/includes/cli.php:155
#, php-format #, php-format
msgid "Item #%s:\n" msgid "Item #%s:\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:151 #: /home/brenard/dev/eesyphp/includes/cli.php:156
#, php-format #, php-format
msgid "ID: %s" msgid "ID: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:152 #: /home/brenard/dev/eesyphp/includes/cli.php:157
#, php-format #, php-format
msgid "Name: '%s'" msgid "Name: '%s'"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:153 #: /home/brenard/dev/eesyphp/includes/cli.php:158
#, php-format #, php-format
msgid "Date: %s" msgid "Date: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:155 #: /home/brenard/dev/eesyphp/includes/cli.php:160
#, php-format #, php-format
msgid "Description: %s" msgid "Description: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:156 #: /home/brenard/dev/eesyphp/includes/cli.php:161
msgid "Not set" msgid "Not set"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:158 #: /home/brenard/dev/eesyphp/includes/cli.php:163
#, php-format #, php-format
msgid "Status: %s" msgid "Status: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:211 #: /home/brenard/dev/eesyphp/includes/cli.php:216
msgid "No item.\n" msgid "No item.\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:237 #: /home/brenard/dev/eesyphp/includes/cli.php:242
#, php-format #, php-format
msgid "%d item(s)" msgid "%d item(s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:243 #: /home/brenard/dev/eesyphp/includes/cli.php:248
msgid "List/search items" msgid "List/search items"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:244 #: /home/brenard/dev/eesyphp/includes/cli.php:249
msgid "[patterns]" msgid "[patterns]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:246 #: /home/brenard/dev/eesyphp/includes/cli.php:251
msgid "-o|--orderby Ordering list criterion. Possible values:" msgid "-o|--orderby Ordering list criterion. Possible values:"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:248 #: /home/brenard/dev/eesyphp/includes/cli.php:253
msgid "-r|--reverse Reverse order" msgid "-r|--reverse Reverse order"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:249 #: /home/brenard/dev/eesyphp/includes/cli.php:254
msgid "-s|--status Filter on status. Possible values:" msgid "-s|--status Filter on status. Possible values:"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:256 #: /home/brenard/dev/eesyphp/includes/cli.php:261
msgid "You must provide a valid ID." msgid "You must provide a valid ID."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:262 #: /home/brenard/dev/eesyphp/includes/cli.php:267
#: /home/brenard/dev/eesyphp/includes/cli.php:286 #: /home/brenard/dev/eesyphp/includes/cli.php:291
#, php-format #, php-format
msgid "Item #%s not found." msgid "Item #%s not found."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:270 #: /home/brenard/dev/eesyphp/includes/cli.php:275
msgid "Show item" msgid "Show item"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:271 #: /home/brenard/dev/eesyphp/includes/cli.php:276
msgid "[ID]" msgid "[ID]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:276 #: /home/brenard/dev/eesyphp/includes/cli.php:281
msgid "You must provide item ID." msgid "You must provide item ID."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:280 #: /home/brenard/dev/eesyphp/includes/cli.php:285
msgid "Invalid item ID" msgid "Invalid item ID"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:291 #: /home/brenard/dev/eesyphp/includes/cli.php:296
msgid "Are you sure you want to delete this item? Type 'yes' to continue: " msgid "Are you sure you want to delete this item? Type 'yes' to continue: "
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:295 #: /home/brenard/dev/eesyphp/includes/cli.php:300
msgid "User cancel" msgid "User cancel"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:301 #: /home/brenard/dev/eesyphp/includes/cli.php:306
#, php-format #, php-format
msgid "An error occured deleting item #%d." msgid "An error occured deleting item #%d."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:308 #: /home/brenard/dev/eesyphp/includes/cli.php:313
msgid "Delete item" msgid "Delete item"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:309 #: /home/brenard/dev/eesyphp/includes/cli.php:314
msgid "[item ID]" msgid "[item ID]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:321 #: /home/brenard/dev/eesyphp/includes/cli.php:326
msgid "Export items (as CSV)" msgid "Export items (as CSV)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:322 #: /home/brenard/dev/eesyphp/includes/cli.php:327
msgid "[output file path]" msgid "[output file path]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:337 #: /home/brenard/dev/eesyphp/includes/cli.php:342
msgid "Restore items (from CSV)" msgid "Restore items (from CSV)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:338 #: /home/brenard/dev/eesyphp/includes/cli.php:343
msgid "[input file path]" msgid "[input file path]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:411 #: /home/brenard/dev/eesyphp/includes/cli.php:412
msgid "Cron to handle item expiration" msgid "Cron to handle item expiration"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:414 #: /home/brenard/dev/eesyphp/includes/cli.php:415
msgid "-j/--just-try Just-try mode : do not really removed expired item(s)" msgid "-j/--just-try Just-try mode : do not really removed expired item(s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:415 #: /home/brenard/dev/eesyphp/includes/cli.php:416
msgid "-m/--max-age Item expiration limit (in days, optional)" msgid "-m/--max-age Item expiration limit (in days, optional)"
msgstr "" msgstr ""
@ -538,10 +576,6 @@ msgstr ""
msgid "Validate" msgid "Validate"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:44
msgid "Error"
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:52 #: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:52
msgid "OK" msgid "OK"
msgstr "" msgstr ""
@ -669,10 +703,6 @@ msgid_plural "Elements %1 to %2 on %3"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: /home/brenard/dev/eesyphp/templates/error_404.tpl:3
msgid "The requested page can not be found."
msgstr ""
#: /home/brenard/dev/eesyphp/templates/show.tpl:14 #: /home/brenard/dev/eesyphp/templates/show.tpl:14
msgid "Creation date" msgid "Creation date"
msgstr "" msgstr ""

View file

@ -3,8 +3,8 @@ msgid "Invalid element identifier."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-helpers.php:9 #: /home/brenard/dev/eesyphp/includes/url-helpers.php:9
#: /home/brenard/dev/eesyphp/includes/url-public.php:219 #: /home/brenard/dev/eesyphp/includes/url-public.php:222
#: /home/brenard/dev/eesyphp/includes/url-public.php:245 #: /home/brenard/dev/eesyphp/includes/url-public.php:246
#, php-format #, php-format
msgid "Item #% s not found." msgid "Item #% s not found."
msgstr "" msgstr ""
@ -13,11 +13,11 @@ msgstr ""
msgid "Smarty version not supported." msgid "Smarty version not supported."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/smarty.php:134 #: /home/brenard/dev/eesyphp/includes/smarty.php:148
msgid "No template specified." msgid "No template specified."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/smarty.php:145 #: /home/brenard/dev/eesyphp/includes/smarty.php:166
msgid "An error occurred while viewing this page." msgid "An error occurred while viewing this page."
msgstr "" msgstr ""
@ -40,7 +40,7 @@ msgstr ""
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:129 #: /home/brenard/dev/eesyphp/includes/url-public.php:128
#, php-format #, php-format
msgid "Element %s" msgid "Element %s"
msgstr "" msgstr ""
@ -88,29 +88,29 @@ msgid ""
"before attempting to save your changes." "before attempting to save your changes."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:210 #: /home/brenard/dev/eesyphp/includes/url-public.php:211
#, php-format #, php-format
msgid "Element %s: Modification" msgid "Element %s: Modification"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:223 #: /home/brenard/dev/eesyphp/includes/url-public.php:226
msgid "This item is already archived." msgid "This item is already archived."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:226 #: /home/brenard/dev/eesyphp/includes/url-public.php:229
msgid "You cannot archive this item." msgid "You cannot archive this item."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:230 #: /home/brenard/dev/eesyphp/includes/url-public.php:232
#, php-format #, php-format
msgid "The element '% s' has been archived successfully." msgid "The element '% s' has been archived successfully."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:234 #: /home/brenard/dev/eesyphp/includes/url-public.php:235
msgid "An error occurred while archiving this item." msgid "An error occurred while archiving this item."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:248 #: /home/brenard/dev/eesyphp/includes/url-public.php:249
msgid "You cannot delete this item." msgid "You cannot delete this item."
msgstr "" msgstr ""
@ -119,7 +119,7 @@ msgstr ""
msgid "The element '% s' has been deleted successfully." msgid "The element '% s' has been deleted successfully."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url-public.php:256 #: /home/brenard/dev/eesyphp/includes/url-public.php:255
msgid "An error occurred while deleting this item." msgid "An error occurred while deleting this item."
msgstr "" msgstr ""
@ -176,113 +176,113 @@ msgstr ""
msgid "This command could be used to generate/update lang/messages.pot file." msgid "This command could be used to generate/update lang/messages.pot file."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:167 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:165
#, php-format #, php-format
msgid "Compendium file %s not found." msgid "Compendium file %s not found."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:179 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:172
#, php-format #, php-format
msgid "POT file not found (%s). Please run extract_messages first." msgid "POT file not found (%s). Please run extract_messages first."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:194 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:184
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:333 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:301
#, php-format #, php-format
msgid "Lang directory '%s' found" msgid "Lang directory '%s' found"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:201 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:190
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:340 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:307
#, php-format #, php-format
msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:218 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:205
#, php-format #, php-format
msgid "Fail to init messages in %s PO file using msginit (%s)." msgid "Fail to init messages in %s PO file using msginit (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:238 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:223
#, php-format #, php-format
msgid "Fail to update messages in %s PO file using msgmerge (%s)." msgid "Fail to update messages in %s PO file using msgmerge (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:246 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:229
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:350 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:315
#, php-format #, php-format
msgid "PO file not found in lang '%s' directory, ignore it." msgid "PO file not found in lang '%s' directory, ignore it."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:255 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:236
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:398 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:356
#, php-format #, php-format
msgid "Fail to open root lang directory (%s)." msgid "Fail to open root lang directory (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:260 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:241
msgid "Update messages in translation PO lang files" msgid "Update messages in translation PO lang files"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:262 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:243
msgid "" msgid ""
"This command could be used to init/update PO files in lang/*/LC_MESSAGES " "This command could be used to init/update PO files in lang/*/LC_MESSAGES "
"directories." "directories."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:289 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:270
#, php-format #, php-format
msgid "Lang alias symlink found: %s -> %s" msgid "Lang alias symlink found: %s -> %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:299 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:277
#, php-format #, php-format
msgid "JSON catalog symlink for %s -> %s created (%s)" msgid "JSON catalog symlink for %s -> %s created (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:281
#, php-format #, php-format
msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" msgid "Fail to create JSON catalog symlink for %s -> %s (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:317 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:287
#, php-format #, php-format
msgid "JSON catalog symlink for %s -> %s already exist (%s)" msgid "JSON catalog symlink for %s -> %s already exist (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:325 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:293
#, php-format #, php-format
msgid "" msgid ""
"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)" "JSON catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:364 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:329
#, php-format #, php-format
msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:375 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:339
#, php-format #, php-format
msgid "Fail to open %s JSON catalog file in write mode (%s)." msgid "Fail to open %s JSON catalog file in write mode (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:382 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:344
#, php-format #, php-format
msgid "Fail to write %s JSON catalog in file (%s)." msgid "Fail to write %s JSON catalog in file (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:389 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:349
#, php-format #, php-format
msgid "%s JSON catalog writed (%s)." msgid "%s JSON catalog writed (%s)."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:404 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:362
msgid "" msgid ""
"Compile messages from existing translation PO lang files to corresponding MO " "Compile messages from existing translation PO lang files to corresponding MO "
"files and JSON catalogs" "files and JSON catalogs"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/translation-cli.php:409 #: /home/brenard/dev/eesyphp/includes/translation-cli.php:367
msgid "" msgid ""
"This command could be used to compile PO files in lang/*/LC_MESSAGES " "This command could be used to compile PO files in lang/*/LC_MESSAGES "
"directories to MO files and as JSON catalogs in public_html/translations." "directories to MO files and as JSON catalogs in public_html/translations."
@ -298,26 +298,64 @@ msgid ""
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:92 #: /home/brenard/dev/eesyphp/includes/url.php:92
msgid "Bad request"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:93
msgid "Invalid request."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:96
msgid "Authentication required"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:97
msgid "You have to be authenticated to access to this page."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:100
msgid "Access denied"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:101
msgid ""
"You do not have access to this application. If you think this is an error, "
"please contact support."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:104
msgid "Whoops ! Page not found" msgid "Whoops ! Page not found"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:117 #: /home/brenard/dev/eesyphp/includes/url.php:105
msgid "The requested page can not be found."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:113
msgid "Error"
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:114
msgid "An unknown error occurred. If problem persist, please contact support."
msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:159
msgid "" msgid ""
"Unable to determine the requested page. If the problem persists, please " "Unable to determine the requested page. If the problem persists, please "
"contact support." "contact support."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:270 #: /home/brenard/dev/eesyphp/includes/url.php:312
msgid "" msgid ""
"Unable to determine the requested page (loop detected). If the problem " "Unable to determine the requested page (loop detected). If the problem "
"persists, please contact support." "persists, please contact support."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:295 #: /home/brenard/dev/eesyphp/includes/url.php:337
msgid "This request cannot be processed." msgid "This request cannot be processed."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/url.php:313 #: /home/brenard/dev/eesyphp/includes/url.php:355
msgid "This request could not be processed correctly." msgid "This request could not be processed correctly."
msgstr "" msgstr ""
@ -331,181 +369,181 @@ msgstr ""
msgid "The CLI command '%s' handler is not callable !" msgid "The CLI command '%s' handler is not callable !"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:46 #: /home/brenard/dev/eesyphp/includes/cli.php:54
#, php-format #, php-format
msgid "Usage: %s [-h] [-qd] command\n" msgid "Usage: %s [-h] [-qd] command\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:47 #: /home/brenard/dev/eesyphp/includes/cli.php:55
msgid " -h Show this message\n" msgid " -h Show this message\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:48 #: /home/brenard/dev/eesyphp/includes/cli.php:56
msgid " -q / -d Quiet/Debug mode\n" msgid " -q / -d Quiet/Debug mode\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:49 #: /home/brenard/dev/eesyphp/includes/cli.php:57
msgid " --trace Trace mode (the most verbose)\n" msgid " --trace Trace mode (the most verbose)\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:50 #: /home/brenard/dev/eesyphp/includes/cli.php:58
msgid " command Command to run\n" msgid " command Command to run\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:52 #: /home/brenard/dev/eesyphp/includes/cli.php:60
msgid "Available commands:\n" msgid "Available commands:\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:94 #: /home/brenard/dev/eesyphp/includes/cli.php:102
msgid "Only one command could be executed !" msgid "Only one command could be executed !"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:119 #: /home/brenard/dev/eesyphp/includes/cli.php:127
#, php-format #, php-format
msgid "" msgid ""
"Invalid parameter \"%s\".\n" "Invalid parameter \"%s\".\n"
"Note: Command's parameter/argument must be place after the command." "Note: Command's parameter/argument must be place after the command."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:144 #: /home/brenard/dev/eesyphp/includes/cli.php:149
#, php-format #, php-format
msgid "An exception occured running command %s" msgid "An exception occured running command %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:150 #: /home/brenard/dev/eesyphp/includes/cli.php:155
#, php-format #, php-format
msgid "Item #%s:\n" msgid "Item #%s:\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:151 #: /home/brenard/dev/eesyphp/includes/cli.php:156
#, php-format #, php-format
msgid "ID: %s" msgid "ID: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:152 #: /home/brenard/dev/eesyphp/includes/cli.php:157
#, php-format #, php-format
msgid "Name: '%s'" msgid "Name: '%s'"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:153 #: /home/brenard/dev/eesyphp/includes/cli.php:158
#, php-format #, php-format
msgid "Date: %s" msgid "Date: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:155 #: /home/brenard/dev/eesyphp/includes/cli.php:160
#, php-format #, php-format
msgid "Description: %s" msgid "Description: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:156 #: /home/brenard/dev/eesyphp/includes/cli.php:161
msgid "Not set" msgid "Not set"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:158 #: /home/brenard/dev/eesyphp/includes/cli.php:163
#, php-format #, php-format
msgid "Status: %s" msgid "Status: %s"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:211 #: /home/brenard/dev/eesyphp/includes/cli.php:216
msgid "No item.\n" msgid "No item.\n"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:237 #: /home/brenard/dev/eesyphp/includes/cli.php:242
#, php-format #, php-format
msgid "%d item(s)" msgid "%d item(s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:243 #: /home/brenard/dev/eesyphp/includes/cli.php:248
msgid "List/search items" msgid "List/search items"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:244 #: /home/brenard/dev/eesyphp/includes/cli.php:249
msgid "[patterns]" msgid "[patterns]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:246 #: /home/brenard/dev/eesyphp/includes/cli.php:251
msgid "-o|--orderby Ordering list criterion. Possible values:" msgid "-o|--orderby Ordering list criterion. Possible values:"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:248 #: /home/brenard/dev/eesyphp/includes/cli.php:253
msgid "-r|--reverse Reverse order" msgid "-r|--reverse Reverse order"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:249 #: /home/brenard/dev/eesyphp/includes/cli.php:254
msgid "-s|--status Filter on status. Possible values:" msgid "-s|--status Filter on status. Possible values:"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:256 #: /home/brenard/dev/eesyphp/includes/cli.php:261
msgid "You must provide a valid ID." msgid "You must provide a valid ID."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:262 #: /home/brenard/dev/eesyphp/includes/cli.php:267
#: /home/brenard/dev/eesyphp/includes/cli.php:286 #: /home/brenard/dev/eesyphp/includes/cli.php:291
#, php-format #, php-format
msgid "Item #%s not found." msgid "Item #%s not found."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:270 #: /home/brenard/dev/eesyphp/includes/cli.php:275
msgid "Show item" msgid "Show item"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:271 #: /home/brenard/dev/eesyphp/includes/cli.php:276
msgid "[ID]" msgid "[ID]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:276 #: /home/brenard/dev/eesyphp/includes/cli.php:281
msgid "You must provide item ID." msgid "You must provide item ID."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:280 #: /home/brenard/dev/eesyphp/includes/cli.php:285
msgid "Invalid item ID" msgid "Invalid item ID"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:291 #: /home/brenard/dev/eesyphp/includes/cli.php:296
msgid "Are you sure you want to delete this item? Type 'yes' to continue: " msgid "Are you sure you want to delete this item? Type 'yes' to continue: "
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:295 #: /home/brenard/dev/eesyphp/includes/cli.php:300
msgid "User cancel" msgid "User cancel"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:301 #: /home/brenard/dev/eesyphp/includes/cli.php:306
#, php-format #, php-format
msgid "An error occured deleting item #%d." msgid "An error occured deleting item #%d."
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:308 #: /home/brenard/dev/eesyphp/includes/cli.php:313
msgid "Delete item" msgid "Delete item"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:309 #: /home/brenard/dev/eesyphp/includes/cli.php:314
msgid "[item ID]" msgid "[item ID]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:321 #: /home/brenard/dev/eesyphp/includes/cli.php:326
msgid "Export items (as CSV)" msgid "Export items (as CSV)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:322 #: /home/brenard/dev/eesyphp/includes/cli.php:327
msgid "[output file path]" msgid "[output file path]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:337 #: /home/brenard/dev/eesyphp/includes/cli.php:342
msgid "Restore items (from CSV)" msgid "Restore items (from CSV)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:338 #: /home/brenard/dev/eesyphp/includes/cli.php:343
msgid "[input file path]" msgid "[input file path]"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:411 #: /home/brenard/dev/eesyphp/includes/cli.php:412
msgid "Cron to handle item expiration" msgid "Cron to handle item expiration"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:414 #: /home/brenard/dev/eesyphp/includes/cli.php:415
msgid "-j/--just-try Just-try mode : do not really removed expired item(s)" msgid "-j/--just-try Just-try mode : do not really removed expired item(s)"
msgstr "" msgstr ""
#: /home/brenard/dev/eesyphp/includes/cli.php:415 #: /home/brenard/dev/eesyphp/includes/cli.php:416
msgid "-m/--max-age Item expiration limit (in days, optional)" msgid "-m/--max-age Item expiration limit (in days, optional)"
msgstr "" msgstr ""

View file

@ -107,10 +107,6 @@ msgid_plural "Elements %1 to %2 on %3"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: /home/brenard/dev/eesyphp/templates/error_404.tpl:3
msgid "The requested page can not be found."
msgstr ""
#: /home/brenard/dev/eesyphp/templates/show.tpl:14 #: /home/brenard/dev/eesyphp/templates/show.tpl:14
msgid "Creation date" msgid "Creation date"
msgstr "" msgstr ""

View file

@ -1,4 +0,0 @@
{extends file='empty.tpl'}
{block name="content"}
<p class="center">{t}The requested page can not be found.{/t}</p>
{/block}

4
templates/error_page.tpl Normal file
View file

@ -0,0 +1,4 @@
{extends file='empty.tpl'}
{block name="content"}
<p class="center">{$message}</p>
{/block}