diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-03-17 18:42:44 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-03-17 18:42:44 +0400 |
commit | 7bc693d1075a72b2f6c7abb1239432b4c442a92f (patch) | |
tree | 99af4b52dc6fe28aa719917b0ec0829428f39506 /source/blender/blenkernel/intern/node.c | |
parent | 1f6ae5e4fbc4a67afd9655d55f9930c196c9e754 (diff) |
Big step forward nodes UI translation:
*Add menu is now translated.
*Nodes' title is now translated.
*Nodes' sockets' labels are now translated.
However, about the last point, and unless I’m mistaking, we’ll have to add the "i18n tag" N_() to all sockets' names, in the input/ouput templates declaration, in all nodes' files, as those sockets are collections created at runtime, I think po-generating script has no way to access that from bpy.types... Quite a piece of (borring) work. :/
Diffstat (limited to 'source/blender/blenkernel/intern/node.c')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index 8b9955dd378..f3320a0b31d 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -55,6 +55,8 @@ #include "BLI_path_util.h" #include "BLI_utildefines.h" +#include "BLF_translation.h" + #include "BKE_animsys.h" #include "BKE_action.h" #include "BKE_fcurve.h" @@ -66,8 +68,6 @@ #include "BKE_utildefines.h" #include "BKE_utildefines.h" -#include "BLI_listbase.h" - #include "RNA_access.h" #include "NOD_socket.h" @@ -1658,7 +1658,7 @@ const char* nodeLabel(bNode *node) else if (node->typeinfo->labelfunc) return node->typeinfo->labelfunc(node); else - return node->typeinfo->name; + return IFACE_(node->typeinfo->name); } struct bNodeTree *nodeGroupEditGet(struct bNode *node) |