Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-03-03 16:50:52 +0300
committerBastien Montagne <bastien@blender.org>2022-03-03 16:52:45 +0300
commit1b863041c9746029bd6d867539550043944822d9 (patch)
tree4f95d9245ab912dff0db4cf32f90b6485a951196 /source/blender/editors/gpencil
parent0f7793303118a7e3bf62168e9e8bca4d9e28f873 (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/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_interpolate.c18
1 files changed, 11 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",