[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40570] trunk/blender/source/blender/ makesrna/intern: Remove PROP_TRANSLATE flag from labels for operators, menus and panels.
Sergey Sharybin
g.ulairi at gmail.com
Mon Sep 26 16:29:39 CEST 2011
Revision: 40570
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40570
Author: nazgul
Date: 2011-09-26 14:29:39 +0000 (Mon, 26 Sep 2011)
Log Message:
-----------
Remove PROP_TRANSLATE flag from labels for operators, menus and panels.
This flag lead to storing translated label for templates and
instant language switching became impossible.
This labels are display-time translated.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_ui.c
trunk/blender/source/blender/makesrna/intern/rna_wm.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_ui.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_ui.c 2011-09-26 14:21:40 UTC (rev 40569)
+++ trunk/blender/source/blender/makesrna/intern/rna_ui.c 2011-09-26 14:29:39 UTC (rev 40570)
@@ -661,7 +661,7 @@
"class name is \"OBJECT_PT_hello\", and bl_idname is not set by the "
"script, then bl_idname = \"OBJECT_PT_hello\"");
- prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_TRANSLATE);
+ prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
RNA_def_property_string_sdna(prop, NULL, "type->label");
RNA_def_property_flag(prop, PROP_REGISTER);
RNA_def_property_ui_text(prop, "Label",
@@ -785,7 +785,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_TRANSLATE);
+ prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
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");
Modified: trunk/blender/source/blender/makesrna/intern/rna_wm.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm.c 2011-09-26 14:21:40 UTC (rev 40569)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm.c 2011-09-26 14:29:39 UTC (rev 40570)
@@ -1188,7 +1188,7 @@
RNA_def_property_flag(prop, PROP_REGISTER|PROP_NEVER_CLAMP);
RNA_def_struct_name_property(srna, prop);
- prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_TRANSLATE);
+ prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
RNA_def_property_string_sdna(prop, NULL, "type->name");
RNA_def_property_string_maxlength(prop, 1024); /* else it uses the pointer size! */
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_label_set");
More information about the Bf-blender-cvs
mailing list