mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +01:00
LSlang :: generate_lang_file : fix detection of all messages
This commit is contained in:
parent
4828ac6b30
commit
dfc3f8e8a8
4 changed files with 116 additions and 65 deletions
|
@ -213,7 +213,7 @@ if (php_sapi_name() != "cli") return;
|
||||||
function cli_generate_lang_file($command_args) {
|
function cli_generate_lang_file($command_args) {
|
||||||
// Use global variables to share it with sub-functions
|
// Use global variables to share it with sub-functions
|
||||||
global $available_onlys, $available_withouts, $data, $translations, $interactive,
|
global $available_onlys, $available_withouts, $data, $translations, $interactive,
|
||||||
$copyoriginalvalue, $format, $curdir, $additionalfileformat, $copyoriginalvalue;
|
$copyoriginalvalue, $format, $curdir, $additionalfileformat, $copyoriginalvalue, $lang;
|
||||||
|
|
||||||
// Store existing translations
|
// Store existing translations
|
||||||
$translations = array();
|
$translations = array();
|
||||||
|
@ -662,6 +662,7 @@ function cli_generate_lang_file($command_args) {
|
||||||
|
|
||||||
if (!in_array('addons', $withouts) && (!$only || $only == 'addons')) {
|
if (!in_array('addons', $withouts) && (!$only || $only == 'addons')) {
|
||||||
function parse_addon_file($file) {
|
function parse_addon_file($file) {
|
||||||
|
debug("parse_addon_file($file)");
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach(file($file) as $line) {
|
foreach(file($file) as $line) {
|
||||||
$count++;
|
$count++;
|
||||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ msgstr ""
|
||||||
"Project-Id-Version: LdapSaisie\n"
|
"Project-Id-Version: LdapSaisie\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: \n"
|
"POT-Creation-Date: \n"
|
||||||
"PO-Revision-Date: 2020-05-06 17:36+0200\n"
|
"PO-Revision-Date: 2020-05-06 18:32+0200\n"
|
||||||
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
|
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
|
||||||
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
|
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
|
||||||
"org>\n"
|
"org>\n"
|
||||||
|
@ -485,6 +485,7 @@ msgstr "Attribut"
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_mailQuota.php:80
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_mailQuota.php:80
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:108
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:108
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_quota.php:80
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_quota.php:80
|
||||||
|
#: templates/default/LSformElement_mailQuota_field.tpl:17
|
||||||
msgid "Incorrect value"
|
msgid "Incorrect value"
|
||||||
msgstr "Valeur incorrecte"
|
msgstr "Valeur incorrecte"
|
||||||
|
|
||||||
|
@ -1774,6 +1775,7 @@ msgid "Actions"
|
||||||
msgstr "Actions"
|
msgstr "Actions"
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsearch.php:1086
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsearch.php:1086
|
||||||
|
#: templates/default/global_search.tpl:25
|
||||||
msgid "This search didn't get any result."
|
msgid "This search didn't get any result."
|
||||||
msgstr "Cette recherche n'a retournée aucun résultat."
|
msgstr "Cette recherche n'a retournée aucun résultat."
|
||||||
|
|
||||||
|
@ -2000,11 +2002,11 @@ msgstr "Rôle"
|
||||||
msgid "Entity type"
|
msgid "Entity type"
|
||||||
msgstr "Type d'entité"
|
msgstr "Type d'entité"
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:127
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:137
|
||||||
msgid "Only one command could be executed !"
|
msgid "Only one command could be executed !"
|
||||||
msgstr "Une seule commande peut-être exécutée !"
|
msgstr "Une seule commande peut-être exécutée !"
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:173
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:183
|
||||||
msgid ""
|
msgid ""
|
||||||
"Invalid parameter \"%{parameter}\".\n"
|
"Invalid parameter \"%{parameter}\".\n"
|
||||||
"Note: Command's parameter/argument must be place after the command."
|
"Note: Command's parameter/argument must be place after the command."
|
||||||
|
@ -2013,11 +2015,11 @@ msgstr ""
|
||||||
"Note: Les paramètres/arguments de la commande doivent être placés après "
|
"Note: Les paramètres/arguments de la commande doivent être placés après "
|
||||||
"celle-ci."
|
"celle-ci."
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:212
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:251
|
||||||
msgid "LScli : The CLI command '%{command}' already exists."
|
msgid "LScli : The CLI command '%{command}' already exists."
|
||||||
msgstr "LScli : La commande CLI '%{command}' existe déjà."
|
msgstr "LScli : La commande CLI '%{command}' existe déjà."
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:215
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:254
|
||||||
msgid "LScli : The CLI command '%{command}' handler is not callable."
|
msgid "LScli : The CLI command '%{command}' handler is not callable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"LScli : La fonction de prise en charge de la commande CLI '%{command}' n'est "
|
"LScli : La fonction de prise en charge de la commande CLI '%{command}' n'est "
|
||||||
|
@ -2028,6 +2030,7 @@ msgid "LSlog : Fail to load logging handler %{handler}."
|
||||||
msgstr "LSlog : Impossible de charger l'handler %{handler}."
|
msgstr "LSlog : Impossible de charger l'handler %{handler}."
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSerror.php:102
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSerror.php:102
|
||||||
|
#: templates/default/import.tpl:28
|
||||||
msgid "Errors"
|
msgid "Errors"
|
||||||
msgstr "Erreurs"
|
msgstr "Erreurs"
|
||||||
|
|
||||||
|
@ -2086,6 +2089,7 @@ msgstr "Réinitialiser"
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:466
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:466
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:666
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:666
|
||||||
|
#: templates/default/global_search.tpl:7
|
||||||
msgid "Search"
|
msgid "Search"
|
||||||
msgstr "Rechercher"
|
msgstr "Rechercher"
|
||||||
|
|
||||||
|
@ -2159,85 +2163,118 @@ msgstr "[pas une chaîne de caractères]"
|
||||||
msgid "Folder not found"
|
msgid "Folder not found"
|
||||||
msgstr "Dossier introuvable"
|
msgstr "Dossier introuvable"
|
||||||
|
|
||||||
|
#: templates/default/LSaccessRightsMatrixView.tpl:17
|
||||||
|
msgid "Attributes / Profiles"
|
||||||
|
msgstr "Attributs / Profils"
|
||||||
|
|
||||||
|
#: templates/default/error.tpl:22
|
||||||
|
msgid "Details"
|
||||||
|
msgstr "Détails"
|
||||||
|
|
||||||
|
#: templates/default/import.tpl:9
|
||||||
|
msgid "File"
|
||||||
|
msgstr "Fichier"
|
||||||
|
|
||||||
#: templates/default/import.tpl:12
|
#: templates/default/import.tpl:12
|
||||||
msgid "Format"
|
msgid "Format"
|
||||||
msgstr "Format"
|
msgstr "Format"
|
||||||
|
|
||||||
|
#: templates/default/top.tpl:36 templates/default/top.tpl:37
|
||||||
|
#: templates/default/global_search.tpl:10
|
||||||
|
msgid "Global search"
|
||||||
|
msgstr "Recherche globale"
|
||||||
|
|
||||||
|
#: templates/default/import.tpl:70
|
||||||
|
msgid "Imported objects"
|
||||||
|
msgstr "Objets importés"
|
||||||
|
|
||||||
|
#: templates/default/top.tpl:53 templates/default/recoverpassword.tpl:33
|
||||||
|
#: templates/default/login.tpl:31 templates/default/login.tpl:42
|
||||||
|
msgid "Language"
|
||||||
|
msgstr "Langue"
|
||||||
|
|
||||||
|
#: templates/default/LSaccessRightsMatrixView.tpl:19
|
||||||
|
#: templates/default/LSaccessRightsMatrixView.tpl:55
|
||||||
|
msgid "Legend:"
|
||||||
|
msgstr "Légende :"
|
||||||
|
|
||||||
#: templates/default/viewSearch.tpl:133
|
#: templates/default/viewSearch.tpl:133
|
||||||
msgid "Nb / page :"
|
msgid "Nb / page :"
|
||||||
msgstr "Nb / page :"
|
msgstr "Nb / page :"
|
||||||
|
|
||||||
#~ msgid "Language"
|
#: templates/default/import.tpl:75
|
||||||
#~ msgstr "Langue"
|
msgid "No imported object"
|
||||||
|
msgstr "Aucun objet importé"
|
||||||
|
|
||||||
#~ msgid "Attributes / Profiles"
|
#: templates/default/import.tpl:43
|
||||||
#~ msgstr "Attributs / Profils"
|
msgid "No value"
|
||||||
|
msgstr "Aucune valeur"
|
||||||
|
|
||||||
#~ msgid "Details"
|
#: templates/default/import.tpl:18
|
||||||
#~ msgstr "Détails"
|
msgid "Only validate data"
|
||||||
|
msgstr "Validation des données uniquement"
|
||||||
|
|
||||||
#~ msgid "File"
|
#: templates/default/LSaccessRightsMatrixView.tpl:20
|
||||||
#~ msgstr "Fichier"
|
#: templates/default/LSaccessRightsMatrixView.tpl:37
|
||||||
|
#: templates/default/LSaccessRightsMatrixView.tpl:72
|
||||||
|
msgid "R"
|
||||||
|
msgstr "L"
|
||||||
|
|
||||||
#~ msgid "Global search"
|
#: templates/default/LSaccessRightsMatrixView.tpl:22
|
||||||
#~ msgstr "Recherche globale"
|
#: templates/default/LSaccessRightsMatrixView.tpl:39
|
||||||
|
#: templates/default/LSaccessRightsMatrixView.tpl:74
|
||||||
|
msgid "R/W"
|
||||||
|
msgstr "L/É"
|
||||||
|
|
||||||
#~ msgid "Imported objects"
|
#: templates/default/LSaccessRightsMatrixView.tpl:20
|
||||||
#~ msgstr "Objets importés"
|
#: templates/default/LSaccessRightsMatrixView.tpl:56
|
||||||
|
msgid "Readable"
|
||||||
|
msgstr "Lecture"
|
||||||
|
|
||||||
#~ msgid "Legend:"
|
#: templates/default/LSaccessRightsMatrixView.tpl:22
|
||||||
#~ msgstr "Légende :"
|
#: templates/default/LSaccessRightsMatrixView.tpl:58
|
||||||
|
msgid "Readable / Writable"
|
||||||
|
msgstr "Lecture / Écriture"
|
||||||
|
|
||||||
#~ msgid "No imported object"
|
#: templates/default/top.tpl:63
|
||||||
#~ msgstr "Aucun objet importé"
|
msgid "Refresh my access rights"
|
||||||
|
msgstr "Rafraîchir mes droits d'accès"
|
||||||
|
|
||||||
#~ msgid "No value"
|
#: templates/default/LSaccessRightsMatrixView.tpl:53
|
||||||
#~ msgstr "Aucune valeur"
|
msgid "Relations / Profiles"
|
||||||
|
msgstr "Relations / Profils"
|
||||||
|
|
||||||
#~ msgid "Only validate data"
|
#: templates/default/import.tpl:26
|
||||||
#~ msgstr "Validation des données uniquement"
|
msgid "Result"
|
||||||
|
msgstr "Résultat"
|
||||||
|
|
||||||
#~ msgid "R"
|
#: templates/default/LSaccessRightsMatrixView.tpl:48
|
||||||
#~ msgstr "L"
|
msgid "Their relations with other objects"
|
||||||
|
msgstr "Leurs relations avec les autres objets"
|
||||||
|
|
||||||
#~ msgid "R/W"
|
#: templates/default/LSaccessRightsMatrixView.tpl:83
|
||||||
#~ msgstr "L/É"
|
msgid "This object type has no configured relation."
|
||||||
|
msgstr "Ce type d'objet n'a aucune relation de configurée."
|
||||||
|
|
||||||
#~ msgid "Readable"
|
#: templates/default/import.tpl:15
|
||||||
#~ msgstr "Lecture"
|
msgid "Update objects if exists"
|
||||||
|
msgstr "Mise à jour des objets existants"
|
||||||
|
|
||||||
#~ msgid "Readable / Writable"
|
#: templates/default/import.tpl:80
|
||||||
#~ msgstr "Lecture / Écriture"
|
msgid "Updated objects"
|
||||||
|
msgstr "Objets mis à jour"
|
||||||
|
|
||||||
#~ msgid "Refresh my access rights"
|
#: templates/default/import.tpl:21
|
||||||
#~ msgstr "Rafraîchir mes droits d'accès"
|
msgid "Valid"
|
||||||
|
msgstr "Valider"
|
||||||
|
|
||||||
#~ msgid "Relations / Profiles"
|
#: templates/default/import.tpl:16 templates/default/import.tpl:19
|
||||||
#~ msgstr "Relations / Profils"
|
msgid "no"
|
||||||
|
msgstr "non"
|
||||||
|
|
||||||
#~ msgid "Result"
|
#: templates/default/import.tpl:16 templates/default/import.tpl:19
|
||||||
#~ msgstr "Résultat"
|
msgid "yes"
|
||||||
|
msgstr "oui"
|
||||||
#~ msgid "Their relations with other objects"
|
|
||||||
#~ msgstr "Leurs relations avec les autres objets"
|
|
||||||
|
|
||||||
#~ msgid "This object type has no configured relation."
|
|
||||||
#~ msgstr "Ce type d'objet n'a aucune relation de configurée."
|
|
||||||
|
|
||||||
#~ msgid "Update objects if exists"
|
|
||||||
#~ msgstr "Mise à jour des objets existants"
|
|
||||||
|
|
||||||
#~ msgid "Updated objects"
|
|
||||||
#~ msgstr "Objets mis à jour"
|
|
||||||
|
|
||||||
#~ msgid "Valid"
|
|
||||||
#~ msgstr "Valider"
|
|
||||||
|
|
||||||
#~ msgid "no"
|
|
||||||
#~ msgstr "non"
|
|
||||||
|
|
||||||
#~ msgid "yes"
|
|
||||||
#~ msgstr "oui"
|
|
||||||
|
|
||||||
#~ msgid "Deleting"
|
#~ msgid "Deleting"
|
||||||
#~ msgstr "Suppression"
|
#~ msgstr "Suppression"
|
||||||
|
|
|
@ -1,3 +1,16 @@
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"POT-Creation-Date: \n"
|
||||||
|
"PO-Revision-Date: \n"
|
||||||
|
"Last-Translator: \n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Poedit 2.2.1\n"
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/addons/LSaddons.samba.php:27
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/addons/LSaddons.samba.php:27
|
||||||
msgid "SAMBA Support : Unable to load smbHash class."
|
msgid "SAMBA Support : Unable to load smbHash class."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1697,21 +1710,21 @@ msgstr ""
|
||||||
msgid "Entity type"
|
msgid "Entity type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:127
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:137
|
||||||
msgid "Only one command could be executed !"
|
msgid "Only one command could be executed !"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:173
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:183
|
||||||
msgid ""
|
msgid ""
|
||||||
"Invalid parameter \"%{parameter}\".\n"
|
"Invalid parameter \"%{parameter}\".\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/ldapsaisie_clean3/src/includes/class/class.LScli.php:212
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:251
|
||||||
msgid "LScli : The CLI command '%{command}' already exists."
|
msgid "LScli : The CLI command '%{command}' already exists."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:215
|
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:254
|
||||||
msgid "LScli : The CLI command '%{command}' handler is not callable."
|
msgid "LScli : The CLI command '%{command}' handler is not callable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue