Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-03-27 23:09:50 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-03-27 23:09:50 +0400
commitc766b0792a114e1a488efee0b944190255beb05e (patch)
tree857c0c4224638b5e21760c473310b1d834f3ac1f /source/blender/editors/space_node/node_header.c
parentbf2c46f5bd77977f179bd6c440ff08907608b355 (diff)
I18n fixes for C panels & menus (we have to specify the default bpyrna context here, else we get the horrible "empty" string (as translation_context of panels is an array, not a pointer, so it's never NULL).
Diffstat (limited to 'source/blender/editors/space_node/node_header.c')
-rw-r--r--source/blender/editors/space_node/node_header.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_header.c b/source/blender/editors/space_node/node_header.c
index 175bbce756e..8de2daf9e42 100644
--- a/source/blender/editors/space_node/node_header.c
+++ b/source/blender/editors/space_node/node_header.c
@@ -81,7 +81,8 @@ void node_menus_register(void)
mt = MEM_callocN(sizeof(MenuType), "spacetype node menu add");
strcpy(mt->idname, "NODE_MT_add");
- strcpy(mt->label, "Add");
+ strcpy(mt->label, N_("Add"));
+ strcpy(mt->translation_context, BLF_I18NCONTEXT_DEFAULT_BPYRNA);
mt->draw = node_menu_add;
WM_menutype_add(mt);
}