I18n: Fix regex for messages from BKE_modifier_set_error.

Signature of this function changed at some point, regex to extract
messages from it was no longer working.

Reported/detected as part of D15418.
This commit is contained in:
Bastien Montagne
2022-07-14 18:46:52 +02:00
parent 3b15467e97
commit b6de6da59a

View File

@@ -248,7 +248,7 @@ PYGETTEXT_KEYWORDS = (() +
tuple(("{}\\((?:[^\"',]+,){{3}}\\s*" + _msg_re + r"\s*\)").format(it)
for it in ("BMO_error_raise",)) +
tuple(("{}\\((?:[^\"',]+,)\\s*" + _msg_re + r"\s*(?:\)|,)").format(it)
tuple(("{}\\((?:[^\"',]+,){{2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it)
for it in ("BKE_modifier_set_error",)) +
# bUnitDef unit names.