Fix NodeTree types UI messages not being properly tagged for translation.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 13 Feb 2019 15:18:19 +0000 (16:18 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 13 Feb 2019 15:19:09 +0000 (16:19 +0100)
Probably fix first part of T61446.

source/blender/blenkernel/intern/node.c
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 8449c50..7ccff4b 100644 (file)
@@ -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;
index 16c820f..bf01504 100644 (file)
@@ -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;
index 4a9e0c6..37036f8 100644 (file)
@@ -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;
index 1ad784c..655c80f 100644 (file)
@@ -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;