fix: update translation
This commit is contained in:
parent
1858eeeb06
commit
7ee65b6cab
5 changed files with 27 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
10
tests/dictionaries/00_6regexp_link/makedict/after.json
Normal file
10
tests/dictionaries/00_6regexp_link/makedict/after.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"rougail.var1": {
|
||||
"owner": "default",
|
||||
"value": "#a1a1a1"
|
||||
},
|
||||
"rougail.var2": {
|
||||
"owner": "default",
|
||||
"value": "#a1a1a1"
|
||||
}
|
||||
}
|
||||
4
tests/dictionaries/00_6regexp_link/makedict/base.json
Normal file
4
tests/dictionaries/00_6regexp_link/makedict/base.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"rougail.var1": "#a1a1a1",
|
||||
"rougail.var2": "#a1a1a1"
|
||||
}
|
||||
10
tests/dictionaries/00_6regexp_link/makedict/before.json
Normal file
10
tests/dictionaries/00_6regexp_link/makedict/before.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"rougail.var1": {
|
||||
"owner": "default",
|
||||
"value": "#a1a1a1"
|
||||
},
|
||||
"rougail.var2": {
|
||||
"owner": "default",
|
||||
"value": "#a1a1a1"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
Loading…
Reference in a new issue