fix: translation for property is now in rougail

This commit is contained in:
egarette@silique.fr 2025-10-05 21:28:58 +02:00
parent 856811805c
commit 622764bf53
4 changed files with 69 additions and 115 deletions

View file

@ -72,26 +72,6 @@ msgstr "Valeurs modifiées pour documenter les familles leader ou dynamique"
msgid "Generate document in format" msgid "Generate document in format"
msgstr "Générer le document au format" msgstr "Générer le document au format"
#: src/rougail/output_doc/doc.py:89
msgid "mandatory"
msgstr "obligatoire"
#: src/rougail/output_doc/doc.py:90
msgid "hidden"
msgstr "cachée"
#: src/rougail/output_doc/doc.py:91
msgid "disabled"
msgstr "désactivé"
#: src/rougail/output_doc/doc.py:92
msgid "unique"
msgstr "unique"
#: src/rougail/output_doc/doc.py:93
msgid "auto modified"
msgstr "auto modifiée"
#: src/rougail/output_doc/doc.py:332 #: src/rougail/output_doc/doc.py:332
msgid "This family contains lists of variable blocks." msgid "This family contains lists of variable blocks."
msgstr "Cette famille contient des listes de bloc de variable." msgstr "Cette famille contient des listes de bloc de variable."

View file

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-10-02 08:31+0200\n" "POT-Creation-Date: 2025-10-04 16:05+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -71,134 +71,114 @@ msgstr ""
msgid "Generate document in format" msgid "Generate document in format"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:89 #: src/rougail/output_doc/doc.py:334
msgid "mandatory"
msgstr ""
#: src/rougail/output_doc/doc.py:90
msgid "hidden"
msgstr ""
#: src/rougail/output_doc/doc.py:91
msgid "disabled"
msgstr ""
#: src/rougail/output_doc/doc.py:92
msgid "unique"
msgstr ""
#: src/rougail/output_doc/doc.py:93
msgid "auto modified"
msgstr ""
#: src/rougail/output_doc/doc.py:332
msgid "This family contains lists of variable blocks." msgid "This family contains lists of variable blocks."
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:340 #: src/rougail/output_doc/doc.py:342
msgid "This family builds families dynamically." msgid "This family builds families dynamically."
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:354 #: src/rougail/output_doc/doc.py:356
msgid "Default" msgid "Default"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:372 #: src/rougail/output_doc/doc.py:375
msgid "multiple" msgid "multiple"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:380 #: src/rougail/output_doc/doc.py:383
msgid "Example" msgid "Example"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:383 #: src/rougail/output_doc/doc.py:386
msgid "Examples" msgid "Examples"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:401 #: src/rougail/output_doc/doc.py:408
msgid "No attribute \"description\" for \"{0}\" in {1}" msgid "No attribute \"description\" for \"{0}\" in {1}"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:524 #: src/rougail/output_doc/doc.py:534
msgid "text based with regular expressions \"{0}\"" msgid "text based with regular expressions \"{0}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:530 #: src/rougail/output_doc/doc.py:540
msgid "Validator" msgid "Validator"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:533 #: src/rougail/output_doc/doc.py:543
msgid "Validators" msgid "Validators"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:546 #: src/rougail/output_doc/doc.py:556
msgid "(default)" msgid "(default)"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:551 #: src/rougail/output_doc/doc.py:561
msgid "Choices" msgid "Choices"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:640 #: src/rougail/output_doc/doc.py:664
msgid "depends on a calculation"
msgstr ""
#: src/rougail/output_doc/doc.py:646
msgid "\"{0}\" is a calculation for {1} but has no description in {2}"
msgstr ""
#: src/rougail/output_doc/doc.py:669 src/rougail/output_doc/doc.py:767
msgid "depends on an undocumented variable"
msgstr ""
#: src/rougail/output_doc/doc.py:672
msgid "when the variable \"{0}\" hasn't the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:674
msgid "when the variable \"{0}\" is defined and hasn't the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:677
msgid "when the variable \"{0}\" has the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:679
msgid "when the variable \"{0}\" is defined and has the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:695
msgid "the value of the variable \"{0}\""
msgstr ""
#: src/rougail/output_doc/doc.py:697
msgid "the value of the variable \"{0}\" if it is defined"
msgstr ""
#: src/rougail/output_doc/doc.py:699
msgid "the value of an undocumented variable"
msgstr ""
#: src/rougail/output_doc/doc.py:737
msgid "the values of undocumented variables"
msgstr ""
#: src/rougail/output_doc/doc.py:757
msgid "(from an undocumented variable){0}"
msgstr ""
#: src/rougail/output_doc/doc.py:763
msgid "{0} (from an undocumented variable)"
msgstr ""
#: src/rougail/output_doc/doc.py:776
msgid "the value of the identifier" msgid "the value of the identifier"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:780 #: src/rougail/output_doc/doc.py:668
msgid "the value of the {0}" msgid "the value of the {0}"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:677
msgid "depends on a calculation"
msgstr ""
#: src/rougail/output_doc/doc.py:683
msgid "\"{0}\" is a calculation for {1} but has no description in {2}"
msgstr ""
#: src/rougail/output_doc/doc.py:709 src/rougail/output_doc/doc.py:814
msgid "depends on an undocumented variable"
msgstr ""
#: src/rougail/output_doc/doc.py:720
msgid "when the variable \"{0}\" hasn't the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:722
msgid "when the variable \"{0}\" is defined and hasn't the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:725
msgid "when the variable \"{0}\" has the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:727
msgid "when the variable \"{0}\" is defined and has the value \"{1}\""
msgstr ""
#: src/rougail/output_doc/doc.py:743
msgid "the value of the variable \"{0}\""
msgstr ""
#: src/rougail/output_doc/doc.py:745
msgid "the value of the variable \"{0}\" if it is defined"
msgstr ""
#: src/rougail/output_doc/doc.py:746
msgid "the value of an undocumented variable"
msgstr ""
#: src/rougail/output_doc/doc.py:784
msgid "the values of undocumented variables"
msgstr ""
#: src/rougail/output_doc/doc.py:804
msgid "(from an undocumented variable){0}"
msgstr ""
#: src/rougail/output_doc/doc.py:810
msgid "{0} (from an undocumented variable)"
msgstr ""
#: src/rougail/output_doc/example.py:37 #: src/rougail/output_doc/example.py:37
msgid "Example with mandatory variables not filled in" msgid "Example with mandatory variables not filled in"
msgstr "" msgstr ""

View file

@ -24,7 +24,7 @@ from re import compile
from tiramisu import Calculation, groups from tiramisu import Calculation, groups
from tiramisu.error import ConfigError, display_list, PropertiesOptionError from tiramisu.error import ConfigError, display_list, PropertiesOptionError
from rougail.tiramisu import display_xmlfiles, normalize_family from rougail.tiramisu import display_xmlfiles, normalize_family
from rougail.utils import undefined, PROPERTY_ATTRIBUTE from rougail.utils import undefined, get_properties_to_string, PROPERTY_ATTRIBUTE
from rougail.error import VariableCalculationDependencyError, RougailWarning from rougail.error import VariableCalculationDependencyError, RougailWarning
from .config import OutPuts from .config import OutPuts
@ -92,13 +92,7 @@ class RougailOutputDoc(Examples):
self.support_namespace = True self.support_namespace = True
except AttributeError: except AttributeError:
self.support_namespace = False self.support_namespace = False
self.property_to_string = [ self.property_to_string = get_properties_to_string()
("mandatory", _("mandatory")),
("hidden", _("hidden")),
("disabled", _("disabled")),
("unique", _("unique")),
("force_store_value", _("auto modified")),
]
super().__init__() super().__init__()
def run(self) -> str: def run(self) -> str: