diff options
author | Bastien Montagne <bastien@blender.org> | 2022-02-28 16:36:21 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-02-28 16:37:07 +0300 |
commit | db3f5ae48aca8fbc9922a94801c33b1120533cd6 (patch) | |
tree | b15083c2db77cb80a974e482bfbffff27378ff4c | |
parent | 1e848281f94ff11d8a037469c34bd645d41e3ada (diff) |
Fix T95506: Separate strings for "Back" (operator).
Add a new `EDITOR_VIEW3D` context to those view orientations.
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 5dedb3c4029..cd0306d31fd 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1197,23 +1197,24 @@ class VIEW3D_MT_view_viewpoint(Menu): def draw(self, _context): layout = self.layout + i18n_text_ctxt = bpy.app.translations.contexts_C_to_py['BLT_I18NCONTEXT_EDITOR_VIEW3D'] - layout.operator("view3d.view_camera", text="Camera") + layout.operator("view3d.view_camera", text="Camera", text_ctxt=i18n_text_ctxt) layout.separator() - layout.operator("view3d.view_axis", text="Top").type = 'TOP' - layout.operator("view3d.view_axis", text="Bottom").type = 'BOTTOM' + layout.operator("view3d.view_axis", text="Top", text_ctxt=i18n_text_ctxt).type = 'TOP' + layout.operator("view3d.view_axis", text="Bottom", text_ctxt=i18n_text_ctxt).type = 'BOTTOM' layout.separator() - layout.operator("view3d.view_axis", text="Front").type = 'FRONT' - layout.operator("view3d.view_axis", text="Back").type = 'BACK' + layout.operator("view3d.view_axis", text="Front", text_ctxt=i18n_text_ctxt).type = 'FRONT' + layout.operator("view3d.view_axis", text="Back", text_ctxt=i18n_text_ctxt).type = 'BACK' layout.separator() - layout.operator("view3d.view_axis", text="Right").type = 'RIGHT' - layout.operator("view3d.view_axis", text="Left").type = 'LEFT' + layout.operator("view3d.view_axis", text="Right", text_ctxt=i18n_text_ctxt).type = 'RIGHT' + layout.operator("view3d.view_axis", text="Left", text_ctxt=i18n_text_ctxt).type = 'LEFT' class VIEW3D_MT_view_navigation(Menu): @@ -1280,31 +1281,31 @@ class VIEW3D_MT_view_align_selected(Menu): def draw(self, _context): layout = self.layout - props = layout.operator("view3d.view_axis", text="Top") + props = layout.operator("view3d.view_axis", text="Top", text_ctxt=i18n_text_ctxt) props.align_active = True props.type = 'TOP' - props = layout.operator("view3d.view_axis", text="Bottom") + props = layout.operator("view3d.view_axis", text="Bottom", text_ctxt=i18n_text_ctxt) props.align_active = True props.type = 'BOTTOM' layout.separator() - props = layout.operator("view3d.view_axis", text="Front") + props = layout.operator("view3d.view_axis", text="Front", text_ctxt=i18n_text_ctxt) props.align_active = True props.type = 'FRONT' - props = layout.operator("view3d.view_axis", text="Back") + props = layout.operator("view3d.view_axis", text="Back", text_ctxt=i18n_text_ctxt) props.align_active = True props.type = 'BACK' layout.separator() - props = layout.operator("view3d.view_axis", text="Right") + props = layout.operator("view3d.view_axis", text="Right", text_ctxt=i18n_text_ctxt) props.align_active = True props.type = 'RIGHT' - props = layout.operator("view3d.view_axis", text="Left") + props = layout.operator("view3d.view_axis", text="Left", text_ctxt=i18n_text_ctxt) props.align_active = True props.type = 'LEFT' |