From 622764bf535bcf4223d8af1acda27ae71b8ac3e3 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 5 Oct 2025 21:28:58 +0200 Subject: [PATCH] fix: translation for property is now in rougail --- locale/fr/LC_MESSAGES/rougail_output_doc.po | 20 --- locale/rougail_output_doc.pot | 154 ++++++++---------- src/rougail/output_doc/doc.py | 10 +- .../fr/LC_MESSAGES/rougail_output_doc.mo | Bin 7165 -> 6960 bytes 4 files changed, 69 insertions(+), 115 deletions(-) diff --git a/locale/fr/LC_MESSAGES/rougail_output_doc.po b/locale/fr/LC_MESSAGES/rougail_output_doc.po index 2b443a78c..00d3438ba 100644 --- a/locale/fr/LC_MESSAGES/rougail_output_doc.po +++ b/locale/fr/LC_MESSAGES/rougail_output_doc.po @@ -72,26 +72,6 @@ msgstr "Valeurs modifiées pour documenter les familles leader ou dynamique" msgid "Generate document in 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 msgid "This family contains lists of variable blocks." msgstr "Cette famille contient des listes de bloc de variable." diff --git a/locale/rougail_output_doc.pot b/locale/rougail_output_doc.pot index 72dda59b2..4ac9fe7f3 100644 --- a/locale/rougail_output_doc.pot +++ b/locale/rougail_output_doc.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -71,134 +71,114 @@ msgstr "" msgid "Generate document in format" msgstr "" -#: src/rougail/output_doc/doc.py:89 -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 +#: src/rougail/output_doc/doc.py:334 msgid "This family contains lists of variable blocks." msgstr "" -#: src/rougail/output_doc/doc.py:340 +#: src/rougail/output_doc/doc.py:342 msgid "This family builds families dynamically." msgstr "" -#: src/rougail/output_doc/doc.py:354 +#: src/rougail/output_doc/doc.py:356 msgid "Default" msgstr "" -#: src/rougail/output_doc/doc.py:372 +#: src/rougail/output_doc/doc.py:375 msgid "multiple" msgstr "" -#: src/rougail/output_doc/doc.py:380 +#: src/rougail/output_doc/doc.py:383 msgid "Example" msgstr "" -#: src/rougail/output_doc/doc.py:383 +#: src/rougail/output_doc/doc.py:386 msgid "Examples" msgstr "" -#: src/rougail/output_doc/doc.py:401 +#: src/rougail/output_doc/doc.py:408 msgid "No attribute \"description\" for \"{0}\" in {1}" msgstr "" -#: src/rougail/output_doc/doc.py:524 +#: src/rougail/output_doc/doc.py:534 msgid "text based with regular expressions \"{0}\"" msgstr "" -#: src/rougail/output_doc/doc.py:530 +#: src/rougail/output_doc/doc.py:540 msgid "Validator" msgstr "" -#: src/rougail/output_doc/doc.py:533 +#: src/rougail/output_doc/doc.py:543 msgid "Validators" msgstr "" -#: src/rougail/output_doc/doc.py:546 +#: src/rougail/output_doc/doc.py:556 msgid "(default)" msgstr "" -#: src/rougail/output_doc/doc.py:551 +#: src/rougail/output_doc/doc.py:561 msgid "Choices" msgstr "" -#: src/rougail/output_doc/doc.py:640 -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 +#: src/rougail/output_doc/doc.py:664 msgid "the value of the identifier" msgstr "" -#: src/rougail/output_doc/doc.py:780 +#: src/rougail/output_doc/doc.py:668 msgid "the value of the {0}" 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 msgid "Example with mandatory variables not filled in" msgstr "" diff --git a/src/rougail/output_doc/doc.py b/src/rougail/output_doc/doc.py index b4638a0cb..cf959f510 100644 --- a/src/rougail/output_doc/doc.py +++ b/src/rougail/output_doc/doc.py @@ -24,7 +24,7 @@ from re import compile from tiramisu import Calculation, groups from tiramisu.error import ConfigError, display_list, PropertiesOptionError 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 .config import OutPuts @@ -92,13 +92,7 @@ class RougailOutputDoc(Examples): self.support_namespace = True except AttributeError: self.support_namespace = False - self.property_to_string = [ - ("mandatory", _("mandatory")), - ("hidden", _("hidden")), - ("disabled", _("disabled")), - ("unique", _("unique")), - ("force_store_value", _("auto modified")), - ] + self.property_to_string = get_properties_to_string() super().__init__() def run(self) -> str: diff --git a/src/rougail/output_doc/locale/fr/LC_MESSAGES/rougail_output_doc.mo b/src/rougail/output_doc/locale/fr/LC_MESSAGES/rougail_output_doc.mo index e511867584cc324c8152a3c4f5d432c8571f0c89..567f62938f642f6b5d4f06aef9e4791514e2dea2 100644 G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