diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/space_time.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_time.py | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index db009fe43c2..157fe9939e8 100644 --- a/release/scripts/startup/bl_ui/space_time.py +++ b/release/scripts/startup/bl_ui/space_time.py @@ -19,6 +19,7 @@ # <pep8 compliant> import bpy from bpy.types import Header, Menu +from blf import gettext as _ class TIME_HT_header(Header): @@ -43,11 +44,11 @@ class TIME_HT_header(Header): row = layout.row(align=True) if not scene.use_preview_range: - row.prop(scene, "frame_start", text="Start") - row.prop(scene, "frame_end", text="End") + row.prop(scene, "frame_start", text=_("Start")) + row.prop(scene, "frame_end", text=_("End")) else: - row.prop(scene, "frame_preview_start", text="Start") - row.prop(scene, "frame_preview_end", text="End") + row.prop(scene, "frame_preview_start", text=_("Start")) + row.prop(scene, "frame_preview_end", text=_("End")) layout.prop(scene, "frame_current", text="") @@ -92,7 +93,7 @@ class TIME_HT_header(Header): class TIME_MT_view(Menu): - bl_label = "View" + bl_label = _("View") def draw(self, context): layout = self.layout @@ -117,7 +118,7 @@ class TIME_MT_view(Menu): class TIME_MT_cache(Menu): - bl_label = "Cache" + bl_label = _("Cache") def draw(self, context): layout = self.layout @@ -137,19 +138,19 @@ class TIME_MT_cache(Menu): class TIME_MT_frame(Menu): - bl_label = "Frame" + bl_label = _("Frame") def draw(self, context): layout = self.layout - layout.operator("marker.add", text="Add Marker") - layout.operator("marker.duplicate", text="Duplicate Marker") - layout.operator("marker.delete", text="Delete Marker") + layout.operator("marker.add", text=_("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")) layout.separator() @@ -163,7 +164,7 @@ class TIME_MT_frame(Menu): class TIME_MT_playback(Menu): - bl_label = "Playback" + bl_label = _("Playback") def draw(self, context): layout = self.layout @@ -181,14 +182,14 @@ class TIME_MT_playback(Menu): layout.separator() - layout.prop(scene, "use_frame_drop", text="Frame Dropping") - layout.prop(scene, "use_audio_sync", text="AV-sync", icon='SPEAKER') + layout.prop(scene, "use_frame_drop", text=_("Frame Dropping")) + layout.prop(scene, "use_audio_sync", text=_("AV-sync"), icon='SPEAKER') layout.prop(scene, "use_audio") layout.prop(scene, "use_audio_scrub") class TIME_MT_autokey(Menu): - bl_label = "Auto-Keyframing Mode" + bl_label = _("Auto-Keyframing Mode") def draw(self, context): layout = self.layout |