[Bf-blender-cvs] [dd4108545ad] master: Fix T63169: 'Duplicate Current' entry in new workspace menu is not translated.
Bastien Montagne
noreply at git.blender.org
Mon Apr 1 11:31:44 CEST 2019
Commit: dd4108545ada2bfab607acdd5cda98e77619798f
Author: Bastien Montagne
Date: Mon Apr 1 11:30:44 2019 +0200
Branches: master
https://developer.blender.org/rBdd4108545ada2bfab607acdd5cda98e77619798f
Fix T63169: 'Duplicate Current' entry in new workspace menu is not translated.
===================================================================
M source/blender/editors/screen/workspace_edit.c
===================================================================
diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c
index d68fdbca956..63d25cb96c4 100644
--- a/source/blender/editors/screen/workspace_edit.c
+++ b/source/blender/editors/screen/workspace_edit.c
@@ -533,7 +533,8 @@ static int workspace_add_invoke(bContext *C, wmOperator *op, const wmEvent *UNUS
BLI_freelistN(&templates);
uiItemS(layout);
- uiItemO(layout, "Duplicate Current", ICON_DUPLICATE, "WORKSPACE_OT_duplicate");
+ uiItemO(layout, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Duplicate Current"), ICON_DUPLICATE,
+ "WORKSPACE_OT_duplicate");
UI_popup_menu_end(C, pup);
More information about the Bf-blender-cvs
mailing list