[Bf-blender-cvs] [b6de6da59af] master: I18n: Fix regex for messages from `BKE_modifier_set_error`.
Bastien Montagne
noreply at git.blender.org
Thu Jul 14 18:49:43 CEST 2022
Commit: b6de6da59afbf84b21df661d096f324360c763d7
Author: Bastien Montagne
Date: Thu Jul 14 18:46:52 2022 +0200
Branches: master
https://developer.blender.org/rBb6de6da59afbf84b21df661d096f324360c763d7
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.
===================================================================
M release/scripts/modules/bl_i18n_utils/settings.py
===================================================================
diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py
index 7aeef80b0bd..9b38c512d31 100644
--- a/release/scripts/modules/bl_i18n_utils/settings.py
+++ b/release/scripts/modules/bl_i18n_utils/settings.py
@@ -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.
More information about the Bf-blender-cvs
mailing list