Fixed/restored translation of node classes (in foreach_nodeclass funcs)
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 9 Nov 2011 15:00:11 +0000 (15:00 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 9 Nov 2011 15:00:11 +0000 (15:00 +0000)
source/blender/nodes/CMakeLists.txt
source/blender/nodes/SConscript
source/blender/nodes/composite/node_composite_tree.c
source/blender/nodes/shader/node_shader_tree.c
source/blender/nodes/texture/node_texture_tree.c

index 557b00d66b8de3d76cb4becd917d35da7b4b5e24..368ab1db50c8372c0aa8e65606fbfac1f960bafb 100644 (file)
@@ -25,6 +25,7 @@
 
 set(INC 
        .
+       ../blenfont
        ../blenkernel
        ../blenlib
        ../blenloader
index 0cbc7b809337fe44bbdc96c642fa66b90665551a..d7dbed51282bfb701b08b3cad97b029ca9bfee15 100644 (file)
@@ -11,7 +11,7 @@ incs += '#/intern/guardedalloc ../editors/include ../blenlib ../makesdna'
 incs += ' ../render/extern/include ../makesrna '
 incs += ' ../imbuf ../avi '
 incs += ' ../blenloader'
-incs += ' ../blenkernel ../renderconverter '
+incs += ' ../blenfont ../blenkernel ../renderconverter '
 incs += ' ../gpu #/extern/glew/include '
 
 incs += ' ' + env['BF_OPENGL_INC']
index 06f88002a70b75a911d0a263d213ab44d94b9416..10b062977b2aab25ef0603949b6075ccf9836e6f 100644 (file)
@@ -39,6 +39,8 @@
 #include "BLI_listbase.h"
 #include "BLI_threads.h"
 
+#include "BLF_translation.h"
+
 #include "BKE_animsys.h"
 #include "BKE_colortools.h"
 #include "BKE_fcurve.h"
@@ -70,16 +72,16 @@ static void foreach_nodetree(Main *main, void *calldata, bNodeTreeCallback func)
 
 static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCallback func)
 {
-       func(calldata, NODE_CLASS_INPUT, "Input");
-       func(calldata, NODE_CLASS_OUTPUT, "Output");
-       func(calldata, NODE_CLASS_OP_COLOR, "Color");
-       func(calldata, NODE_CLASS_OP_VECTOR, "Vector");
-       func(calldata, NODE_CLASS_OP_FILTER, "Filter");
-       func(calldata, NODE_CLASS_CONVERTOR, "Convertor");
-       func(calldata, NODE_CLASS_MATTE, "Matte");
-       func(calldata, NODE_CLASS_DISTORT, "Distort");
-       func(calldata, NODE_CLASS_GROUP, "Group");
-       func(calldata, NODE_CLASS_LAYOUT, "Layout");
+       func(calldata, NODE_CLASS_INPUT, IFACE_("Input"));
+       func(calldata, NODE_CLASS_OUTPUT, IFACE_("Output"));
+       func(calldata, NODE_CLASS_OP_COLOR, IFACE_("Color"));
+       func(calldata, NODE_CLASS_OP_VECTOR, IFACE_("Vector"));
+       func(calldata, NODE_CLASS_OP_FILTER, IFACE_("Filter"));
+       func(calldata, NODE_CLASS_CONVERTOR, IFACE_("Convertor"));
+       func(calldata, NODE_CLASS_MATTE, IFACE_("Matte"));
+       func(calldata, NODE_CLASS_DISTORT, IFACE_("Distort"));
+       func(calldata, NODE_CLASS_GROUP, IFACE_("Group"));
+       func(calldata, NODE_CLASS_LAYOUT, IFACE_("Layout"));
 }
 
 static void free_node_cache(bNodeTree *UNUSED(ntree), bNode *node)
index e116944e688bf168021b7a7a1d187eed89dcda24..6c7667c6729d97aa980e03e193489985e0050cd9 100644 (file)
@@ -43,6 +43,8 @@
 #include "BLI_threads.h"
 #include "BLI_utildefines.h"
 
+#include "BLF_translation.h"
+
 #include "BKE_global.h"
 #include "BKE_main.h"
 #include "BKE_node.h"
@@ -78,19 +80,19 @@ static void foreach_nodetree(Main *main, void *calldata, bNodeTreeCallback func)
 
 static void foreach_nodeclass(Scene *scene, void *calldata, bNodeClassCallback func)
 {
-       func(calldata, NODE_CLASS_INPUT, "Input");
-       func(calldata, NODE_CLASS_OUTPUT, "Output");
+       func(calldata, NODE_CLASS_INPUT, IFACE_("Input"));
+       func(calldata, NODE_CLASS_OUTPUT, IFACE_("Output"));
 
        if(scene_use_new_shading_nodes(scene)) {
-               func(calldata, NODE_CLASS_SHADER, "Shader");
-               func(calldata, NODE_CLASS_TEXTURE, "Texture");
+               func(calldata, NODE_CLASS_SHADER, IFACE_("Shader"));
+               func(calldata, NODE_CLASS_TEXTURE, IFACE_("Texture"));
        }
 
-       func(calldata, NODE_CLASS_OP_COLOR, "Color");
-       func(calldata, NODE_CLASS_OP_VECTOR, "Vector");
-       func(calldata, NODE_CLASS_CONVERTOR, "Convertor");
-       func(calldata, NODE_CLASS_GROUP, "Group");
-       func(calldata, NODE_CLASS_LAYOUT, "Layout");
+       func(calldata, NODE_CLASS_OP_COLOR, IFACE_("Color"));
+       func(calldata, NODE_CLASS_OP_VECTOR, IFACE_("Vector"));
+       func(calldata, NODE_CLASS_CONVERTOR, IFACE_("Convertor"));
+       func(calldata, NODE_CLASS_GROUP, IFACE_("Group"));
+       func(calldata, NODE_CLASS_LAYOUT, IFACE_("Layout"));
 }
 
 static void local_sync(bNodeTree *localtree, bNodeTree *ntree)
index 84bb53e22151bf4ac723c7eb815b245bacca7072..e863e9f6e0fe59a04c6455650e9c6d9d73919b9d 100644 (file)
@@ -39,6 +39,8 @@
 #include "BLI_threads.h"
 #include "BLI_utildefines.h"
 
+#include "BLF_translation.h"
+
 #include "BKE_global.h"
 #include "BKE_main.h"
 #include "BKE_node.h"
@@ -64,15 +66,15 @@ static void foreach_nodetree(Main *main, void *calldata, bNodeTreeCallback func)
 
 static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCallback func)
 {
-       func(calldata, NODE_CLASS_INPUT, "Input");
-       func(calldata, NODE_CLASS_OUTPUT, "Output");
-       func(calldata, NODE_CLASS_OP_COLOR, "Color");
-       func(calldata, NODE_CLASS_PATTERN, "Patterns");
-       func(calldata, NODE_CLASS_TEXTURE, "Textures");
-       func(calldata, NODE_CLASS_CONVERTOR, "Convertor");
-       func(calldata, NODE_CLASS_DISTORT, "Distort");
-       func(calldata, NODE_CLASS_GROUP, "Group");
-       func(calldata, NODE_CLASS_LAYOUT, "Layout");
+       func(calldata, NODE_CLASS_INPUT, IFACE_("Input"));
+       func(calldata, NODE_CLASS_OUTPUT, IFACE_("Output"));
+       func(calldata, NODE_CLASS_OP_COLOR, IFACE_("Color"));
+       func(calldata, NODE_CLASS_PATTERN, IFACE_("Patterns"));
+       func(calldata, NODE_CLASS_TEXTURE, IFACE_("Textures"));
+       func(calldata, NODE_CLASS_CONVERTOR, IFACE_("Convertor"));
+       func(calldata, NODE_CLASS_DISTORT, IFACE_("Distort"));
+       func(calldata, NODE_CLASS_GROUP, IFACE_("Group"));
+       func(calldata, NODE_CLASS_LAYOUT, IFACE_("Layout"));
 }
 
 static void local_sync(bNodeTree *localtree, bNodeTree *ntree)