diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-05-16 19:01:46 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-05-16 19:01:46 +0400 |
commit | 04bc61a0d58267d3018b478b79fbd09e5920b629 (patch) | |
tree | ba86198b3de43af327e188f04125c753754fda12 /source/blender/nodes/composite/node_composite_tree.c | |
parent | fc576add9f0869c3612873c084497d831375f6d6 (diff) |
Nodes i18n: don't call gettext stuff twice for categories' names, when building Add menu.
Now ui-names in foreach_nodeclass functions are only marked as translatable, it’s up to the callback to actually translate them or not!
Diffstat (limited to 'source/blender/nodes/composite/node_composite_tree.c')
-rw-r--r-- | source/blender/nodes/composite/node_composite_tree.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c index b526c25e2dc..41b1204fba4 100644 --- a/source/blender/nodes/composite/node_composite_tree.c +++ b/source/blender/nodes/composite/node_composite_tree.c @@ -72,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, 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")); + func(calldata, NODE_CLASS_INPUT, N_("Input")); + func(calldata, NODE_CLASS_OUTPUT, N_("Output")); + func(calldata, NODE_CLASS_OP_COLOR, N_("Color")); + func(calldata, NODE_CLASS_OP_VECTOR, N_("Vector")); + func(calldata, NODE_CLASS_OP_FILTER, N_("Filter")); + func(calldata, NODE_CLASS_CONVERTOR, N_("Convertor")); + func(calldata, NODE_CLASS_MATTE, N_("Matte")); + func(calldata, NODE_CLASS_DISTORT, N_("Distort")); + func(calldata, NODE_CLASS_GROUP, N_("Group")); + func(calldata, NODE_CLASS_LAYOUT, N_("Layout")); } static void free_node_cache(bNodeTree *UNUSED(ntree), bNode *node) |