diff --git a/includes/url.php b/includes/url.php index 1ff8c57..1168c16 100644 --- a/includes/url.php +++ b/includes/url.php @@ -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 handler - * - * @param $request UrlRequest|null The request (optional, default: null) - * - * @return void - **/ + /** + * Error 404 handler + * + * @param[in] $request UrlRequest|null The request (optional, default: null) + * + * @retval void + **/ function error_404($request=null) { - display_template('error_404.tpl', _("Whoops ! Page not found")); - exit(); + error_page($request, 404); } $_404_url_handler = 'error_404'; diff --git a/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.mo b/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.mo index 2fef8c7..8a923e5 100644 Binary files a/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.mo and b/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.mo differ diff --git a/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.po b/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.po index be9eb01..5b9e7e2 100644 --- a/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.po +++ b/lang/fr_FR.UTF8/LC_MESSAGES/DEFAULT.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "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" "Last-Translator: Benjamin Renard \n" "Language-Team: \n" @@ -17,8 +17,8 @@ msgid "Invalid element identifier." msgstr "Identifiant d'élément invalide." #: /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:245 +#: /home/brenard/dev/eesyphp/includes/url-public.php:222 +#: /home/brenard/dev/eesyphp/includes/url-public.php:246 #, php-format msgid "Item #% s not found." msgstr "L'élément #%s est introuvable." @@ -27,11 +27,11 @@ msgstr "L'élément #%s est introuvable." msgid "Smarty version not supported." 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." 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." msgstr "Une erreur est survenue en affichant cette page." @@ -56,7 +56,7 @@ msgstr "" msgid "Search" msgstr "Rechercher" -#: /home/brenard/dev/eesyphp/includes/url-public.php:129 +#: /home/brenard/dev/eesyphp/includes/url-public.php:128 #, php-format msgid "Element %s" msgstr "Élément %s" @@ -108,29 +108,29 @@ msgstr "" "Des erreurs empêchent l'enregistrement de cet élément. Merci de les corriger " "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 msgid "Element %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." 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." 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 msgid "The element '% s' has been archived successfully." 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." 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." 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." 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." 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/" "messages.pot." -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:167 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:165 #, php-format msgid "Compendium file %s not found." 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 msgid "POT file not found (%s). Please run extract_messages first." msgstr "" "Fichier POT introuvable (%s). Merci de lancer la commande extract_messages " "pour commencer." -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:194 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:333 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:184 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:301 #, php-format msgid "Lang directory '%s' found" msgstr "Dossier de langue '%s' trouvé" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:201 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:340 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:190 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 #, php-format msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." msgstr "" "Le dossier LC_MESSAGES est introuvable dans le dossier de langue '%s', on " "l'ignore." -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:218 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:205 #, php-format msgid "Fail to init messages in %s PO file using msginit (%s)." msgstr "" "Impossible d'initialiser les messages dans le fichier PO %s en utilisant " "msginit (%s)." -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:238 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:223 #, php-format msgid "Fail to update messages in %s PO file using msgmerge (%s)." msgstr "" "Impossible de mettre à jour les messages dans les fichiers PO %s en " "utilisant msgmerge (%s)." -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:246 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:350 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:229 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:315 #, php-format msgid "PO file not found in lang '%s' directory, ignore it." msgstr "" "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:398 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:236 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:356 #, php-format msgid "Fail to open root lang directory (%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" msgstr "" "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 "" "This command could be used to init/update PO files in lang/*/LC_MESSAGES " "directories." @@ -270,28 +270,28 @@ msgstr "" "Cette commande peut-être utilisée pour initialiser/mettre à jour les " "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 msgid "Lang alias symlink found: %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 msgid "JSON catalog symlink for %s -> %s created (%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 msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" msgstr "" "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 msgid "JSON catalog symlink for %s -> %s already exist (%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 msgid "" "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 " "vers %s (%s)" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:364 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:329 #, php-format msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." msgstr "" "Impossible de compiler les messages depuis le fichier PO %s en tant que " "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 msgid "Fail to open %s JSON catalog file in write mode (%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 msgid "Fail to write %s JSON catalog in file (%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 msgid "%s JSON catalog writed (%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 "" "Compile messages from existing translation PO lang files to corresponding MO " "files and JSON catalogs" @@ -329,7 +329,7 @@ msgstr "" "Compiler les messages depuis les fichiers PO de traduction existants vers " "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 "" "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." @@ -352,10 +352,52 @@ msgstr "" "Mail originalement destiné à %s." #: /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" 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 "" "Unable to determine the requested page. If the problem persists, please " "contact support." @@ -363,7 +405,7 @@ msgstr "" "Impossible de déterminer la page demandée. Si le problème persiste, merci de " "prendre contact avec le support." -#: /home/brenard/dev/eesyphp/includes/url.php:270 +#: /home/brenard/dev/eesyphp/includes/url.php:312 msgid "" "Unable to determine the requested page (loop detected). If the problem " "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 " "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." 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." 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 !" 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 msgid "Usage: %s [-h] [-qd] command\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" 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" 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" 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" 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" 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 !" 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 msgid "" "Invalid parameter \"%s\".\n" @@ -428,150 +470,150 @@ msgstr "" "Note : Les paramètres/arguments de la requête doivent être placés après " "celle-ci." -#: /home/brenard/dev/eesyphp/includes/cli.php:144 +#: /home/brenard/dev/eesyphp/includes/cli.php:149 #, php-format msgid "An exception occured running command %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 msgid "Item #%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 msgid "ID: %s" msgstr "ID : %s" -#: /home/brenard/dev/eesyphp/includes/cli.php:152 +#: /home/brenard/dev/eesyphp/includes/cli.php:157 #, php-format msgid "Name: '%s'" msgstr "Nom : %s" -#: /home/brenard/dev/eesyphp/includes/cli.php:153 +#: /home/brenard/dev/eesyphp/includes/cli.php:158 #, php-format msgid "Date: %s" msgstr "Date : %s" -#: /home/brenard/dev/eesyphp/includes/cli.php:155 +#: /home/brenard/dev/eesyphp/includes/cli.php:160 #, php-format msgid "Description: %s" msgstr "Description : %s" -#: /home/brenard/dev/eesyphp/includes/cli.php:156 +#: /home/brenard/dev/eesyphp/includes/cli.php:161 msgid "Not set" msgstr "Non-défini" -#: /home/brenard/dev/eesyphp/includes/cli.php:158 +#: /home/brenard/dev/eesyphp/includes/cli.php:163 #, php-format msgid "Status: %s" msgstr "Statut : %s" -#: /home/brenard/dev/eesyphp/includes/cli.php:211 +#: /home/brenard/dev/eesyphp/includes/cli.php:216 msgid "No item.\n" msgstr "Aucun élément.\n" -#: /home/brenard/dev/eesyphp/includes/cli.php:237 +#: /home/brenard/dev/eesyphp/includes/cli.php:242 #, php-format msgid "%d item(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" msgstr "Lister/rechercher les éléments" -#: /home/brenard/dev/eesyphp/includes/cli.php:244 +#: /home/brenard/dev/eesyphp/includes/cli.php:249 msgid "[patterns]" 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:" 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" 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:" 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." msgstr "Vous devez fournir un ID valide." -#: /home/brenard/dev/eesyphp/includes/cli.php:262 -#: /home/brenard/dev/eesyphp/includes/cli.php:286 +#: /home/brenard/dev/eesyphp/includes/cli.php:267 +#: /home/brenard/dev/eesyphp/includes/cli.php:291 #, php-format msgid "Item #%s not found." msgstr "Élément #%s introuvable." -#: /home/brenard/dev/eesyphp/includes/cli.php:270 +#: /home/brenard/dev/eesyphp/includes/cli.php:275 msgid "Show item" msgstr "Voir un élément" -#: /home/brenard/dev/eesyphp/includes/cli.php:271 +#: /home/brenard/dev/eesyphp/includes/cli.php:276 msgid "[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." 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" 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: " msgstr "" "Êtes-vous sûre de vouloir supprimer cet élément ? Taper 'yes' pour " "continuer : " -#: /home/brenard/dev/eesyphp/includes/cli.php:295 +#: /home/brenard/dev/eesyphp/includes/cli.php:300 msgid "User cancel" msgstr "L'utilisateur a annulé" -#: /home/brenard/dev/eesyphp/includes/cli.php:301 +#: /home/brenard/dev/eesyphp/includes/cli.php:306 #, php-format msgid "An error occured deleting item #%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" msgstr "Supprimer un élément" -#: /home/brenard/dev/eesyphp/includes/cli.php:309 +#: /home/brenard/dev/eesyphp/includes/cli.php:314 msgid "[item ID]" 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)" 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]" 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)" 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]" 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" 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)" msgstr "" "-j/--just-try Mode just-try : Ne supprime pas réellement les éléments " "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)" msgstr "" "-m/--max-age Limite d'expiration des éléments (en secondes, optionnel)" @@ -596,10 +638,6 @@ msgstr "Annuler" msgid "Validate" 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 msgid "OK" msgstr "OK" @@ -730,10 +768,6 @@ msgid_plural "Elements %1 to %2 on %3" msgstr[0] "%3 élément" 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 msgid "Creation date" msgstr "Date de création" diff --git a/lang/headers.pot b/lang/headers.pot index 9751f75..1a4f818 100644 --- a/lang/headers.pot +++ b/lang/headers.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" -"POT-Creation-Date: 2022-04-24 17:42+0200\n" -"PO-Revision-Date: 2022-04-24 17:42+0200\n" +"POT-Creation-Date: 2022-04-24 19:09+0200\n" +"PO-Revision-Date: 2022-04-24 19:09+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" \ No newline at end of file diff --git a/lang/messages.pot b/lang/messages.pot index 8af168d..f0c3430 100644 --- a/lang/messages.pot +++ b/lang/messages.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" -"POT-Creation-Date: 2022-04-24 17:42+0200\n" -"PO-Revision-Date: 2022-04-24 17:42+0200\n" +"POT-Creation-Date: 2022-04-24 19:09+0200\n" +"PO-Revision-Date: 2022-04-24 19:09+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -11,8 +11,8 @@ msgid "Invalid element identifier." msgstr "" #: /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:245 +#: /home/brenard/dev/eesyphp/includes/url-public.php:222 +#: /home/brenard/dev/eesyphp/includes/url-public.php:246 #, php-format msgid "Item #% s not found." msgstr "" @@ -21,11 +21,11 @@ msgstr "" msgid "Smarty version not supported." msgstr "" -#: /home/brenard/dev/eesyphp/includes/smarty.php:134 +#: /home/brenard/dev/eesyphp/includes/smarty.php:148 msgid "No template specified." 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." msgstr "" @@ -48,7 +48,7 @@ msgstr "" msgid "Search" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:129 +#: /home/brenard/dev/eesyphp/includes/url-public.php:128 #, php-format msgid "Element %s" msgstr "" @@ -96,29 +96,29 @@ msgid "" "before attempting to save your changes." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:210 +#: /home/brenard/dev/eesyphp/includes/url-public.php:211 #, php-format msgid "Element %s: Modification" 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." 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." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:230 +#: /home/brenard/dev/eesyphp/includes/url-public.php:232 #, php-format msgid "The element '% s' has been archived successfully." 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." 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." msgstr "" @@ -127,7 +127,7 @@ msgstr "" msgid "The element '% s' has been deleted successfully." 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." msgstr "" @@ -184,113 +184,113 @@ msgstr "" msgid "This command could be used to generate/update lang/messages.pot file." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:167 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:165 #, php-format msgid "Compendium file %s not found." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:179 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:172 #, php-format msgid "POT file not found (%s). Please run extract_messages first." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:194 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:333 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:184 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:301 #, php-format msgid "Lang directory '%s' found" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:201 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:340 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:190 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 #, php-format msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:218 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:205 #, php-format msgid "Fail to init messages in %s PO file using msginit (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:238 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:223 #, php-format msgid "Fail to update messages in %s PO file using msgmerge (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:246 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:350 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:229 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:315 #, php-format msgid "PO file not found in lang '%s' directory, ignore it." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:255 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:398 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:236 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:356 #, php-format msgid "Fail to open root lang directory (%s)." 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" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:262 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:243 msgid "" "This command could be used to init/update PO files in lang/*/LC_MESSAGES " "directories." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:289 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:270 #, php-format msgid "Lang alias symlink found: %s -> %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:299 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:277 #, php-format msgid "JSON catalog symlink for %s -> %s created (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:281 #, php-format msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:317 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:287 #, php-format msgid "JSON catalog symlink for %s -> %s already exist (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:325 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:293 #, php-format msgid "" "JSON catalog file for %s already exist, but it's not a symlink to %s (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:364 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:329 #, php-format msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:375 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:339 #, php-format msgid "Fail to open %s JSON catalog file in write mode (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:382 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:344 #, php-format msgid "Fail to write %s JSON catalog in file (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:389 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:349 #, php-format msgid "%s JSON catalog writed (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:404 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:362 msgid "" "Compile messages from existing translation PO lang files to corresponding MO " "files and JSON catalogs" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:409 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:367 msgid "" "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." @@ -306,26 +306,64 @@ msgid "" msgstr "" #: /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" 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 "" "Unable to determine the requested page. If the problem persists, please " "contact support." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url.php:270 +#: /home/brenard/dev/eesyphp/includes/url.php:312 msgid "" "Unable to determine the requested page (loop detected). If the problem " "persists, please contact support." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url.php:295 +#: /home/brenard/dev/eesyphp/includes/url.php:337 msgid "This request cannot be processed." 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." msgstr "" @@ -339,182 +377,182 @@ msgstr "" msgid "The CLI command '%s' handler is not callable !" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:46 +#: /home/brenard/dev/eesyphp/includes/cli.php:54 #, php-format msgid "Usage: %s [-h] [-qd] command\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:47 +#: /home/brenard/dev/eesyphp/includes/cli.php:55 msgid " -h Show this message\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:48 +#: /home/brenard/dev/eesyphp/includes/cli.php:56 msgid " -q / -d Quiet/Debug mode\n" 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" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:50 +#: /home/brenard/dev/eesyphp/includes/cli.php:58 msgid " command Command to run\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:52 +#: /home/brenard/dev/eesyphp/includes/cli.php:60 msgid "Available commands:\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:94 +#: /home/brenard/dev/eesyphp/includes/cli.php:102 msgid "Only one command could be executed !" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:119 +#: /home/brenard/dev/eesyphp/includes/cli.php:127 #, php-format msgid "" "Invalid parameter \"%s\".\n" "Note: Command's parameter/argument must be place after the command." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:144 +#: /home/brenard/dev/eesyphp/includes/cli.php:149 #, php-format msgid "An exception occured running command %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:150 +#: /home/brenard/dev/eesyphp/includes/cli.php:155 #, php-format msgid "Item #%s:\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:151 +#: /home/brenard/dev/eesyphp/includes/cli.php:156 #, php-format msgid "ID: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:152 +#: /home/brenard/dev/eesyphp/includes/cli.php:157 #, php-format msgid "Name: '%s'" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:153 +#: /home/brenard/dev/eesyphp/includes/cli.php:158 #, php-format msgid "Date: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:155 +#: /home/brenard/dev/eesyphp/includes/cli.php:160 #, php-format msgid "Description: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:156 +#: /home/brenard/dev/eesyphp/includes/cli.php:161 msgid "Not set" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:158 +#: /home/brenard/dev/eesyphp/includes/cli.php:163 #, php-format msgid "Status: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:211 +#: /home/brenard/dev/eesyphp/includes/cli.php:216 msgid "No item.\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:237 +#: /home/brenard/dev/eesyphp/includes/cli.php:242 #, php-format msgid "%d item(s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:243 +#: /home/brenard/dev/eesyphp/includes/cli.php:248 msgid "List/search items" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:244 +#: /home/brenard/dev/eesyphp/includes/cli.php:249 msgid "[patterns]" 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:" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:248 +#: /home/brenard/dev/eesyphp/includes/cli.php:253 msgid "-r|--reverse Reverse order" 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:" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:256 +#: /home/brenard/dev/eesyphp/includes/cli.php:261 msgid "You must provide a valid ID." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:262 -#: /home/brenard/dev/eesyphp/includes/cli.php:286 +#: /home/brenard/dev/eesyphp/includes/cli.php:267 +#: /home/brenard/dev/eesyphp/includes/cli.php:291 #, php-format msgid "Item #%s not found." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:270 +#: /home/brenard/dev/eesyphp/includes/cli.php:275 msgid "Show item" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:271 +#: /home/brenard/dev/eesyphp/includes/cli.php:276 msgid "[ID]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:276 +#: /home/brenard/dev/eesyphp/includes/cli.php:281 msgid "You must provide item ID." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:280 +#: /home/brenard/dev/eesyphp/includes/cli.php:285 msgid "Invalid item ID" 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: " msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:295 +#: /home/brenard/dev/eesyphp/includes/cli.php:300 msgid "User cancel" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:301 +#: /home/brenard/dev/eesyphp/includes/cli.php:306 #, php-format msgid "An error occured deleting item #%d." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:308 +#: /home/brenard/dev/eesyphp/includes/cli.php:313 msgid "Delete item" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:309 +#: /home/brenard/dev/eesyphp/includes/cli.php:314 msgid "[item ID]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:321 +#: /home/brenard/dev/eesyphp/includes/cli.php:326 msgid "Export items (as CSV)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:322 +#: /home/brenard/dev/eesyphp/includes/cli.php:327 msgid "[output file path]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:337 +#: /home/brenard/dev/eesyphp/includes/cli.php:342 msgid "Restore items (from CSV)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:338 +#: /home/brenard/dev/eesyphp/includes/cli.php:343 msgid "[input file path]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:411 +#: /home/brenard/dev/eesyphp/includes/cli.php:412 msgid "Cron to handle item expiration" 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)" 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)" msgstr "" @@ -538,10 +576,6 @@ msgstr "" msgid "Validate" msgstr "" -#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:44 -msgid "Error" -msgstr "" - #: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:52 msgid "OK" msgstr "" @@ -669,10 +703,6 @@ msgid_plural "Elements %1 to %2 on %3" msgstr[0] "" 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 msgid "Creation date" msgstr "" diff --git a/lang/php-messages.pot b/lang/php-messages.pot index d46e253..87b7471 100644 --- a/lang/php-messages.pot +++ b/lang/php-messages.pot @@ -3,8 +3,8 @@ msgid "Invalid element identifier." msgstr "" #: /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:245 +#: /home/brenard/dev/eesyphp/includes/url-public.php:222 +#: /home/brenard/dev/eesyphp/includes/url-public.php:246 #, php-format msgid "Item #% s not found." msgstr "" @@ -13,11 +13,11 @@ msgstr "" msgid "Smarty version not supported." msgstr "" -#: /home/brenard/dev/eesyphp/includes/smarty.php:134 +#: /home/brenard/dev/eesyphp/includes/smarty.php:148 msgid "No template specified." 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." msgstr "" @@ -40,7 +40,7 @@ msgstr "" msgid "Search" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:129 +#: /home/brenard/dev/eesyphp/includes/url-public.php:128 #, php-format msgid "Element %s" msgstr "" @@ -88,29 +88,29 @@ msgid "" "before attempting to save your changes." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:210 +#: /home/brenard/dev/eesyphp/includes/url-public.php:211 #, php-format msgid "Element %s: Modification" 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." 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." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:230 +#: /home/brenard/dev/eesyphp/includes/url-public.php:232 #, php-format msgid "The element '% s' has been archived successfully." 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." 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." msgstr "" @@ -119,7 +119,7 @@ msgstr "" msgid "The element '% s' has been deleted successfully." 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." msgstr "" @@ -176,113 +176,113 @@ msgstr "" msgid "This command could be used to generate/update lang/messages.pot file." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:167 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:165 #, php-format msgid "Compendium file %s not found." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:179 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:172 #, php-format msgid "POT file not found (%s). Please run extract_messages first." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:194 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:333 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:184 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:301 #, php-format msgid "Lang directory '%s' found" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:201 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:340 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:190 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 #, php-format msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:218 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:205 #, php-format msgid "Fail to init messages in %s PO file using msginit (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:238 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:223 #, php-format msgid "Fail to update messages in %s PO file using msgmerge (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:246 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:350 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:229 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:315 #, php-format msgid "PO file not found in lang '%s' directory, ignore it." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:255 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:398 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:236 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:356 #, php-format msgid "Fail to open root lang directory (%s)." 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" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:262 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:243 msgid "" "This command could be used to init/update PO files in lang/*/LC_MESSAGES " "directories." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:289 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:270 #, php-format msgid "Lang alias symlink found: %s -> %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:299 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:277 #, php-format msgid "JSON catalog symlink for %s -> %s created (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:281 #, php-format msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:317 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:287 #, php-format msgid "JSON catalog symlink for %s -> %s already exist (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:325 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:293 #, php-format msgid "" "JSON catalog file for %s already exist, but it's not a symlink to %s (%s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:364 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:329 #, php-format msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:375 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:339 #, php-format msgid "Fail to open %s JSON catalog file in write mode (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:382 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:344 #, php-format msgid "Fail to write %s JSON catalog in file (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:389 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:349 #, php-format msgid "%s JSON catalog writed (%s)." msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:404 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:362 msgid "" "Compile messages from existing translation PO lang files to corresponding MO " "files and JSON catalogs" msgstr "" -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:409 +#: /home/brenard/dev/eesyphp/includes/translation-cli.php:367 msgid "" "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." @@ -298,26 +298,64 @@ msgid "" msgstr "" #: /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" 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 "" "Unable to determine the requested page. If the problem persists, please " "contact support." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url.php:270 +#: /home/brenard/dev/eesyphp/includes/url.php:312 msgid "" "Unable to determine the requested page (loop detected). If the problem " "persists, please contact support." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url.php:295 +#: /home/brenard/dev/eesyphp/includes/url.php:337 msgid "This request cannot be processed." 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." msgstr "" @@ -331,181 +369,181 @@ msgstr "" msgid "The CLI command '%s' handler is not callable !" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:46 +#: /home/brenard/dev/eesyphp/includes/cli.php:54 #, php-format msgid "Usage: %s [-h] [-qd] command\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:47 +#: /home/brenard/dev/eesyphp/includes/cli.php:55 msgid " -h Show this message\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:48 +#: /home/brenard/dev/eesyphp/includes/cli.php:56 msgid " -q / -d Quiet/Debug mode\n" 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" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:50 +#: /home/brenard/dev/eesyphp/includes/cli.php:58 msgid " command Command to run\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:52 +#: /home/brenard/dev/eesyphp/includes/cli.php:60 msgid "Available commands:\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:94 +#: /home/brenard/dev/eesyphp/includes/cli.php:102 msgid "Only one command could be executed !" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:119 +#: /home/brenard/dev/eesyphp/includes/cli.php:127 #, php-format msgid "" "Invalid parameter \"%s\".\n" "Note: Command's parameter/argument must be place after the command." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:144 +#: /home/brenard/dev/eesyphp/includes/cli.php:149 #, php-format msgid "An exception occured running command %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:150 +#: /home/brenard/dev/eesyphp/includes/cli.php:155 #, php-format msgid "Item #%s:\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:151 +#: /home/brenard/dev/eesyphp/includes/cli.php:156 #, php-format msgid "ID: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:152 +#: /home/brenard/dev/eesyphp/includes/cli.php:157 #, php-format msgid "Name: '%s'" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:153 +#: /home/brenard/dev/eesyphp/includes/cli.php:158 #, php-format msgid "Date: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:155 +#: /home/brenard/dev/eesyphp/includes/cli.php:160 #, php-format msgid "Description: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:156 +#: /home/brenard/dev/eesyphp/includes/cli.php:161 msgid "Not set" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:158 +#: /home/brenard/dev/eesyphp/includes/cli.php:163 #, php-format msgid "Status: %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:211 +#: /home/brenard/dev/eesyphp/includes/cli.php:216 msgid "No item.\n" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:237 +#: /home/brenard/dev/eesyphp/includes/cli.php:242 #, php-format msgid "%d item(s)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:243 +#: /home/brenard/dev/eesyphp/includes/cli.php:248 msgid "List/search items" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:244 +#: /home/brenard/dev/eesyphp/includes/cli.php:249 msgid "[patterns]" 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:" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:248 +#: /home/brenard/dev/eesyphp/includes/cli.php:253 msgid "-r|--reverse Reverse order" 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:" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:256 +#: /home/brenard/dev/eesyphp/includes/cli.php:261 msgid "You must provide a valid ID." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:262 -#: /home/brenard/dev/eesyphp/includes/cli.php:286 +#: /home/brenard/dev/eesyphp/includes/cli.php:267 +#: /home/brenard/dev/eesyphp/includes/cli.php:291 #, php-format msgid "Item #%s not found." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:270 +#: /home/brenard/dev/eesyphp/includes/cli.php:275 msgid "Show item" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:271 +#: /home/brenard/dev/eesyphp/includes/cli.php:276 msgid "[ID]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:276 +#: /home/brenard/dev/eesyphp/includes/cli.php:281 msgid "You must provide item ID." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:280 +#: /home/brenard/dev/eesyphp/includes/cli.php:285 msgid "Invalid item ID" 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: " msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:295 +#: /home/brenard/dev/eesyphp/includes/cli.php:300 msgid "User cancel" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:301 +#: /home/brenard/dev/eesyphp/includes/cli.php:306 #, php-format msgid "An error occured deleting item #%d." msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:308 +#: /home/brenard/dev/eesyphp/includes/cli.php:313 msgid "Delete item" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:309 +#: /home/brenard/dev/eesyphp/includes/cli.php:314 msgid "[item ID]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:321 +#: /home/brenard/dev/eesyphp/includes/cli.php:326 msgid "Export items (as CSV)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:322 +#: /home/brenard/dev/eesyphp/includes/cli.php:327 msgid "[output file path]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:337 +#: /home/brenard/dev/eesyphp/includes/cli.php:342 msgid "Restore items (from CSV)" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:338 +#: /home/brenard/dev/eesyphp/includes/cli.php:343 msgid "[input file path]" msgstr "" -#: /home/brenard/dev/eesyphp/includes/cli.php:411 +#: /home/brenard/dev/eesyphp/includes/cli.php:412 msgid "Cron to handle item expiration" 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)" 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)" msgstr "" diff --git a/lang/templates-messages.pot b/lang/templates-messages.pot index 266ee98..8498c78 100644 --- a/lang/templates-messages.pot +++ b/lang/templates-messages.pot @@ -107,10 +107,6 @@ msgid_plural "Elements %1 to %2 on %3" msgstr[0] "" 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 msgid "Creation date" msgstr "" diff --git a/templates/error_404.tpl b/templates/error_404.tpl deleted file mode 100644 index 18cf762..0000000 --- a/templates/error_404.tpl +++ /dev/null @@ -1,4 +0,0 @@ -{extends file='empty.tpl'} -{block name="content"} -

{t}The requested page can not be found.{/t}

-{/block} diff --git a/templates/error_page.tpl b/templates/error_page.tpl new file mode 100644 index 0000000..aa0bafe --- /dev/null +++ b/templates/error_page.tpl @@ -0,0 +1,4 @@ +{extends file='empty.tpl'} +{block name="content"} +

{$message}

+{/block}