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-26 18:33:53 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-03-26 18:33:53 +0400
commitb4bd43e02283d5c2df07b49441a9de24f327736f (patch)
treeb5acf9ff066adc73cc2d2631b6e6b6e76cdc6e60 /source/blender/blenkernel
parent0c07c33fec4ef04f2931863f40f4447aaf810064 (diff)
I18n: various "new data translation" fixes...
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/node.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 1c1102d91ba..a1d9d8af627 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -126,11 +126,11 @@ static void node_init(const struct bContext *C, bNodeTree *ntree, bNode *node)
/* initialize the node name with the node label.
* note: do this after the initfunc so nodes get their data set which may be used in naming
* (node groups for example) */
- /* XXX Do not use nodeLabel() here, it returns translated content, which should *only* be used
- * in UI, *never* in data...
+ /* XXX Do not use nodeLabel() here, it returns translated content for UI, which should *only* be used
+ * in UI, *never* in data... Data have their own translation option!
* This solution may be a bit rougher than nodeLabel()'s returned string, but it's simpler
- * than adding a "no translate" flag to this func (and labelfunc() as well). */
- BLI_strncpy(node->name, ntype->ui_name, NODE_MAXSTR);
+ * than adding "do_translate" flags to this func (and labelfunc() as well). */
+ BLI_strncpy(node->name, DATA_(ntype->ui_name), NODE_MAXSTR);
nodeUniqueName(ntree, node);
node_add_sockets_from_type(ntree, node, ntype);
@@ -816,7 +816,7 @@ bNode *nodeAddStaticNode(const struct bContext *C, bNodeTree *ntree, int type)
NODE_TYPES_BEGIN(ntype)
if (ntype->type == type) {
- idname = ntype->idname;
+ idname = DATA_(ntype->idname);
break;
}
NODE_TYPES_END