Poor menu labels were not translated!
This commit is contained in:
@@ -823,7 +823,7 @@ static void rna_def_menu(BlenderRNA *brna)
|
||||
"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");
|
||||
|
||||
Reference in New Issue
Block a user