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_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py47
1 files changed, 23 insertions, 24 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 6bd2168dab9..e322a6dcd13 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -19,7 +19,6 @@
# <pep8 compliant>
import bpy
from bpy.types import Menu, Panel
-from blf import gettext as _
class View3DPanel():
@@ -32,33 +31,33 @@ class View3DPanel():
# History/Repeat tools
def draw_repeat_tools(context, layout):
col = layout.column(align=True)
- col.label(text=_("Repeat:"))
+ col.label(text="Repeat:")
col.operator("screen.repeat_last")
- col.operator("screen.repeat_history", text=_("History..."))
+ col.operator("screen.repeat_history", text="History...")
# Keyframing tools
def draw_keyframing_tools(context, layout):
col = layout.column(align=True)
- col.label(text=_("Keyframes:"))
+ col.label(text="Keyframes:")
row = col.row()
- row.operator("anim.keyframe_insert_menu", text=_("Insert"))
- row.operator("anim.keyframe_delete_v3d", text=_("Remove"))
+ row.operator("anim.keyframe_insert_menu", text="Insert")
+ row.operator("anim.keyframe_delete_v3d", text="Remove")
# Grease Pencil tools
def draw_gpencil_tools(context, layout):
col = layout.column(align=True)
- col.label(text=_("Grease Pencil:"))
+ col.label(text="Grease Pencil:")
row = col.row()
- row.operator("gpencil.draw", text=_("Draw")).mode = 'DRAW'
- row.operator("gpencil.draw", text=_("Line")).mode = 'DRAW_STRAIGHT'
+ row.operator("gpencil.draw", text="Draw").mode = 'DRAW'
+ row.operator("gpencil.draw", text="Line").mode = 'DRAW_STRAIGHT'
row = col.row()
- row.operator("gpencil.draw", text=_("Poly")).mode = 'DRAW_POLY'
- row.operator("gpencil.draw", text=_("Erase")).mode = 'ERASER'
+ row.operator("gpencil.draw", text="Poly").mode = 'DRAW_POLY'
+ row.operator("gpencil.draw", text="Erase").mode = 'ERASER'
row = col.row()
row.prop(context.tool_settings, "use_grease_pencil_sessions")
@@ -74,16 +73,16 @@ class VIEW3D_PT_tools_objectmode(View3DPanel, Panel):
layout = self.layout
col = layout.column(align=True)
- col.label(text=_("Transform:"))
+ col.label(text="Transform:")
col.operator("transform.translate")
col.operator("transform.rotate")
- col.operator("transform.resize", text=_("Scale"))
+ col.operator("transform.resize", text="Scale")
col = layout.column(align=True)
- col.operator("object.origin_set", text=_("Origin"))
+ col.operator("object.origin_set", text="Origin")
col = layout.column(align=True)
- col.label(text=_("Object:"))
+ col.label(text="Object:")
col.operator("object.duplicate_move")
col.operator("object.delete")
col.operator("object.join")
@@ -92,17 +91,17 @@ class VIEW3D_PT_tools_objectmode(View3DPanel, Panel):
if active_object and active_object.type == 'MESH':
col = layout.column(align=True)
- col.label(text=_("Shading:"))
+ col.label(text="Shading:")
row = col.row(align=True)
- row.operator("object.shade_smooth", text=_("Smooth"))
- row.operator("object.shade_flat", text=_("Flat"))
+ row.operator("object.shade_smooth", text="Smooth")
+ row.operator("object.shade_flat", text="Flat")
draw_keyframing_tools(context, layout)
col = layout.column(align=True)
- col.label(text=_("Motion Paths:"))
- col.operator("object.paths_calculate", text=_("Calculate Paths"))
- col.operator("object.paths_clear", text=_("Clear Paths"))
+ col.label(text="Motion Paths:")
+ col.operator("object.paths_calculate", text="Calculate Paths")
+ col.operator("object.paths_clear", text="Clear Paths")
draw_repeat_tools(context, layout)
@@ -123,8 +122,8 @@ class VIEW3D_PT_tools_meshedit(View3DPanel, Panel):
col.operator("transform.translate")
col.operator("transform.rotate")
col.operator("transform.resize", text="Scale")
- col.operator("transform.shrink_fatten", text=_("Shrink/Fatten"))
- col.operator("transform.push_pull", text=_("Push/Pull"))
+ col.operator("transform.shrink_fatten", text="Shrink/Fatten")
+ col.operator("transform.push_pull", text="Push/Pull")
col = layout.column(align=True)
col.label(text="Deform:")
@@ -1017,7 +1016,7 @@ class VIEW3D_PT_tools_brush_appearance(PaintPanel, Panel):
brush = settings.brush
if brush is None: # unlikely but can happen
- layout.label(text=_("Brush Unset"))
+ layout.label(text="Brush Unset")
return
col = layout.column()