[Bf-blender-cvs] [337dbb1ab02] blender-v3.4-release: I18n: fix UI layout operator context extraction
Damien Picard
noreply at git.blender.org
Tue Nov 15 12:04:48 CET 2022
Commit: 337dbb1ab0293fefe93542020a71dadc30000d9e
Author: Damien Picard
Date: Tue Nov 15 12:03:18 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rB337dbb1ab0293fefe93542020a71dadc30000d9e
I18n: fix UI layout operator context extraction
Some operator layout buttons with custom text did not get the proper
context: they'd get * instead of Operator.
This was probably never noticed because the only operator that
actually had this issue was Import Images as Planes in the Add menu.
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D15993
===================================================================
M release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
===================================================================
diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
index 18a41d86322..4915ee3f47d 100644
--- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
+++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
@@ -570,7 +570,7 @@ def dump_py_messages_from_files(msgs, reports, files, settings):
bag = extract_strings_split(node)
opname, _ = bag[0]
if not opname:
- return i18n_contexts.default
+ return i18n_contexts.operator_default
op = bpy.ops
for n in opname.split('.'):
op = getattr(op, n)
More information about the Bf-blender-cvs
mailing list