diff --git a/scripts/modules/bl_i18n_utils/settings.py b/scripts/modules/bl_i18n_utils/settings.py index 73acc6cf0d3..940b6f01be1 100644 --- a/scripts/modules/bl_i18n_utils/settings.py +++ b/scripts/modules/bl_i18n_utils/settings.py @@ -282,12 +282,12 @@ PYGETTEXT_KEYWORDS = (() + for it in ("modifier_subpanel_register", "gpencil_modifier_subpanel_register")) + # Node socket declarations: context-less names. - tuple((r"\.{}\(\s*" + _msg_re + r"(?:,[^),]+)*\s*\)" + tuple((r"\.{}(?:\(|[^,]+,)\s*" + _msg_re + r"(?:,[^),]+)*\s*\)" r"(?![^;]*\.translation_context\()").format(it) for it in ("add_input", "add_output")) + # Node socket declarations: names with contexts - tuple((r"\.{}\(\s*" + _msg_re + r"[^;]*\.translation_context\(\s*" + _ctxt_re + r"\s*\)").format(it) + tuple((r"\.{}(?:\(|[^,]+,)\s*" + _msg_re + r"[^;]*\.translation_context\(\s*" + _ctxt_re + r"\s*\)").format(it) for it in ("add_input", "add_output")) + # Node socket declarations: description and error messages