Fix: T40016 ID Names translated in menus
This commit is contained in:
@@ -1418,6 +1418,7 @@ static void MARKER_OT_make_links_scene(wmOperatorType *ot)
|
||||
/* properties */
|
||||
prop = RNA_def_enum(ot->srna, "scene", DummyRNA_NULL_items, 0, "Scene", "");
|
||||
RNA_def_enum_funcs(prop, RNA_scene_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
|
||||
}
|
||||
|
||||
@@ -984,6 +984,8 @@ static int group_instance_add_exec(bContext *C, wmOperator *op)
|
||||
/* only used as menu */
|
||||
void OBJECT_OT_group_instance_add(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* identifiers */
|
||||
ot->name = "Add Group Instance";
|
||||
ot->description = "Add a dupligroup instance";
|
||||
@@ -999,8 +1001,10 @@ void OBJECT_OT_group_instance_add(wmOperatorType *ot)
|
||||
|
||||
/* properties */
|
||||
RNA_def_string(ot->srna, "name", "Group", MAX_ID_NAME - 2, "Name", "Group name to add");
|
||||
ot->prop = RNA_def_enum(ot->srna, "group", DummyRNA_NULL_items, 0, "Group", "");
|
||||
RNA_def_enum_funcs(ot->prop, RNA_group_itemf);
|
||||
prop = RNA_def_enum(ot->srna, "group", DummyRNA_NULL_items, 0, "Group", "");
|
||||
RNA_def_enum_funcs(prop, RNA_group_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
ED_object_add_generic_props(ot, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -527,6 +527,7 @@ void OBJECT_OT_group_link(wmOperatorType *ot)
|
||||
/* properties */
|
||||
prop = RNA_def_enum(ot->srna, "group", DummyRNA_NULL_items, 0, "Group", "");
|
||||
RNA_def_enum_funcs(prop, RNA_group_local_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
|
||||
@@ -1660,6 +1660,7 @@ void OBJECT_OT_make_links_scene(wmOperatorType *ot)
|
||||
/* properties */
|
||||
prop = RNA_def_enum(ot->srna, "scene", DummyRNA_NULL_items, 0, "Scene", "");
|
||||
RNA_def_enum_funcs(prop, RNA_scene_local_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
|
||||
@@ -4390,6 +4390,7 @@ void PAINT_OT_project_image(wmOperatorType *ot)
|
||||
|
||||
prop = RNA_def_enum(ot->srna, "image", DummyRNA_NULL_items, 0, "Image", "");
|
||||
RNA_def_enum_funcs(prop, RNA_image_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
|
||||
@@ -563,6 +563,7 @@ void NLA_OT_actionclip_add(wmOperatorType *ot)
|
||||
// TODO: this would be nicer as an ID-pointer...
|
||||
prop = RNA_def_enum(ot->srna, "action", DummyRNA_NULL_items, 0, "Action", "");
|
||||
RNA_def_enum_funcs(prop, RNA_action_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
|
||||
@@ -1067,6 +1067,7 @@ void OUTLINER_OT_action_set(wmOperatorType *ot)
|
||||
// TODO: this would be nicer as an ID-pointer...
|
||||
prop = RNA_def_enum(ot->srna, "action", DummyRNA_NULL_items, 0, "Action", "");
|
||||
RNA_def_enum_funcs(prop, RNA_action_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
|
||||
@@ -317,6 +317,7 @@ void SEQUENCER_OT_scene_strip_add(struct wmOperatorType *ot)
|
||||
sequencer_generic_props__internal(ot, SEQPROP_STARTFRAME);
|
||||
prop = RNA_def_enum(ot->srna, "scene", DummyRNA_NULL_items, 0, "Scene", "");
|
||||
RNA_def_enum_funcs(prop, RNA_scene_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
@@ -409,7 +410,7 @@ void SEQUENCER_OT_movieclip_strip_add(struct wmOperatorType *ot)
|
||||
sequencer_generic_props__internal(ot, SEQPROP_STARTFRAME);
|
||||
prop = RNA_def_enum(ot->srna, "clip", DummyRNA_NULL_items, 0, "Clip", "");
|
||||
RNA_def_enum_funcs(prop, RNA_movieclip_itemf);
|
||||
RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_MOVIECLIP);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
@@ -502,6 +503,7 @@ void SEQUENCER_OT_mask_strip_add(struct wmOperatorType *ot)
|
||||
sequencer_generic_props__internal(ot, SEQPROP_STARTFRAME);
|
||||
prop = RNA_def_enum(ot->srna, "mask", DummyRNA_NULL_items, 0, "Mask", "");
|
||||
RNA_def_enum_funcs(prop, RNA_mask_itemf);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user