I18n: Disambiguate "Mirror"
"Mirror" can mean: - To symmetrize something (i.e. generate a new mirrored copy of it or edit it in a symmetric fashion). - To flip something (i.e. invert its values along X, Y or Z axes). - To repeat a texture in a mirrored fashion outside its bounds. Reported by Gabriel Gazzán in #43295.
This commit is contained in:
committed by
Bastien Montagne
parent
0fb80f698a
commit
afa51a5d54
@@ -517,7 +517,7 @@ class TEXTURE_PT_image_mapping(TextureTypePanel, Panel):
|
||||
sub.prop(tex, "repeat_x", text="Repeat X")
|
||||
sub.prop(tex, "repeat_y", text="Y")
|
||||
|
||||
col = flow.column(heading="Mirror")
|
||||
col = flow.column(heading="Mirror", heading_ctxt=i18n_contexts.id_image)
|
||||
sub = col.column()
|
||||
sub.active = (tex.repeat_x > 1)
|
||||
sub.prop(tex, "use_mirror_x", text="X")
|
||||
|
||||
@@ -347,6 +347,7 @@ class IMAGE_MT_uvs_snap(Menu):
|
||||
|
||||
class IMAGE_MT_uvs_mirror(Menu):
|
||||
bl_label = "Mirror"
|
||||
bl_translation_context = i18n_contexts.operator_default
|
||||
|
||||
def draw(self, _context):
|
||||
layout = self.layout
|
||||
|
||||
@@ -2483,7 +2483,7 @@ class SEQUENCER_PT_adjust_transform(SequencerButtonsPanel, Panel):
|
||||
col = layout.column(align=True)
|
||||
col.prop(strip.transform, "origin")
|
||||
|
||||
col = layout.column(heading="Mirror", align=True)
|
||||
col = layout.column(heading="Mirror", align=True, heading_ctxt=i18n_contexts.id_image)
|
||||
col.prop(strip, "use_flip_x", text="X", toggle=True)
|
||||
col.prop(strip, "use_flip_y", text="Y", toggle=True)
|
||||
|
||||
|
||||
@@ -1382,6 +1382,7 @@ class VIEW3D_MT_transform_armature(VIEW3D_MT_transform_base, Menu):
|
||||
|
||||
class VIEW3D_MT_mirror(Menu):
|
||||
bl_label = "Mirror"
|
||||
bl_translation_context = i18n_contexts.operator_default
|
||||
|
||||
def draw(self, _context):
|
||||
layout = self.layout
|
||||
@@ -3595,7 +3596,7 @@ class VIEW3D_MT_paint_weight(Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator("object.vertex_group_mirror", text="Mirror")
|
||||
layout.operator("object.vertex_group_mirror", text="Mirror", text_ctxt=i18n_contexts.default)
|
||||
layout.operator("object.vertex_group_invert", text="Invert")
|
||||
layout.operator("object.vertex_group_clean", text="Clean")
|
||||
|
||||
@@ -8372,7 +8373,7 @@ class VIEW3D_MT_greasepencil_edit_context_menu(Menu):
|
||||
|
||||
col.separator()
|
||||
|
||||
col.menu("VIEW3D_MT_mirror", text="Mirror")
|
||||
col.menu("VIEW3D_MT_mirror", text="Mirror", text_ctxt=i18n_contexts.operator_default)
|
||||
|
||||
col.separator()
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "BLI_time.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BLT_translation.hh"
|
||||
|
||||
#include "BKE_bvhutils.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_customdata.hh"
|
||||
@@ -3723,6 +3725,7 @@ void PARTICLE_OT_mirror(wmOperatorType *ot)
|
||||
{
|
||||
/* identifiers */
|
||||
ot->name = "Mirror";
|
||||
ot->translation_context = BLT_I18NCONTEXT_DEFAULT;
|
||||
ot->idname = "PARTICLE_OT_mirror";
|
||||
ot->description = "Duplicate and mirror the selected particles along the local X axis";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user