fix: translate ERRORS
This commit is contained in:
parent
a29a14d3f3
commit
a8f8c35bdc
4 changed files with 35 additions and 25 deletions
|
@ -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-15 18:38+0100\n"
|
||||||
"PO-Revision-Date: 2024-11-01 11:04+0100\n"
|
"PO-Revision-Date: 2025-02-15 18:39+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
|
@ -16,42 +16,46 @@ 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_console/__init__.py:88
|
||||||
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_console/__init__.py:99
|
||||||
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
|
#: src/rougail/output_console/__init__.py:182
|
||||||
msgid "Undocumented variable"
|
msgid "Undocumented variable"
|
||||||
msgstr "Variable non documentée"
|
msgstr "Variable non documentée"
|
||||||
|
|
||||||
#: src/rougail/output_exporter/output/console.py:54
|
#: src/rougail/output_console/__init__.py:183
|
||||||
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
|
#: src/rougail/output_console/__init__.py:186
|
||||||
msgid "Unmodifiable variable"
|
msgid "Unmodifiable variable"
|
||||||
msgstr "Variable non modifiable"
|
msgstr "Variable non modifiable"
|
||||||
|
|
||||||
#: src/rougail/output_exporter/output/console.py:61
|
#: src/rougail/output_console/__init__.py:190
|
||||||
msgid "Default value"
|
msgid "Default value"
|
||||||
msgstr "Valeur par défaut"
|
msgstr "Valeur par défaut"
|
||||||
|
|
||||||
#: src/rougail/output_exporter/output/console.py:62
|
#: src/rougail/output_console/__init__.py:191
|
||||||
msgid "Modified value"
|
msgid "Modified value"
|
||||||
msgstr "Valeur modifiée"
|
msgstr "Valeur modifiée"
|
||||||
|
|
||||||
#: src/rougail/output_exporter/output/console.py:63
|
#: src/rougail/output_console/__init__.py:192
|
||||||
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
|
#: src/rougail/output_console/__init__.py:196
|
||||||
msgid "Caption"
|
msgid "Caption"
|
||||||
msgstr "Légende"
|
msgstr "Légende"
|
||||||
|
|
||||||
#: src/rougail/output_exporter/output/console.py:92
|
#: src/rougail/output_console/__init__.py:203
|
||||||
|
msgid "ERRORS"
|
||||||
|
msgstr "ERREURS"
|
||||||
|
|
||||||
|
#: src/rougail/output_console/__init__.py:223
|
||||||
msgid "Variables:"
|
msgid "Variables:"
|
||||||
msgstr "Variables :"
|
msgstr "Variables :"
|
||||||
|
|
|
@ -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-27 16:46+0100\n"
|
"POT-Creation-Date: 2025-02-15 18:39+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,47 @@ msgstr ""
|
||||||
"Generated-By: pygettext.py 1.5\n"
|
"Generated-By: pygettext.py 1.5\n"
|
||||||
|
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:82
|
#: src/rougail/output_console/__init__.py:88
|
||||||
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_console/__init__.py:93
|
#: src/rougail/output_console/__init__.py:99
|
||||||
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_console/__init__.py:170
|
#: src/rougail/output_console/__init__.py:182
|
||||||
msgid "Undocumented variable"
|
msgid "Undocumented variable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:171
|
#: src/rougail/output_console/__init__.py:183
|
||||||
msgid "Undocumented but modified variable"
|
msgid "Undocumented but modified variable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:174
|
#: src/rougail/output_console/__init__.py:186
|
||||||
msgid "Unmodifiable variable"
|
msgid "Unmodifiable variable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:178
|
#: src/rougail/output_console/__init__.py:190
|
||||||
msgid "Default value"
|
msgid "Default value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:179
|
#: src/rougail/output_console/__init__.py:191
|
||||||
msgid "Modified value"
|
msgid "Modified value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:180
|
#: src/rougail/output_console/__init__.py:192
|
||||||
msgid "Original default value"
|
msgid "Original default value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:184
|
#: src/rougail/output_console/__init__.py:196
|
||||||
msgid "Caption"
|
msgid "Caption"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/output_console/__init__.py:209
|
#: src/rougail/output_console/__init__.py:203
|
||||||
|
msgid "ERRORS"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/rougail/output_console/__init__.py:223
|
||||||
msgid "Variables:"
|
msgid "Variables:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -76,6 +76,9 @@ class RougailOutputConsole:
|
||||||
except (ConfigError, PropertiesOptionError) as err:
|
except (ConfigError, PropertiesOptionError) as err:
|
||||||
self.errors.append(f"Error in config: {err}")
|
self.errors.append(f"Error in config: {err}")
|
||||||
return
|
return
|
||||||
|
except ValueError as err:
|
||||||
|
self.errors.append(str(err))
|
||||||
|
return
|
||||||
for option in mandatories:
|
for option in mandatories:
|
||||||
try:
|
try:
|
||||||
option.value.get()
|
option.value.get()
|
||||||
|
@ -109,7 +112,6 @@ class RougailOutputConsole:
|
||||||
errors = self.user_data_errors + self.errors
|
errors = self.user_data_errors + self.errors
|
||||||
if errors:
|
if errors:
|
||||||
self.display_errors(errors)
|
self.display_errors(errors)
|
||||||
if self.errors:
|
|
||||||
return False
|
return False
|
||||||
warnings = self.user_data_warnings + self.warnings
|
warnings = self.user_data_warnings + self.warnings
|
||||||
if warnings:
|
if warnings:
|
||||||
|
@ -198,7 +200,7 @@ class RougailOutputConsole:
|
||||||
errors,
|
errors,
|
||||||
) -> None:
|
) -> None:
|
||||||
tree = Tree(
|
tree = Tree(
|
||||||
":stop_sign: ERRORS",
|
f":stop_sign: {_('ERRORS')}",
|
||||||
guide_style="bold bright_red",
|
guide_style="bold bright_red",
|
||||||
)
|
)
|
||||||
for error in errors:
|
for error in errors:
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue