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>2011-11-09 19:00:11 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2011-11-09 19:00:11 +0400
commitbc5ec4e69cf3308c2563239c0e8372b853800a78 (patch)
tree408142839defc8314685cfe8d1f9eb00c176040a /source/blender/nodes/shader/node_shader_tree.c
parente4269043b492d2fb3ae1b751148d327ff59a26c9 (diff)
Fixed/restored translation of node classes (in foreach_nodeclass funcs)
Diffstat (limited to 'source/blender/nodes/shader/node_shader_tree.c')
-rw-r--r--source/blender/nodes/shader/node_shader_tree.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c
index e116944e688..6c7667c6729 100644
--- a/source/blender/nodes/shader/node_shader_tree.c
+++ b/source/blender/nodes/shader/node_shader_tree.c
@@ -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)