From 98814c1dcdd41981c8fb7c1f41efa4fd32971d91 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Tue, 7 Oct 2025 14:15:51 +0200 Subject: [PATCH] I18n: Translate reports using "WM_global_report(f)" In bd06baf6e6, "WM_report" was renamed to "WM_global_report", but this name was not changed in the translation extraction regex. Same for the format version of this function. Reported by Ye Gui in #43295. --- scripts/modules/bl_i18n_utils/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modules/bl_i18n_utils/settings.py b/scripts/modules/bl_i18n_utils/settings.py index 236fab5a36c..693c8b43254 100644 --- a/scripts/modules/bl_i18n_utils/settings.py +++ b/scripts/modules/bl_i18n_utils/settings.py @@ -256,7 +256,7 @@ PYGETTEXT_KEYWORDS = (() + tuple(("{}\\((?:[^\"',]+,){{1,2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it) for it in ("BKE_report", "BKE_reportf", "BKE_reports_prepend", "BKE_reports_prependf", - "CTX_wm_operator_poll_msg_set", "WM_report", "WM_reportf", + "CTX_wm_operator_poll_msg_set", "WM_global_report", "WM_global_reportf", "UI_but_disable")) + # bmesh operator errors