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/editors | |
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/editors')
4 files changed, 17 insertions, 7 deletions
diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c index 40722862949..91d6ab49a60 100644 --- a/source/blender/editors/gpencil/gpencil_interpolate.c +++ b/source/blender/editors/gpencil/gpencil_interpolate.c @@ -1574,6 +1574,8 @@ void GPENCIL_OT_interpolate_sequence(wmOperatorType *ot) {0, NULL, 0, NULL, NULL}, }; + PropertyRNA *prop; + /* identifiers */ ot->name = "Interpolate Sequence"; ot->idname = "GPENCIL_OT_interpolate_sequence"; @@ -1634,14 +1636,15 @@ void GPENCIL_OT_interpolate_sequence(wmOperatorType *ot) 0.0f, 2.0f); - RNA_def_enum(ot->srna, - "type", - gpencil_interpolation_type_items, - 0, - "Type", - "Interpolation method to use the next time 'Interpolate Sequence' is run"); + prop = RNA_def_enum(ot->srna, + "type", + gpencil_interpolation_type_items, + 0, + "Type", + "Interpolation method to use the next time 'Interpolate Sequence' is run"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL); - RNA_def_enum( + prop = RNA_def_enum( ot->srna, "easing", gpencil_interpolation_easing_items, @@ -1649,6 +1652,7 @@ void GPENCIL_OT_interpolate_sequence(wmOperatorType *ot) "Easing", "Which ends of the segment between the preceding and following grease pencil frames " "easing interpolation is applied to"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL); RNA_def_float(ot->srna, "back", diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index 9d686f03bec..f0ada312d82 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -1374,6 +1374,7 @@ void ACTION_OT_interpolation_type(wmOperatorType *ot) /* id-props */ ot->prop = RNA_def_enum( ot->srna, "type", rna_enum_beztriple_interpolation_mode_items, 0, "Type", ""); + RNA_def_property_translation_context(ot->prop, BLT_I18NCONTEXT_ID_ACTION); } /* ******************** Set Easing Operator *********************** */ diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index b030d0778fa..4c1fcf5263a 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -1524,6 +1524,7 @@ void GRAPH_OT_interpolation_type(wmOperatorType *ot) /* Id-props */ ot->prop = RNA_def_enum( ot->srna, "type", rna_enum_beztriple_interpolation_mode_items, 0, "Type", ""); + RNA_def_property_translation_context(ot->prop, BLT_I18NCONTEXT_ID_ACTION); } /** \} */ diff --git a/source/blender/editors/space_view3d/view3d_navigate.c b/source/blender/editors/space_view3d/view3d_navigate.c index d1e7f6ffb12..daf534ce0ba 100644 --- a/source/blender/editors/space_view3d/view3d_navigate.c +++ b/source/blender/editors/space_view3d/view3d_navigate.c @@ -12,6 +12,8 @@ #include "BLI_math.h" #include "BLI_rect.h" +#include "BLT_translation.h" + #include "BKE_armature.h" #include "BKE_context.h" #include "BKE_gpencil_geom.h" @@ -1239,6 +1241,8 @@ void VIEW3D_OT_view_axis(wmOperatorType *ot) ot->prop = RNA_def_enum(ot->srna, "type", prop_view_items, 0, "View", "Preset viewpoint to use"); RNA_def_property_flag(ot->prop, PROP_SKIP_SAVE); + RNA_def_property_translation_context(ot->prop, BLT_I18NCONTEXT_EDITOR_VIEW3D); + prop = RNA_def_boolean( ot->srna, "align_active", 0, "Align Active", "Align to the active object's axis"); RNA_def_property_flag(prop, PROP_SKIP_SAVE); |