LSformElement :: boolean: fix translation of default labels

This commit is contained in:
Benjamin Renard 2020-08-04 10:30:49 +02:00
parent f9ebf06a63
commit 669d679464
4 changed files with 25 additions and 15 deletions

View file

@ -57,8 +57,8 @@ class LSformElement_boolean extends LSformElement {
$return['html'] = $this -> fetchTemplate( $return['html'] = $this -> fetchTemplate(
NULL, NULL,
array( array(
'yesTxt' => __($this -> getParam('html_options.true_label', 'Yes')), 'yesTxt' => __($this -> getParam('html_options.true_label', ___('Yes'))),
'noTxt' => __($this -> getParam('html_options.false_label', 'No')), 'noTxt' => __($this -> getParam('html_options.false_label', ___('No'))),
) )
); );
return $return; return $return;

View file

@ -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-07-07 16:02+0200\n" "PO-Revision-Date: 2020-08-04 10:28+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"
@ -1694,6 +1694,14 @@ msgstr "Envoyer un mail depuis l'interface."
msgid "Reset the choice." msgid "Reset the choice."
msgstr "Réinitialiser le choix." msgstr "Réinitialiser le choix."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_boolean.php:60
msgid "Yes"
msgstr "Oui"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_boolean.php:61
msgid "No"
msgstr "Non"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_rss.php:50 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_rss.php:50
msgid "Display RSS stack." msgid "Display RSS stack."
msgstr "Afficher la file RSS." msgstr "Afficher la file RSS."
@ -2028,7 +2036,7 @@ 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:202 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:200
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."
@ -2037,11 +2045,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:700 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:696
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:703 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:699
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 "
@ -2400,12 +2408,6 @@ msgstr "oui"
#~ msgstr "" #~ msgstr ""
#~ "Support SSH : Impossible de se connecter au serveur SSH (%{host}:%{port})." #~ "Support SSH : Impossible de se connecter au serveur SSH (%{host}:%{port})."
#~ msgid "Yes"
#~ msgstr "Oui"
#~ msgid "No"
#~ msgstr "Non"
#, fuzzy #, fuzzy
#~ msgid "delete" #~ msgid "delete"
#~ msgstr "Supprimer" #~ msgstr "Supprimer"

View file

@ -1412,6 +1412,14 @@ msgstr ""
msgid "Reset the choice." msgid "Reset the choice."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_boolean.php:60
msgid "Yes"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_boolean.php:61
msgid "No"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_rss.php:50 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_rss.php:50
msgid "Display RSS stack." msgid "Display RSS stack."
msgstr "" msgstr ""
@ -1708,17 +1716,17 @@ msgstr ""
msgid "Entity type" msgid "Entity type"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:202 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:200
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:700 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:696
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:703 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LScli.php:699
msgid "LScli : The CLI command '%{command}' handler is not callable." msgid "LScli : The CLI command '%{command}' handler is not callable."
msgstr "" msgstr ""