diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-21 19:18:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-21 19:18:38 +0400 |
commit | f4c56a879d946fb0a233307f72cd739e900f9f7c (patch) | |
tree | e9745cd2367e8cdd763ad515a9951b5f454c2056 /release/scripts/startup/bl_ui/space_nla.py | |
parent | ae0124157f012aeda994534c21aebda1bae054cd (diff) |
remove use of gettext: _("...") style translation now its handled by rna.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_nla.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_nla.py | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py index 8a4b0a61291..ffead81c507 100644 --- a/release/scripts/startup/bl_ui/space_nla.py +++ b/release/scripts/startup/bl_ui/space_nla.py @@ -20,7 +20,6 @@ import bpy from bpy.types import Header, Menu -from blf import gettext as _ class NLA_HT_header(Header): @@ -63,7 +62,7 @@ class NLA_MT_view(Menu): layout.prop(st, "use_realtime_update") layout.prop(st, "show_frame_indicator") - layout.operator("anim.time_toggle", text=_("Show Frames") if st.show_seconds else _("Show Seconds")) + layout.operator("anim.time_toggle", text="Show Frames" if st.show_seconds else "Show Seconds") layout.prop(st, "show_strip_curves") @@ -88,33 +87,33 @@ class NLA_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("nla.select_all_toggle") - layout.operator("nla.select_all_toggle", text=_("Invert Selection")).invert = True + layout.operator("nla.select_all_toggle", text="Invert Selection").invert = True layout.separator() layout.operator("nla.select_border") - layout.operator("nla.select_border", text=_("Border Axis Range")).axis_range = True + layout.operator("nla.select_border", text="Border Axis Range").axis_range = True layout.separator() - layout.operator("nla.select_leftright", text=_("Before Current Frame")).mode = 'LEFT' - layout.operator("nla.select_leftright", text=_("After Current Frame")).mode = 'RIGHT' + layout.operator("nla.select_leftright", text="Before Current Frame").mode = 'LEFT' + layout.operator("nla.select_leftright", text="After Current Frame").mode = 'RIGHT' class NLA_MT_marker(Menu): - bl_label = _("Marker") + bl_label = "Marker" def draw(self, context): layout = self.layout #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") class NLA_MT_edit(Menu): @@ -125,9 +124,9 @@ class NLA_MT_edit(Menu): scene = context.scene - layout.menu("NLA_MT_edit_transform", text=_("Transform")) + layout.menu("NLA_MT_edit_transform", text="Transform") - layout.operator_menu_enum("nla.snap", "type", text=_("Snap")) + layout.operator_menu_enum("nla.snap", "type", text="Snap") layout.separator() layout.operator("nla.duplicate") @@ -149,14 +148,14 @@ class NLA_MT_edit(Menu): # TODO: this really belongs more in a "channel" (or better, "track") menu layout.separator() - layout.operator_menu_enum("anim.channels_move", "direction", text=_("Track Ordering...")) + layout.operator_menu_enum("anim.channels_move", "direction", text="Track Ordering...") layout.separator() # TODO: names of these tools for 'tweakmode' need changing? if scene.is_nla_tweakmode: - layout.operator("nla.tweakmode_exit", text=_("Stop Tweaking Strip Actions")) + layout.operator("nla.tweakmode_exit", text="Stop Tweaking Strip Actions") else: - layout.operator("nla.tweakmode_enter", text=_("Start Tweaking Strip Actions")) + layout.operator("nla.tweakmode_enter", text="Start Tweaking Strip Actions") class NLA_MT_add(Menu): @@ -175,7 +174,7 @@ class NLA_MT_add(Menu): layout.separator() layout.operator("nla.tracks_add") - layout.operator("nla.tracks_add", text=_("Add Tracks Above Selected")).above_selected = True + layout.operator("nla.tracks_add", text="Add Tracks Above Selected").above_selected = True class NLA_MT_edit_transform(Menu): @@ -184,9 +183,9 @@ class NLA_MT_edit_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.transform", text=_("Scale")).mode = 'TIME_SCALE' + layout.operator("transform.translate", text="Grab/Move") + layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND' + layout.operator("transform.transform", text="Scale").mode = 'TIME_SCALE' if __name__ == "__main__": # only for live edit. bpy.utils.register_module(__name__) |