diff options
author | Bastien Montagne <bastien@blender.org> | 2022-03-03 16:50:52 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-03-03 16:52:45 +0300 |
commit | 1b863041c9746029bd6d867539550043944822d9 (patch) | |
tree | 4f95d9245ab912dff0db4cf32f90b6485a951196 /source/blender/makesrna | |
parent | 0f7793303118a7e3bf62168e9e8bca4d9e28f873 (diff) |
i18n: Fix more potential contextual issues with "Back" UI label.
Add 'ID_ACTION' context to some animation curve interpolation enums.
Related to T95506/T43295.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_fcurve.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c index 8f418fcc7c7..af14a169d68 100644 --- a/source/blender/makesrna/intern/rna_fcurve.c +++ b/source/blender/makesrna/intern/rna_fcurve.c @@ -2111,6 +2111,7 @@ static void rna_def_fkeyframe(BlenderRNA *brna) "Interpolation", "Interpolation method to use for segment of the F-Curve from " "this Keyframe until the next Keyframe"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ACTION); RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME_PROP, "rna_Keyframe_update"); prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); @@ -2131,6 +2132,7 @@ static void rna_def_fkeyframe(BlenderRNA *brna) prop = RNA_def_property(srna, "back", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "back"); RNA_def_property_ui_text(prop, "Back", "Amount of overshoot for 'back' easing"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ACTION); RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME_PROP, "rna_Keyframe_update"); prop = RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 2a759dde39a..9c4e51c260c 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -5134,6 +5134,7 @@ static void rna_def_userdef_edit(BlenderRNA *brna) "New Interpolation Type", "Interpolation mode used for first keyframe on newly added F-Curves " "(subsequent keyframes take interpolation from preceding keyframe)"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ACTION); prop = RNA_def_property(srna, "keyframe_new_handle_type", PROP_ENUM, PROP_NONE); RNA_def_property_enum_items(prop, rna_enum_keyframe_handle_type_items); |