fix: translation

This commit is contained in:
egarette@silique.fr 2025-02-17 09:43:44 +01:00
parent 7fde2303ab
commit 25e0f2f006
4 changed files with 43 additions and 64 deletions

View file

@ -5,8 +5,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2024-11-01 11:03+0100\n" "POT-Creation-Date: 2025-02-17 09:42+0100\n"
"PO-Revision-Date: 2024-11-01 11:04+0100\n" "PO-Revision-Date: 2025-02-17 09:43+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: fr\n" "Language: fr\n"
@ -16,42 +16,42 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 3.5\n" "X-Generator: Poedit 3.5\n"
#: src/rougail/output_exporter/__init__.py:73 #: src/rougail/output_json/__init__.py:46
msgid "the \"step.output\" is not set to \"{0}\""
msgstr "\"step.output\" n'est pas mis à \"{0}\""
#: src/rougail/output_json/__init__.py:93
msgid "Error in config: {0}"
msgstr "Erreur dans la configuration : {0}"
#: src/rougail/output_json/__init__.py:104
msgid "The following variables are mandatory but have no value:" msgid "The following variables are mandatory but have no value:"
msgstr "Les variables suiveuses sont obligatoire mais n'ont pas de valeur :" msgstr "Les variables suiveuses sont obligatoire mais n'ont pas de valeur :"
#: src/rougail/output_exporter/__init__.py:84 #: src/rougail/output_json/__init__.py:115
msgid "The following variables are inaccessible but are empty and mandatory :" msgid "The following variables are inaccessible but are empty and mandatory :"
msgstr "Les variables suiveuses sont inaccessibles mais sont vides et obligatoires :" msgstr "Les variables suiveuses sont inaccessibles mais sont vides et obligatoires :"
#: src/rougail/output_exporter/output/console.py:53 #~ msgid "Undocumented variable"
msgid "Undocumented variable" #~ msgstr "Variable non documentée"
msgstr "Variable non documentée"
#: src/rougail/output_exporter/output/console.py:54 #~ msgid "Undocumented but modified variable"
msgid "Undocumented but modified variable" #~ msgstr "Variable non documentée mais modifiée"
msgstr "Variable non documentée mais modifiée"
#: src/rougail/output_exporter/output/console.py:57 #~ msgid "Unmodifiable variable"
msgid "Unmodifiable variable" #~ msgstr "Variable non modifiable"
msgstr "Variable non modifiable"
#: src/rougail/output_exporter/output/console.py:61 #~ msgid "Default value"
msgid "Default value" #~ msgstr "Valeur par défaut"
msgstr "Valeur par défaut"
#: src/rougail/output_exporter/output/console.py:62 #~ msgid "Modified value"
msgid "Modified value" #~ msgstr "Valeur modifiée"
msgstr "Valeur modifiée"
#: src/rougail/output_exporter/output/console.py:63 #~ msgid "Original default value"
msgid "Original default value" #~ msgstr "Valeur par défaut d'origine"
msgstr "Valeur par défaut d'origine"
#: src/rougail/output_exporter/output/console.py:67 #~ msgid "Caption"
msgid "Caption" #~ msgstr "Légende"
msgstr "Légende"
#: src/rougail/output_exporter/output/console.py:92 #~ msgid "Variables:"
msgid "Variables:" #~ msgstr "Variables :"
msgstr "Variables :"

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: 2024-11-01 11:03+0100\n" "POT-Creation-Date: 2025-02-17 09:43+0100\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"
@ -15,43 +15,19 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
#: src/rougail/output_exporter/__init__.py:73 #: src/rougail/output_json/__init__.py:46
msgid "the \"step.output\" is not set to \"{0}\""
msgstr ""
#: src/rougail/output_json/__init__.py:93
msgid "Error in config: {0}"
msgstr ""
#: src/rougail/output_json/__init__.py:104
msgid "The following variables are mandatory but have no value:" msgid "The following variables are mandatory but have no value:"
msgstr "" msgstr ""
#: src/rougail/output_exporter/__init__.py:84 #: src/rougail/output_json/__init__.py:115
msgid "The following variables are inaccessible but are empty and mandatory :" msgid "The following variables are inaccessible but are empty and mandatory :"
msgstr "" msgstr ""
#: src/rougail/output_exporter/output/console.py:53
msgid "Undocumented variable"
msgstr ""
#: src/rougail/output_exporter/output/console.py:54
msgid "Undocumented but modified variable"
msgstr ""
#: src/rougail/output_exporter/output/console.py:57
msgid "Unmodifiable variable"
msgstr ""
#: src/rougail/output_exporter/output/console.py:61
msgid "Default value"
msgstr ""
#: src/rougail/output_exporter/output/console.py:62
msgid "Modified value"
msgstr ""
#: src/rougail/output_exporter/output/console.py:63
msgid "Original default value"
msgstr ""
#: src/rougail/output_exporter/output/console.py:67
msgid "Caption"
msgstr ""
#: src/rougail/output_exporter/output/console.py:92
msgid "Variables:"
msgstr ""

View file

@ -90,7 +90,10 @@ class RougailOutputJson:
try: try:
mandatories = self.config.value.mandatory() mandatories = self.config.value.mandatory()
except (ConfigError, PropertiesOptionError) as err: except (ConfigError, PropertiesOptionError) as err:
self.errors.append(f"Error in config: {err}") self.errors.append(_("Error in config: {0}").format(err))
return
except ValueError as err:
self.errors.append(str(err))
return return
for option in mandatories: for option in mandatories:
try: try: