Commit: ec95f4a5dff90c9b3d9a4ee9b207ad56f4941cfc
Author: Bastien Montagne
Date:   Mon May 23 18:16:04 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBec95f4a5dff90c9b3d9a4ee9b207ad56f4941cfc

Fix T96878: When interface translation is enabled, grease pencil layer name is 
translated in menu.

Those type of entries have to be tagged as not translatable...

===================================================================

M       release/scripts/startup/bl_ui/properties_grease_pencil_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py 
b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 481753d5e79..9864bb3336f 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -251,7 +251,7 @@ class GPENCIL_MT_move_to_layer(Menu):
                     icon = 'GREASEPENCIL'
                 else:
                     icon = 'NONE'
-                layout.operator("gpencil.move_to_layer", text=gpl.info, 
icon=icon).layer = i
+                layout.operator("gpencil.move_to_layer", text=gpl.info, 
icon=icon, translate=False).layer = i
                 i -= 1
 
             layout.separator()

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to