Fix various i18n ambiguous issues reported in T43295.
This commit is contained in:
parent
dab3865c0b
commit
a7f16c17c2
Notes:
blender-bot
2023-02-14 10:54:29 +01:00
Referenced by issue #43295, Translation disambiguation requests
|
@ -519,7 +519,8 @@ void OUTLINER_OT_id_remap(wmOperatorType *ot)
|
|||
|
||||
ot->flag = 0;
|
||||
|
||||
RNA_def_enum(ot->srna, "id_type", rna_enum_id_type_items, ID_OB, "ID Type", "");
|
||||
prop = RNA_def_enum(ot->srna, "id_type", rna_enum_id_type_items, ID_OB, "ID Type", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID);
|
||||
|
||||
prop = RNA_def_enum(ot->srna, "old_id", DummyRNA_NULL_items, 0, "Old ID", "Old ID to replace");
|
||||
RNA_def_property_enum_funcs_runtime(prop, NULL, NULL, outliner_id_itemf);
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
#include "BLI_math.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "DNA_scene_types.h"
|
||||
#include "DNA_mask_types.h"
|
||||
|
||||
|
@ -445,6 +447,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, BLT_I18NCONTEXT_ID_MOVIECLIP);
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "BKE_action.h"
|
||||
|
||||
#include "RNA_access.h"
|
||||
|
@ -731,6 +733,7 @@ static void rna_def_action(BlenderRNA *brna)
|
|||
RNA_def_property_ui_text(prop, "ID Root Type",
|
||||
"Type of ID block that action can be used on - "
|
||||
"DO NOT CHANGE UNLESS YOU KNOW WHAT YOU ARE DOING");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID);
|
||||
|
||||
/* API calls */
|
||||
RNA_api_action(srna);
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "RNA_access.h"
|
||||
|
@ -742,6 +744,7 @@ static void rna_def_keyingset_path(BlenderRNA *brna)
|
|||
RNA_def_property_enum_default(prop, ID_OB);
|
||||
RNA_def_property_enum_funcs(prop, NULL, "rna_ksPath_id_type_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "ID Type", "Type of ID-block that can be used");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID);
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_KEYINGSET | NA_EDITED, NULL); /* XXX: maybe a bit too noisy */
|
||||
|
||||
/* Group */
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "BKE_action.h"
|
||||
|
||||
#include "RNA_access.h"
|
||||
|
@ -1448,6 +1450,7 @@ static void rna_def_drivertarget(BlenderRNA *brna)
|
|||
RNA_def_property_enum_funcs(prop, NULL, "rna_DriverTarget_id_type_set", NULL);
|
||||
RNA_def_property_editable_func(prop, "rna_DriverTarget_id_type_editable");
|
||||
RNA_def_property_ui_text(prop, "ID Type", "Type of ID-block that can be used");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID);
|
||||
RNA_def_property_update(prop, 0, "rna_DriverTarget_update_data");
|
||||
|
||||
/* Target Properties - Property to Drive */
|
||||
|
|
|
@ -3327,6 +3327,7 @@ static void def_frame(StructRNA *srna)
|
|||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
|
||||
|
||||
RNA_def_struct_sdna_from(srna, "NodeFrame", "storage");
|
||||
RNA_def_struct_translation_context(srna, BLT_I18NCONTEXT_ID_NODETREE);
|
||||
|
||||
prop = RNA_def_property(srna, "shrink", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", NODE_FRAME_SHRINK);
|
||||
|
|
Loading…
Reference in New Issue