diff options
author | Bastien Montagne <bastien@blender.org> | 2022-07-15 12:41:13 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-07-15 12:42:58 +0300 |
commit | e69c4482f16d51e5fda4da70abb94a23f8c5b3d9 (patch) | |
tree | 7b5c1e16125aa3cfaebf694edf5d752af01077bf /release/scripts/modules/bl_i18n_utils/settings.py | |
parent | 8e1323f6330937a964c3776431bab02c2cfb6e2f (diff) |
I18n: Add suport for labels from modifiers' subpanels.
Was a bit oif a struggle since those functions take a first string which
is not our label, but should work fine now.
Reported/detected as part of D15418.
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/settings.py')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/settings.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py index 9b38c512d31..3b69f8a6bf7 100644 --- a/release/scripts/modules/bl_i18n_utils/settings.py +++ b/release/scripts/modules/bl_i18n_utils/settings.py @@ -251,6 +251,11 @@ PYGETTEXT_KEYWORDS = (() + tuple(("{}\\((?:[^\"',]+,){{2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it) for it in ("BKE_modifier_set_error",)) + + # This one is a tad more risky, but in practice would not expect a name/uid string parameter + # (the second one in those functions) to ever have a comma in it, so think this is fine. + tuple(("{}\\((?:[^,]+,){{2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it) + for it in ("modifier_subpanel_register", "gpencil_modifier_subpanel_register")) + + # bUnitDef unit names. # NOTE: regex is a bit more complex than it would need too. Since the actual # identifier (`B_UNIT_DEF_`) is at the end, if it's simpler/too general it |