diff --git a/src/rougail/tiramisu.py b/src/rougail/tiramisu.py index 0ff3cbd6b..e60a2e18c 100644 --- a/src/rougail/tiramisu.py +++ b/src/rougail/tiramisu.py @@ -39,6 +39,7 @@ from rougail.error import display_xmlfiles from tiramisu import DynOptionDescription, calc_value, function_waiting_for_error from tiramisu.error import ValueWarning, ConfigError, PropertiesOptionError, CancelParam from .utils import normalize_family +from .i18n import _ global func @@ -163,7 +164,7 @@ def jinja_to_function( except Exception as err: kw_str = ", ".join(kw_to_string(kw)) raise ConfigError( - f'cannot calculating "{__internal_attribute}" attribute for variable "{__internal_variable}" in {display_xmlfiles(__internal_files)} with parameters "{kw_str}": {err}' + _('cannot calculating "{0}" attribute for variable "{1}" in {2} with parameters "{3}": {4}').format(__internal_attribute, __internal_variable, display_xmlfiles(__internal_files), kw_str, err) ) from err convert = CONVERT_OPTION[__internal_type].get("func", str) if __internal_multi: diff --git a/tests/dictionaries/00_6regexp_link/makedict/after.json b/tests/dictionaries/00_6regexp_link/makedict/after.json new file mode 100644 index 000000000..e4eee75ae --- /dev/null +++ b/tests/dictionaries/00_6regexp_link/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "#a1a1a1" + }, + "rougail.var2": { + "owner": "default", + "value": "#a1a1a1" + } +} diff --git a/tests/dictionaries/00_6regexp_link/makedict/base.json b/tests/dictionaries/00_6regexp_link/makedict/base.json new file mode 100644 index 000000000..72d5e7f3d --- /dev/null +++ b/tests/dictionaries/00_6regexp_link/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "#a1a1a1", + "rougail.var2": "#a1a1a1" +} diff --git a/tests/dictionaries/00_6regexp_link/makedict/before.json b/tests/dictionaries/00_6regexp_link/makedict/before.json new file mode 100644 index 000000000..e4eee75ae --- /dev/null +++ b/tests/dictionaries/00_6regexp_link/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "#a1a1a1" + }, + "rougail.var2": { + "owner": "default", + "value": "#a1a1a1" + } +} diff --git a/tests/dictionaries/00_6regexp_link/makedict/mandatory.json b/tests/dictionaries/00_6regexp_link/makedict/mandatory.json new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/dictionaries/00_6regexp_link/makedict/mandatory.json @@ -0,0 +1 @@ +[] \ No newline at end of file