I18n: fix CLI commands messages

This commit is contained in:
Benjamin Renard 2023-02-13 03:02:00 +01:00
parent 5bd930c838
commit 9213ae076f
10 changed files with 164 additions and 326 deletions

View file

@ -163,7 +163,8 @@ msgid "Extract messages that need to be translated"
msgstr ""
#: I18n.php:132
msgid "This command could be used to generate/update lang/messages.pot file."
msgid ""
"This command could be used to generate/update locales/messages.pot file."
msgstr ""
#: I18n.php:138
@ -172,20 +173,20 @@ msgstr ""
#: I18n.php:140
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 locales/*/LC_MESSAGES "
"directories."
msgstr ""
#: I18n.php:147
msgid ""
"Compile messages from existing translation PO lang files to corresponding MO "
"files and JSON catalogs"
"files and JS catalogs"
msgstr ""
#: I18n.php:152
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."
"This command could be used to compile PO files in locales/*/LC_MESSAGES "
"directories to MO files and as JS catalogs in locales directory."
msgstr ""
#: I18n.php:277
@ -274,23 +275,22 @@ msgstr ""
#: I18n.php:538
#, php-format
msgid "JSON catalog symlink for %s -> %s created (%s)"
msgid "JS catalog symlink for %s -> %s created (%s)"
msgstr ""
#: I18n.php:542
#, php-format
msgid "Fail to create JSON catalog symlink for %s -> %s (%s)"
msgid "Fail to create JS catalog symlink for %s -> %s (%s)"
msgstr ""
#: I18n.php:548
#, php-format
msgid "JSON catalog symlink for %s -> %s already exist (%s)"
msgid "JS catalog symlink for %s -> %s already exist (%s)"
msgstr ""
#: I18n.php:553
#, php-format
msgid ""
"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgid "JS catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgstr ""
#: I18n.php:588
@ -300,17 +300,17 @@ msgstr ""
#: I18n.php:598
#, php-format
msgid "Fail to open %s JSON catalog file in write mode (%s)."
msgid "Fail to open %s JS catalog file in write mode (%s)."
msgstr ""
#: I18n.php:603
#, php-format
msgid "Fail to write %s JSON catalog in file (%s)."
msgid "Fail to write %s JS catalog in file (%s)."
msgstr ""
#: I18n.php:608
#, php-format
msgid "%s JSON catalog writed (%s)."
msgid "%s JS catalog writed (%s)."
msgstr ""
#: App.php:122

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2023-02-13 02:32+0100\n"
"POT-Creation-Date: 2023-02-13 02:58+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
"Language-Team: \n"
@ -196,10 +196,11 @@ msgid "Extract messages that need to be translated"
msgstr "Extraire les messages devant être traduit"
#: I18n.php:132
msgid "This command could be used to generate/update lang/messages.pot file."
msgid ""
"This command could be used to generate/update locales/messages.pot file."
msgstr ""
"Cette commande peut-être utilisée pour générer/mettre à jour le fichier lang/"
"messages.pot."
"Cette commande peut-être utilisée pour générer/mettre à jour le fichier "
"locales/messages.pot."
#: I18n.php:138
msgid "Update messages in translation PO lang files"
@ -208,28 +209,27 @@ msgstr ""
#: I18n.php:140
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 locales/*/LC_MESSAGES "
"directories."
msgstr ""
"Cette commande peut-être utilisée pour initialiser/mettre à jour les "
"fichiers PO les dossiers lang/*/LC_MESSAGES."
"fichiers PO dans les dossiers locales/*/LC_MESSAGES."
#: I18n.php:147
msgid ""
"Compile messages from existing translation PO lang files to corresponding MO "
"files and JSON catalogs"
"files and JS catalogs"
msgstr ""
"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 JS correspondant"
#: I18n.php:152
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."
"This command could be used to compile PO files in locales/*/LC_MESSAGES "
"directories to MO files and as JS catalogs in locales directory."
msgstr ""
"Cette commande peut-être utilisée pour compiler les fichiers PO dans les "
"dossiers lang/*/LC_MESSAGES en fichiers MO and en tant que catalogues JSON "
"dans public_html/translations."
"dossiers locales/*/LC_MESSAGES and les catalogues JS dans le dossier locales."
#: I18n.php:277
msgid "Fail to list EesyPHP PHP files."
@ -336,26 +336,25 @@ msgstr "Lien symbolique d'alias de langue trouvé : %s -> %s"
#: I18n.php:538
#, php-format
msgid "JSON catalog symlink for %s -> %s created (%s)"
msgstr "Lien symbolique de catalogue JSON pour %s -> %s créé (%s)"
msgid "JS catalog symlink for %s -> %s created (%s)"
msgstr "Lien symbolique de catalogue JS pour %s -> %s créé (%s)"
#: I18n.php:542
#, php-format
msgid "Fail to create JSON catalog symlink for %s -> %s (%s)"
msgid "Fail to create JS catalog symlink for %s -> %s (%s)"
msgstr ""
"Impossible de créer le lien symbolique de catalogue JSON pour %s -> %s (%s)"
"Impossible de créer le lien symbolique de catalogue JS pour %s -> %s (%s)"
#: I18n.php:548
#, 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)"
msgid "JS catalog symlink for %s -> %s already exist (%s)"
msgstr "Le lien symbolique du catalogue JS pour %s -> %s existe déjà (%s)"
#: I18n.php:553
#, php-format
msgid ""
"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgid "JS catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgstr ""
"Le catalogue JSON pour %s existe, mais il ne s'agit par d'un lien symbolique "
"Le catalogue JS pour %s existe, mais il ne s'agit par d'un lien symbolique "
"vers %s (%s)"
#: I18n.php:588
@ -367,18 +366,18 @@ msgstr ""
#: I18n.php:598
#, 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)."
msgid "Fail to open %s JS catalog file in write mode (%s)."
msgstr "Impossible d'ouvrir le catalogue JS %s en mode écriture (%s)."
#: I18n.php:603
#, php-format
msgid "Fail to write %s JSON catalog in file (%s)."
msgstr "Impossible d'écrire le fichier du catalogue JSON %s (%s)."
msgid "Fail to write %s JS catalog in file (%s)."
msgstr "Impossible d'écrire le fichier du catalogue JS %s (%s)."
#: I18n.php:608
#, php-format
msgid "%s JSON catalog writed (%s)."
msgstr "Catalogue JSON %s créé (%s)."
msgid "%s JS catalog writed (%s)."
msgstr "Catalogue JS %s créé (%s)."
#: App.php:122
msgid "Hello world!"
@ -530,8 +529,8 @@ msgstr ""
msgid "Invalid element identifier."
msgstr "Identifiant d'élément invalide."
#: includes/url-helpers.php:13 includes/url-public.php:220
#: includes/url-public.php:242
#: includes/url-helpers.php:13 includes/url-public.php:236
#: includes/url-public.php:263
#, php-format
msgid "Item #% s not found."
msgstr "L'élément #%s est introuvable."
@ -552,11 +551,11 @@ msgstr "Refusé"
msgid "Archived"
msgstr "Archivé"
#: includes/url-public.php:33
#: includes/url-public.php:38
msgid "Any"
msgstr "Peu importe"
#: includes/url-public.php:91
#: includes/url-public.php:96
msgid ""
"An error occurred while listing the items. If the problem persists, please "
"contact support."
@ -564,25 +563,25 @@ msgstr ""
"Une erreur est survenue en listant les éléments. Si le problème persiste, "
"merci de prendre contact avec le support."
#: includes/url-public.php:106
#: includes/url-public.php:111
msgid "Search"
msgstr "Rechercher"
#: includes/url-public.php:128
#: includes/url-public.php:134
#, php-format
msgid "Element %s"
msgstr "Élément %s"
#: includes/url-public.php:142
#: includes/url-public.php:153
#, php-format
msgid "The element '% s' has been created."
msgstr "L'élément '%s' a bien été créé."
#: includes/url-public.php:146
#: includes/url-public.php:157
msgid "An error occurred while saving this item."
msgstr "Une erreur est survenue en enregistrant cet élément."
#: includes/url-public.php:153
#: includes/url-public.php:164
msgid ""
"There are errors preventing this item from being saved. Please correct them "
"before attempting to add this item."
@ -590,29 +589,29 @@ msgstr ""
"Des erreurs empêchent l'enregistrement de cet élément. Merci de les corriger "
"avant de tenter d'ajouter cet élément."
#: includes/url-public.php:160
#: includes/url-public.php:171
msgid "New"
msgstr "Nouveau"
#: includes/url-public.php:170
#: includes/url-public.php:181
msgid "You cannot edit this item."
msgstr "Vous ne pouvez pas modifier cet élément."
#: includes/url-public.php:183
#: includes/url-public.php:194
#, php-format
msgid "You have not made any changes to element '% s'."
msgstr "Vous n'avez apporté aucune modification à l'élément '%s'."
#: includes/url-public.php:187
#: includes/url-public.php:198
#, php-format
msgid "The element '% s' has been updated successfully."
msgstr "L'élément '%s' a bien été mise à jour."
#: includes/url-public.php:191
#: includes/url-public.php:202
msgid "An error occurred while updating this item."
msgstr "Une erreur est survenue en mettant à jour cet élément."
#: includes/url-public.php:199
#: includes/url-public.php:210
msgid ""
"There are errors preventing this item from being saved. Please correct them "
"before attempting to save your changes."
@ -620,38 +619,38 @@ msgstr ""
"Des erreurs empêchent l'enregistrement de cet élément. Merci de les corriger "
"avant de tenter d'enregistrer vos modifications."
#: includes/url-public.php:211
#: includes/url-public.php:222
#, php-format
msgid "Element %s: Modification"
msgstr "Élément %s : Modification"
#: includes/url-public.php:224
#: includes/url-public.php:240
msgid "This item is already archived."
msgstr "Cet élément est déjà archivé."
#: includes/url-public.php:227
#: includes/url-public.php:243
msgid "You cannot archive this item."
msgstr "Vous ne pouvez pas archiver cet élément."
#: includes/url-public.php:230
#: includes/url-public.php:246
#, php-format
msgid "The element '% s' has been archived successfully."
msgstr "L'élément '%s' a bien été archivé."
#: includes/url-public.php:233
#: includes/url-public.php:249
msgid "An error occurred while archiving this item."
msgstr "Une erreur est survenue en archivant cet élément."
#: includes/url-public.php:245
#: includes/url-public.php:266
msgid "You cannot delete this item."
msgstr "Vous ne pouvez pas supprimer cet élément."
#: includes/url-public.php:248
#: includes/url-public.php:269
#, php-format
msgid "The element '% s' has been deleted successfully."
msgstr "L'élément '%s' a bien été supprimé."
#: includes/url-public.php:251
#: includes/url-public.php:272
msgid "An error occurred while deleting this item."
msgstr "Une erreur est survenue en supprimant cet élément."
@ -827,6 +826,27 @@ msgstr ""
"fichier <em>homepage.tpl</em> pour l'écraser. Vous pouvez également écraser "
"le gestionnaire de l'URL racine de l'application web."
#~ msgid ""
#~ "This command could be used to generate/update lang/messages.pot file."
#~ msgstr ""
#~ "Cette commande peut-être utilisée pour générer/mettre à jour le fichier "
#~ "lang/messages.pot."
#~ msgid ""
#~ "This command could be used to init/update PO files in lang/*/LC_MESSAGES "
#~ "directories."
#~ msgstr ""
#~ "Cette commande peut-être utilisée pour initialiser/mettre à jour les "
#~ "fichiers PO les dossiers lang/*/LC_MESSAGES."
#~ msgid ""
#~ "This command could be used to compile PO files in lang/*/LC_MESSAGES "
#~ "directories to MO files and as JS catalogs in public_html/translations."
#~ msgstr ""
#~ "Cette commande peut-être utilisée pour compiler les fichiers PO dans les "
#~ "dossiers lang/*/LC_MESSAGES en fichiers MO and en tant que catalogues JS "
#~ "dans public_html/translations."
#, php-format
#~ msgid "Fail to list JS files in '%s' static directory."
#~ msgstr ""

View file

@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2023-02-13 02:32+0100\n"
"PO-Revision-Date: 2023-02-13 02:32+0100\n"
"POT-Creation-Date: 2023-02-13 03:00+0100\n"
"PO-Revision-Date: 2023-02-13 03:00+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"

View file

@ -1,48 +0,0 @@
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:4
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:171
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:200
msgid "Confirmation"
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:5
msgid "Do you confirm?"
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:11
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:108
msgid "Cancel"
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:17
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:114
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 ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:91
msgid "Question"
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:92
msgid "Please enter your answer below:"
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:143
msgid "Please wait"
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:144
msgid "Please wait while your request is being processed."
msgstr ""
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:172
#: /home/brenard/dev/eesyphp/public_html/js/myconfirm.js:201
msgid "Are you sure?"
msgstr ""

View file

@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2023-02-13 02:32+0100\n"
"PO-Revision-Date: 2023-02-13 02:32+0100\n"
"POT-Creation-Date: 2023-02-13 03:00+0100\n"
"PO-Revision-Date: 2023-02-13 03:00+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@ -171,7 +171,8 @@ msgid "Extract messages that need to be translated"
msgstr ""
#: I18n.php:132
msgid "This command could be used to generate/update lang/messages.pot file."
msgid ""
"This command could be used to generate/update locales/messages.pot file."
msgstr ""
#: I18n.php:138
@ -180,20 +181,20 @@ msgstr ""
#: I18n.php:140
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 locales/*/LC_MESSAGES "
"directories."
msgstr ""
#: I18n.php:147
msgid ""
"Compile messages from existing translation PO lang files to corresponding MO "
"files and JSON catalogs"
"files and JS catalogs"
msgstr ""
#: I18n.php:152
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."
"This command could be used to compile PO files in locales/*/LC_MESSAGES "
"directories to MO files and as JS catalogs in locales directory."
msgstr ""
#: I18n.php:277
@ -282,23 +283,22 @@ msgstr ""
#: I18n.php:538
#, php-format
msgid "JSON catalog symlink for %s -> %s created (%s)"
msgid "JS catalog symlink for %s -> %s created (%s)"
msgstr ""
#: I18n.php:542
#, php-format
msgid "Fail to create JSON catalog symlink for %s -> %s (%s)"
msgid "Fail to create JS catalog symlink for %s -> %s (%s)"
msgstr ""
#: I18n.php:548
#, php-format
msgid "JSON catalog symlink for %s -> %s already exist (%s)"
msgid "JS catalog symlink for %s -> %s already exist (%s)"
msgstr ""
#: I18n.php:553
#, php-format
msgid ""
"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgid "JS catalog file for %s already exist, but it's not a symlink to %s (%s)"
msgstr ""
#: I18n.php:588
@ -308,17 +308,17 @@ msgstr ""
#: I18n.php:598
#, php-format
msgid "Fail to open %s JSON catalog file in write mode (%s)."
msgid "Fail to open %s JS catalog file in write mode (%s)."
msgstr ""
#: I18n.php:603
#, php-format
msgid "Fail to write %s JSON catalog in file (%s)."
msgid "Fail to write %s JS catalog in file (%s)."
msgstr ""
#: I18n.php:608
#, php-format
msgid "%s JSON catalog writed (%s)."
msgid "%s JS catalog writed (%s)."
msgstr ""
#: App.php:122
@ -466,8 +466,8 @@ msgstr ""
msgid "Invalid element identifier."
msgstr ""
#: includes/url-helpers.php:13 includes/url-public.php:220
#: includes/url-public.php:242
#: includes/url-helpers.php:13 includes/url-public.php:236
#: includes/url-public.php:263
#, php-format
msgid "Item #% s not found."
msgstr ""
@ -488,100 +488,100 @@ msgstr ""
msgid "Archived"
msgstr ""
#: includes/url-public.php:33
#: includes/url-public.php:38
msgid "Any"
msgstr ""
#: includes/url-public.php:91
#: includes/url-public.php:96
msgid ""
"An error occurred while listing the items. If the problem persists, please "
"contact support."
msgstr ""
#: includes/url-public.php:106
#: includes/url-public.php:111
msgid "Search"
msgstr ""
#: includes/url-public.php:128
#: includes/url-public.php:134
#, php-format
msgid "Element %s"
msgstr ""
#: includes/url-public.php:142
#: includes/url-public.php:153
#, php-format
msgid "The element '% s' has been created."
msgstr ""
#: includes/url-public.php:146
#: includes/url-public.php:157
msgid "An error occurred while saving this item."
msgstr ""
#: includes/url-public.php:153
#: includes/url-public.php:164
msgid ""
"There are errors preventing this item from being saved. Please correct them "
"before attempting to add this item."
msgstr ""
#: includes/url-public.php:160
#: includes/url-public.php:171
msgid "New"
msgstr ""
#: includes/url-public.php:170
#: includes/url-public.php:181
msgid "You cannot edit this item."
msgstr ""
#: includes/url-public.php:183
#: includes/url-public.php:194
#, php-format
msgid "You have not made any changes to element '% s'."
msgstr ""
#: includes/url-public.php:187
#: includes/url-public.php:198
#, php-format
msgid "The element '% s' has been updated successfully."
msgstr ""
#: includes/url-public.php:191
#: includes/url-public.php:202
msgid "An error occurred while updating this item."
msgstr ""
#: includes/url-public.php:199
#: includes/url-public.php:210
msgid ""
"There are errors preventing this item from being saved. Please correct them "
"before attempting to save your changes."
msgstr ""
#: includes/url-public.php:211
#: includes/url-public.php:222
#, php-format
msgid "Element %s: Modification"
msgstr ""
#: includes/url-public.php:224
#: includes/url-public.php:240
msgid "This item is already archived."
msgstr ""
#: includes/url-public.php:227
#: includes/url-public.php:243
msgid "You cannot archive this item."
msgstr ""
#: includes/url-public.php:230
#: includes/url-public.php:246
#, php-format
msgid "The element '% s' has been archived successfully."
msgstr ""
#: includes/url-public.php:233
#: includes/url-public.php:249
msgid "An error occurred while archiving this item."
msgstr ""
#: includes/url-public.php:245
#: includes/url-public.php:266
msgid "You cannot delete this item."
msgstr ""
#: includes/url-public.php:248
#: includes/url-public.php:269
#, php-format
msgid "The element '% s' has been deleted successfully."
msgstr ""
#: includes/url-public.php:251
#: includes/url-public.php:272
msgid "An error occurred while deleting this item."
msgstr ""

View file

@ -139,8 +139,8 @@ msgstr ""
msgid "Invalid element identifier."
msgstr ""
#: includes/url-helpers.php:13 includes/url-public.php:220
#: includes/url-public.php:242
#: includes/url-helpers.php:13 includes/url-public.php:236
#: includes/url-public.php:263
#, php-format
msgid "Item #% s not found."
msgstr ""
@ -161,99 +161,99 @@ msgstr ""
msgid "Archived"
msgstr ""
#: includes/url-public.php:33
#: includes/url-public.php:38
msgid "Any"
msgstr ""
#: includes/url-public.php:91
#: includes/url-public.php:96
msgid ""
"An error occurred while listing the items. If the problem persists, please "
"contact support."
msgstr ""
#: includes/url-public.php:106
#: includes/url-public.php:111
msgid "Search"
msgstr ""
#: includes/url-public.php:128
#: includes/url-public.php:134
#, php-format
msgid "Element %s"
msgstr ""
#: includes/url-public.php:142
#: includes/url-public.php:153
#, php-format
msgid "The element '% s' has been created."
msgstr ""
#: includes/url-public.php:146
#: includes/url-public.php:157
msgid "An error occurred while saving this item."
msgstr ""
#: includes/url-public.php:153
#: includes/url-public.php:164
msgid ""
"There are errors preventing this item from being saved. Please correct them "
"before attempting to add this item."
msgstr ""
#: includes/url-public.php:160
#: includes/url-public.php:171
msgid "New"
msgstr ""
#: includes/url-public.php:170
#: includes/url-public.php:181
msgid "You cannot edit this item."
msgstr ""
#: includes/url-public.php:183
#: includes/url-public.php:194
#, php-format
msgid "You have not made any changes to element '% s'."
msgstr ""
#: includes/url-public.php:187
#: includes/url-public.php:198
#, php-format
msgid "The element '% s' has been updated successfully."
msgstr ""
#: includes/url-public.php:191
#: includes/url-public.php:202
msgid "An error occurred while updating this item."
msgstr ""
#: includes/url-public.php:199
#: includes/url-public.php:210
msgid ""
"There are errors preventing this item from being saved. Please correct them "
"before attempting to save your changes."
msgstr ""
#: includes/url-public.php:211
#: includes/url-public.php:222
#, php-format
msgid "Element %s: Modification"
msgstr ""
#: includes/url-public.php:224
#: includes/url-public.php:240
msgid "This item is already archived."
msgstr ""
#: includes/url-public.php:227
#: includes/url-public.php:243
msgid "You cannot archive this item."
msgstr ""
#: includes/url-public.php:230
#: includes/url-public.php:246
#, php-format
msgid "The element '% s' has been archived successfully."
msgstr ""
#: includes/url-public.php:233
#: includes/url-public.php:249
msgid "An error occurred while archiving this item."
msgstr ""
#: includes/url-public.php:245
#: includes/url-public.php:266
msgid "You cannot delete this item."
msgstr ""
#: includes/url-public.php:248
#: includes/url-public.php:269
#, php-format
msgid "The element '% s' has been deleted successfully."
msgstr ""
#: includes/url-public.php:251
#: includes/url-public.php:272
msgid "An error occurred while deleting this item."
msgstr ""

View file

@ -1,134 +0,0 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8\n"
#: /home/brenard/dev/eesyphp/templates/form.tpl:7
#: /home/brenard/dev/eesyphp/templates/search.tpl:36
#: /home/brenard/dev/eesyphp/templates/show.tpl:5
msgid "Name"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/form.tpl:15
#: /home/brenard/dev/eesyphp/templates/search.tpl:11
#: /home/brenard/dev/eesyphp/templates/show.tpl:23
msgid "Status"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/form.tpl:25
#: /home/brenard/dev/eesyphp/templates/show.tpl:32
msgid "Description"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/form.tpl:33
#: /home/brenard/dev/eesyphp/templates/fatal_error.tpl:9
#: /home/brenard/dev/eesyphp/templates/show.tpl:42
msgid "Back"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/form.tpl:36
msgid "Save"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/form.tpl:38
#: /home/brenard/dev/eesyphp/templates/search.tpl:28
msgid "Add"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/fatal_error.tpl:5
msgid ""
"A fatal error has occurred and it is preventing this application from "
"working properly. Please try again later or contact support."
msgstr ""
#: /home/brenard/dev/eesyphp/templates/fatal_error.tpl:7
msgid "Error: %1"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:8
msgid "Pattern"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:16
msgid "Nb by page"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:22
msgid "Search"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:23
msgid "Reset"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:35
msgid "Date"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:37
msgid "Actions"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:47
#: /home/brenard/dev/eesyphp/templates/search.tpl:50
msgid "View"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:51
#: /home/brenard/dev/eesyphp/templates/show.tpl:43
msgid "Modify"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:52
#: /home/brenard/dev/eesyphp/templates/show.tpl:44
msgid "Are you sure you want to archive this item?"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:52
#: /home/brenard/dev/eesyphp/templates/show.tpl:44
msgid "Archive"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:53
#: /home/brenard/dev/eesyphp/templates/show.tpl:45
msgid "Are you sure you want to delete this item?"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:53
#: /home/brenard/dev/eesyphp/templates/show.tpl:45
msgid "Delete"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:59
msgid "No item found."
msgstr ""
#: /home/brenard/dev/eesyphp/templates/search.tpl:68
msgid "%3 element"
msgid_plural "Elements %1 to %2 on %3"
msgstr[0] ""
msgstr[1] ""
#: /home/brenard/dev/eesyphp/templates/show.tpl:14
msgid "Creation date"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/show.tpl:35
msgid "Unspecified."
msgstr ""
#: /home/brenard/dev/eesyphp/templates/homepage.tpl:5
msgid "Hello, world!"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/homepage.tpl:6
msgid ""
"This is a simple app to show the different possibilities and basic "
"functionality."
msgstr ""
#: /home/brenard/dev/eesyphp/templates/homepage.tpl:8
msgid "This app contains some demo pages:"
msgstr ""
#: /home/brenard/dev/eesyphp/templates/homepage.tpl:9
msgid "Search page"
msgstr ""

View file

@ -129,7 +129,7 @@ class I18n {
array('\\EesyPHP\\I18n', 'cli_extract_messages'),
self :: ___("Extract messages that need to be translated"),
null,
self :: ___("This command could be used to generate/update lang/messages.pot file.")
self :: ___("This command could be used to generate/update locales/messages.pot file.")
);
Cli :: add_command(
@ -137,7 +137,7 @@ class I18n {
array('\\EesyPHP\\I18n', 'cli_update_messages'),
self :: ___("Update messages in translation PO lang files"),
null,
self :: ___("This command could be used to init/update PO files in lang/*/LC_MESSAGES directories.")
self :: ___("This command could be used to init/update PO files in locales/*/LC_MESSAGES directories.")
);
Cli :: add_command(
@ -145,12 +145,12 @@ class I18n {
array('\\EesyPHP\\I18n', 'cli_compile_messages'),
self :: ___(
"Compile messages from existing translation PO lang files to ".
"corresponding MO files and JSON catalogs"
"corresponding MO files and JS catalogs"
),
null,
self :: ___(
"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."
"This command could be used to compile PO files in locales/*/LC_MESSAGES ".
"directories to MO files and as JS catalogs in locales directory."
)
);
}
@ -508,7 +508,7 @@ class I18n {
/**
* Command to compile messages from existing translation PO lang files
* to corresponding MO files and as JSON catalog (for translation in JS).
* to corresponding MO files and as JS catalog (for translation in JS).
*
* @param array $command_args The command arguments
* @return bool
@ -530,27 +530,27 @@ class I18n {
$lang = $file;
Log :: debug(_("Lang alias symlink found: %s -> %s"), $lang, $real_lang_dir);
// Create JSON catalog symlink (if not exists)
// Create JS catalog symlink (if not exists)
$js_link = self :: $root_path."/$lang.js";
$link_target = "$real_lang_dir.js";
if (!file_exists($js_link)) {
if (symlink($link_target, $js_link)) {
Log :: info(_("JSON catalog symlink for %s -> %s created (%s)"),
Log :: info(_("JS catalog symlink for %s -> %s created (%s)"),
$lang, $real_lang_dir, $js_link);
}
else {
Log :: error(_("Fail to create JSON catalog symlink for %s -> %s (%s)"),
Log :: error(_("Fail to create JS catalog symlink for %s -> %s (%s)"),
$lang, $real_lang_dir, $js_link);
$error = True;
}
}
elseif (readlink($js_link) == $link_target) {
Log :: debug(_("JSON catalog symlink for %s -> %s already exist (%s)"),
Log :: debug(_("JS catalog symlink for %s -> %s already exist (%s)"),
$lang, $real_lang_dir, $js_link);
}
else {
Log :: warning(
_("JSON catalog file for %s already exist, but it's not a symlink to %s (%s)"),
_("JS catalog file for %s already exist, but it's not a symlink to %s (%s)"),
$lang, $real_lang_dir, $js_link
);
$error = True;
@ -591,21 +591,21 @@ class I18n {
$error = True;
}
// Compile messages from PO file to JSON catalog file
$json_catalog = self :: po2json($lang, $po_file);
// Compile messages from PO file to JS catalog file
$js_catalog = self :: po2json($lang, $po_file);
$js_file = self :: $root_path."/$lang.js";
if(!$fd = fopen($js_file, 'w')) {
Log :: error(_("Fail to open %s JSON catalog file in write mode (%s)."),
Log :: error(_("Fail to open %s JS catalog file in write mode (%s)."),
$lang, $js_file);
$error = True;
}
elseif (fwrite($fd, sprintf("translations_data = %s;", $json_catalog)) === false) {
Log :: error(_("Fail to write %s JSON catalog in file (%s)."),
elseif (fwrite($fd, sprintf("translations_data = %s;", $js_catalog)) === false) {
Log :: error(_("Fail to write %s JS catalog in file (%s)."),
$lang, $js_file);
$error = True;
}
else {
Log :: info(_("%s JSON catalog writed (%s)."), $lang, $js_file);
Log :: info(_("%s JS catalog writed (%s)."), $lang, $js_file);
}
}
closedir($dh);