[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43458] trunk/blender/source/blender/ makesrna/intern/rna_ui.c: Poor menu labels were not translated!

Bastien Montagne montagne29 at wanadoo.fr
Tue Jan 17 17:13:46 CET 2012


Revision: 43458
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43458
Author:   mont29
Date:     2012-01-17 16:13:39 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
Poor menu labels were not translated!

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_ui.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_ui.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_ui.c	2012-01-17 16:06:24 UTC (rev 43457)
+++ trunk/blender/source/blender/makesrna/intern/rna_ui.c	2012-01-17 16:13:39 UTC (rev 43458)
@@ -823,7 +823,7 @@
 	                         "class name is \"OBJECT_MT_hello\", and bl_idname is not set by the "
 	                         "script, then bl_idname = \"OBJECT_MT_hello\")");
 
-	prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
+	prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_TRANSLATE);
 	RNA_def_property_string_sdna(prop, NULL, "type->label");
 	RNA_def_property_flag(prop, PROP_REGISTER);
 	RNA_def_property_ui_text(prop, "Label", "The menu label");



More information about the Bf-blender-cvs mailing list