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/space_view3d
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/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_navigate.c4
1 files changed, 4 insertions, 0 deletions
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);