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:
authorCampbell Barton <ideasman42@gmail.com>2011-09-21 19:18:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-21 19:18:38 +0400
commitf4c56a879d946fb0a233307f72cd739e900f9f7c (patch)
treee9745cd2367e8cdd763ad515a9951b5f454c2056 /release/scripts/startup/bl_ui/space_graph.py
parentae0124157f012aeda994534c21aebda1bae054cd (diff)
remove use of gettext: _("...") style translation now its handled by rna.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_graph.py')
-rw-r--r--release/scripts/startup/bl_ui/space_graph.py57
1 files changed, 28 insertions, 29 deletions
diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py
index fd50d60bd45..d4b8c415a7f 100644
--- a/release/scripts/startup/bl_ui/space_graph.py
+++ b/release/scripts/startup/bl_ui/space_graph.py
@@ -20,7 +20,6 @@
import bpy
from bpy.types import Header, Menu
-from blf import gettext as _
class GRAPH_HT_header(Header):
@@ -83,9 +82,9 @@ class GRAPH_MT_view(Menu):
layout.separator()
if st.show_handles:
- layout.operator("graph.handles_view_toggle", icon='CHECKBOX_HLT', text=_("Show All Handles"))
+ layout.operator("graph.handles_view_toggle", icon='CHECKBOX_HLT', text="Show All Handles")
else:
- layout.operator("graph.handles_view_toggle", icon='CHECKBOX_DEHLT', text=_("Show All Handles"))
+ layout.operator("graph.handles_view_toggle", icon='CHECKBOX_DEHLT', text="Show All Handles")
layout.prop(st, "use_only_selected_curves_handles")
layout.prop(st, "use_only_selected_keyframe_handles")
layout.operator("anim.time_toggle")
@@ -113,23 +112,23 @@ class GRAPH_MT_select(Menu):
# This is a bit misleading as the operator's default text is "Select All" while it actually *toggles* All/None
layout.operator("graph.select_all_toggle")
- layout.operator("graph.select_all_toggle", text=_("Invert Selection")).invert = True
+ layout.operator("graph.select_all_toggle", text="Invert Selection").invert = True
layout.separator()
layout.operator("graph.select_border")
- layout.operator("graph.select_border", text=_("Border Axis Range")).axis_range = True
- layout.operator("graph.select_border", text=_("Border (Include Handles)")).include_handles = True
+ layout.operator("graph.select_border", text="Border Axis Range").axis_range = True
+ layout.operator("graph.select_border", text="Border (Include Handles)").include_handles = True
layout.separator()
- layout.operator("graph.select_column", text=_("Columns on Selected Keys")).mode = 'KEYS'
- layout.operator("graph.select_column", text=_("Column on Current Frame")).mode = 'CFRA'
+ layout.operator("graph.select_column", text="Columns on Selected Keys").mode = 'KEYS'
+ layout.operator("graph.select_column", text="Column on Current Frame").mode = 'CFRA'
- layout.operator("graph.select_column", text=_("Columns on Selected Markers")).mode = 'MARKERS_COLUMN'
- layout.operator("graph.select_column", text=_("Between Selected Markers")).mode = 'MARKERS_BETWEEN'
+ layout.operator("graph.select_column", text="Columns on Selected Markers").mode = 'MARKERS_COLUMN'
+ layout.operator("graph.select_column", text="Between Selected Markers").mode = 'MARKERS_BETWEEN'
layout.separator()
- layout.operator("graph.select_leftright", text=_("Before Current Frame")).mode = 'LEFT'
- layout.operator("graph.select_leftright", text=_("After Current Frame")).mode = 'RIGHT'
+ layout.operator("graph.select_leftright", text="Before Current Frame").mode = 'LEFT'
+ layout.operator("graph.select_leftright", text="After Current Frame").mode = 'RIGHT'
layout.separator()
layout.operator("graph.select_more")
@@ -147,14 +146,14 @@ class GRAPH_MT_marker(Menu):
#layout.operator_context = 'EXEC_REGION_WIN'
- layout.operator("marker.add", _("Add Marker"))
- layout.operator("marker.duplicate", text=_("Duplicate Marker"))
- layout.operator("marker.delete", text=_("Delete Marker"))
+ layout.operator("marker.add", "Add Marker")
+ layout.operator("marker.duplicate", text="Duplicate Marker")
+ layout.operator("marker.delete", text="Delete Marker")
layout.separator()
- layout.operator("marker.rename", text=_("Rename Marker"))
- layout.operator("marker.move", text=_("Grab/Move Marker"))
+ layout.operator("marker.rename", text="Rename Marker")
+ layout.operator("marker.move", text="Grab/Move Marker")
# TODO: pose markers for action edit mode only?
@@ -177,14 +176,14 @@ class GRAPH_MT_channel(Menu):
layout.separator()
layout.operator("anim.channels_editable_toggle")
layout.operator("anim.channels_visibility_set")
- layout.operator_menu_enum("graph.extrapolation_type", "type", text=_("Extrapolation Mode"))
+ layout.operator_menu_enum("graph.extrapolation_type", "type", text="Extrapolation Mode")
layout.separator()
layout.operator("anim.channels_expand")
layout.operator("anim.channels_collapse")
layout.separator()
- layout.operator_menu_enum("anim.channels_move", "direction", text=_("Move..."))
+ layout.operator_menu_enum("anim.channels_move", "direction", text="Move...")
layout.separator()
layout.operator("anim.channels_fcurves_enable")
@@ -196,10 +195,10 @@ class GRAPH_MT_key(Menu):
def draw(self, context):
layout = self.layout
- layout.menu("GRAPH_MT_key_transform", text=_("Transform"))
+ layout.menu("GRAPH_MT_key_transform", text="Transform")
- layout.operator_menu_enum("graph.snap", "type", text=_("Snap"))
- layout.operator_menu_enum("graph.mirror", "type", text=_("Mirror"))
+ layout.operator_menu_enum("graph.snap", "type", text="Snap")
+ layout.operator_menu_enum("graph.mirror", "type", text="Mirror")
layout.separator()
layout.operator("graph.keyframe_insert")
@@ -211,8 +210,8 @@ class GRAPH_MT_key(Menu):
layout.operator("graph.delete")
layout.separator()
- layout.operator_menu_enum("graph.handle_type", "type", text=_("Handle Type"))
- layout.operator_menu_enum("graph.interpolation_type", "type", text=_("Interpolation Mode"))
+ layout.operator_menu_enum("graph.handle_type", "type", text="Handle Type")
+ layout.operator_menu_enum("graph.interpolation_type", "type", text="Interpolation Mode")
layout.separator()
layout.operator("graph.clean")
@@ -225,7 +224,7 @@ class GRAPH_MT_key(Menu):
layout.operator("graph.paste")
layout.separator()
- layout.operator("graph.euler_filter", text=_("Discontinuity (Euler) Filter"))
+ layout.operator("graph.euler_filter", text="Discontinuity (Euler) Filter")
class GRAPH_MT_key_transform(Menu):
@@ -234,10 +233,10 @@ class GRAPH_MT_key_transform(Menu):
def draw(self, context):
layout = self.layout
- layout.operator("transform.translate", text=_("Grab/Move"))
- layout.operator("transform.transform", text=_("Extend")).mode = 'TIME_EXTEND'
- layout.operator("transform.rotate", text=_("Rotate"))
- layout.operator("transform.resize", text=_("Scale"))
+ layout.operator("transform.translate", text="Grab/Move")
+ layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND'
+ layout.operator("transform.rotate", text="Rotate")
+ layout.operator("transform.resize", text="Scale")
if __name__ == "__main__": # only for live edit.
bpy.utils.register_module(__name__)