[Bf-blender-cvs] [10efc54729f] master: Fix NodeTree types UI messages not being properly tagged for translation.

Bastien Montagne noreply at git.blender.org
Wed Feb 13 16:37:43 CET 2019


Commit: 10efc54729f054f72377c4a7a16c99d50c2cf81e
Author: Bastien Montagne
Date:   Wed Feb 13 16:18:19 2019 +0100
Branches: master
https://developer.blender.org/rB10efc54729f054f72377c4a7a16c99d50c2cf81e

Fix NodeTree types UI messages not being properly tagged for translation.

Probably fix first part of T61446.

===================================================================

M	source/blender/blenkernel/intern/node.c
M	source/blender/nodes/composite/node_composite_tree.c
M	source/blender/nodes/shader/node_shader_tree.c
M	source/blender/nodes/texture/node_texture_tree.c

===================================================================

diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 8449c506939..7ccff4be808 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -3364,8 +3364,8 @@ static void register_undefined_types(void)
 	 */
 
 	strcpy(NodeTreeTypeUndefined.idname, "NodeTreeUndefined");
-	strcpy(NodeTreeTypeUndefined.ui_name, "Undefined");
-	strcpy(NodeTreeTypeUndefined.ui_description, "Undefined Node Tree Type");
+	strcpy(NodeTreeTypeUndefined.ui_name, N_("Undefined"));
+	strcpy(NodeTreeTypeUndefined.ui_description, N_("Undefined Node Tree Type"));
 
 	node_type_base_custom(&NodeTypeUndefined, "NodeUndefined", "Undefined", 0, 0);
 	NodeTypeUndefined.poll = node_undefined_poll;
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c
index 16c820f5bb3..bf01504bce7 100644
--- a/source/blender/nodes/composite/node_composite_tree.c
+++ b/source/blender/nodes/composite/node_composite_tree.c
@@ -194,9 +194,9 @@ void register_node_tree_type_cmp(void)
 
 	tt->type = NTREE_COMPOSIT;
 	strcpy(tt->idname, "CompositorNodeTree");
-	strcpy(tt->ui_name, "Compositing");
+	strcpy(tt->ui_name, N_("Compositing"));
 	tt->ui_icon = 0;    /* defined in drawnode.c */
-	strcpy(tt->ui_description, "Compositing nodes");
+	strcpy(tt->ui_description, N_("Compositing nodes"));
 
 	tt->free_cache = free_cache;
 	tt->free_node_cache = free_node_cache;
diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c
index 4a9e0c6fec2..37036f85361 100644
--- a/source/blender/nodes/shader/node_shader_tree.c
+++ b/source/blender/nodes/shader/node_shader_tree.c
@@ -176,9 +176,9 @@ void register_node_tree_type_sh(void)
 
 	tt->type = NTREE_SHADER;
 	strcpy(tt->idname, "ShaderNodeTree");
-	strcpy(tt->ui_name, "Shader Editor");
+	strcpy(tt->ui_name, N_("Shader Editor"));
 	tt->ui_icon = 0;    /* defined in drawnode.c */
-	strcpy(tt->ui_description, "Shader nodes");
+	strcpy(tt->ui_description, N_("Shader nodes"));
 
 	tt->foreach_nodeclass = foreach_nodeclass;
 	tt->localize = localize;
diff --git a/source/blender/nodes/texture/node_texture_tree.c b/source/blender/nodes/texture/node_texture_tree.c
index 1ad784c801f..655c80f347c 100644
--- a/source/blender/nodes/texture/node_texture_tree.c
+++ b/source/blender/nodes/texture/node_texture_tree.c
@@ -155,9 +155,9 @@ void register_node_tree_type_tex(void)
 
 	tt->type = NTREE_TEXTURE;
 	strcpy(tt->idname, "TextureNodeTree");
-	strcpy(tt->ui_name, "Texture Node Editor");
+	strcpy(tt->ui_name, N_("Texture Node Editor"));
 	tt->ui_icon = 0;    /* defined in drawnode.c */
-	strcpy(tt->ui_description, "Texture nodes");
+	strcpy(tt->ui_description, N_("Texture nodes"));
 
 	tt->foreach_nodeclass = foreach_nodeclass;
 	tt->update = update;



More information about the Bf-blender-cvs mailing list