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:
Diffstat (limited to 'release/scripts/startup/bl_operators/object.py')
-rw-r--r--release/scripts/startup/bl_operators/object.py71
1 files changed, 35 insertions, 36 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 6c9f27afaa5..bd879fa8679 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -21,28 +21,29 @@
import bpy
from bpy.types import Operator
from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty
+from blf import gettext as _
class SelectPattern(Operator):
'''Select object matching a naming pattern'''
bl_idname = "object.select_pattern"
- bl_label = "Select Pattern"
+ bl_label = _("Select Pattern")
bl_options = {'REGISTER', 'UNDO'}
pattern = StringProperty(
- name="Pattern",
- description="Name filter using '*' and '?' wildcard chars",
+ name=_("Pattern"),
+ description=_("Name filter using '*' and '?' wildcard chars"),
maxlen=32,
default="*",
)
case_sensitive = BoolProperty(
- name="Case Sensitive",
- description="Do a case sensitive compare",
+ name=_("Case Sensitive"),
+ description=_("Do a case sensitive compare"),
default=False,
)
extend = BoolProperty(
- name="Extend",
- description="Extend the existing selection",
+ name=_("Extend"),
+ description=_("Extend the existing selection"),
default=True,
)
@@ -103,7 +104,7 @@ class SelectPattern(Operator):
class SelectCamera(Operator):
'''Select object matching a naming pattern'''
bl_idname = "object.select_camera"
- bl_label = "Select Camera"
+ bl_label = _("Select Camera")
bl_options = {'REGISTER', 'UNDO'}
@classmethod
@@ -125,20 +126,20 @@ class SelectHierarchy(Operator):
'''Select object relative to the active objects position''' \
'''in the hierarchy'''
bl_idname = "object.select_hierarchy"
- bl_label = "Select Hierarchy"
+ bl_label = _("Select Hierarchy")
bl_options = {'REGISTER', 'UNDO'}
direction = EnumProperty(
- items=(('PARENT', "Parent", ""),
- ('CHILD', "Child", ""),
+ items=(('PARENT', _("Parent"), ""),
+ ('CHILD', _("Child"), "")
),
- name="Direction",
- description="Direction to select in the hierarchy",
+ name=_("Direction"),
+ description=_("Direction to select in the hierarchy"),
default='PARENT')
extend = BoolProperty(
- name="Extend",
- description="Extend the existing selection",
+ name=_("Extend"),
+ description=_("Extend the existing selection"),
default=False,
)
@@ -192,20 +193,19 @@ class SubdivisionSet(Operator):
'''Sets a Subdivision Surface Level (1-5)'''
bl_idname = "object.subdivision_set"
- bl_label = "Subdivision Set"
+ bl_label = _("Subdivision Set")
bl_options = {'REGISTER', 'UNDO'}
level = IntProperty(
- name="Level",
+ name=_("Level"),
min=-100, max=100,
soft_min=-6, soft_max=6,
default=1,
)
relative = BoolProperty(
- name="Relative",
- description=("Apply the subsurf level as an offset "
- "relative to the current level"),
+ name=_("Relative"),
+ description=_("Apply the subsurf level as an offset relative to the current level"),
default=False,
)
@@ -273,31 +273,30 @@ class ShapeTransfer(Operator):
'''applying the relative offsets'''
bl_idname = "object.shape_key_transfer"
- bl_label = "Transfer Shape Key"
+ bl_label = _("Transfer Shape Key")
bl_options = {'REGISTER', 'UNDO'}
mode = EnumProperty(
items=(('OFFSET',
- "Offset",
- "Apply the relative positional offset",
+ _("Offset"),
+ _("Apply the relative positional offset")
),
('RELATIVE_FACE',
- "Relative Face",
- "Calculate relative position (using faces).",
+ _("Relative Face"),
+ _("Calculate relative position (using faces)."),
),
('RELATIVE_EDGE',
- "Relative Edge",
- "Calculate relative position (using edges).",
+ _("Relative Edge"),
+ _("Calculate relative position (using edges)."),
),
),
- name="Transformation Mode",
- description="Relative shape positions to the new shape method",
+ name=_("Transformation Mode"),
+ description=_("Relative shape positions to the new shape method"),
default='OFFSET',
)
use_clamp = BoolProperty(
- name="Clamp Offset",
- description=("Clamp the transformation to the distance each "
- "vertex moves in the original shape."),
+ name=_("Clamp Offset"),
+ description=_("Clamp the transformation to the distance each vertex moves in the original shape."),
default=False,
)
@@ -515,7 +514,7 @@ class ShapeTransfer(Operator):
class JoinUVs(Operator):
'''Copy UV Layout to objects with matching geometry'''
bl_idname = "object.join_uvs"
- bl_label = "Join as UVs"
+ bl_label = _("Join as UVs")
@classmethod
def poll(cls, context):
@@ -583,7 +582,7 @@ class JoinUVs(Operator):
class MakeDupliFace(Operator):
'''Make linked objects into dupli-faces'''
bl_idname = "object.make_dupli_face"
- bl_label = "Make Dupli-Face"
+ bl_label = _("Make Dupli-Face")
@classmethod
def poll(cls, context):
@@ -658,7 +657,7 @@ class IsolateTypeRender(Operator):
'''Hide unselected render objects of same type as active ''' \
'''by setting the hide render flag'''
bl_idname = "object.isolate_type_render"
- bl_label = "Restrict Render Unselected"
+ bl_label = _("Restrict Render Unselected")
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
@@ -678,7 +677,7 @@ class IsolateTypeRender(Operator):
class ClearAllRestrictRender(Operator):
'''Reveal all render objects by setting the hide render flag'''
bl_idname = "object.hide_render_clear_all"
- bl_label = "Clear All Restrict Render"
+ bl_label = _("Clear All Restrict Render")
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):