diff options
author | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-07-08 08:32:45 +0400 |
---|---|---|
committer | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-07-08 08:32:45 +0400 |
commit | b4c02ee72218fd4c76f7659db2e994895f67dc22 (patch) | |
tree | 77a1475167cea20990181ae0aafcc82295b07cf9 /release/scripts/startup/bl_ui/space_text.py | |
parent | 9b8538c69c14aaf9b991ae23e5faa6429c701c37 (diff) |
finish user preference dlg's input handles
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 0fc8d937f66..0c3da2f5e1b 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -18,6 +18,7 @@ # <pep8 compliant> import bpy +from blf import gettext as _ class TEXT_HT_header(bpy.types.Header): @@ -73,7 +74,7 @@ class TEXT_HT_header(bpy.types.Header): class TEXT_PT_properties(bpy.types.Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' - bl_label = "Properties" + bl_label = _("Properties") def draw(self, context): layout = self.layout @@ -104,7 +105,7 @@ class TEXT_PT_properties(bpy.types.Panel): class TEXT_PT_find(bpy.types.Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' - bl_label = "Find" + bl_label = _("Find") def draw(self, context): layout = self.layout @@ -131,12 +132,12 @@ class TEXT_PT_find(bpy.types.Panel): # settings layout.prop(st, "use_match_case") row = layout.row() - row.prop(st, "use_find_wrap", text="Wrap") - row.prop(st, "use_find_all", text="All") + row.prop(st, "use_find_wrap", text=_("Wrap")) + row.prop(st, "use_find_all", text=_("All")) class TEXT_MT_view(bpy.types.Menu): - bl_label = "View" + bl_label = _("View") def draw(self, context): layout = self.layout @@ -150,12 +151,12 @@ class TEXT_MT_view(bpy.types.Menu): layout.separator() - layout.operator("text.move", text="Top of File").type = 'FILE_TOP' - layout.operator("text.move", text="Bottom of File").type = 'FILE_BOTTOM' + layout.operator("text.move", text=_("Top of File")).type = 'FILE_TOP' + layout.operator("text.move", text=_("Bottom of File")).type = 'FILE_BOTTOM' class TEXT_MT_text(bpy.types.Menu): - bl_label = "Text" + bl_label = _("Text") def draw(self, context): layout = self.layout @@ -194,14 +195,14 @@ class TEXT_MT_templates(bpy.types.Menu): ''' Creates the menu items by scanning scripts/templates ''' - bl_label = "Script Templates" + bl_label = _("Script Templates") def draw(self, context): self.path_menu(bpy.utils.script_paths("templates"), "text.open", {"internal": True}) class TEXT_MT_edit_select(bpy.types.Menu): - bl_label = "Select" + bl_label = _("Select") def draw(self, context): layout = self.layout @@ -211,7 +212,7 @@ class TEXT_MT_edit_select(bpy.types.Menu): class TEXT_MT_edit_markers(bpy.types.Menu): - bl_label = "Markers" + bl_label = _("Markers") def draw(self, context): layout = self.layout @@ -222,7 +223,7 @@ class TEXT_MT_edit_markers(bpy.types.Menu): class TEXT_MT_format(bpy.types.Menu): - bl_label = "Format" + bl_label = _("Format") def draw(self, context): layout = self.layout @@ -241,17 +242,17 @@ class TEXT_MT_format(bpy.types.Menu): class TEXT_MT_edit_to3d(bpy.types.Menu): - bl_label = "Text To 3D Object" + bl_label = _("Text To 3D Object") def draw(self, context): layout = self.layout - layout.operator("text.to_3d_object", text="One Object").split_lines = False - layout.operator("text.to_3d_object", text="One Object Per Line").split_lines = True + layout.operator("text.to_3d_object", text=_("One Object")).split_lines = False + layout.operator("text.to_3d_object", text=_("One Object Per Line")).split_lines = True class TEXT_MT_edit(bpy.types.Menu): - bl_label = "Edit" + bl_label = _("Edit") @classmethod def poll(cls, context): @@ -277,7 +278,7 @@ class TEXT_MT_edit(bpy.types.Menu): layout.separator() layout.operator("text.jump") - layout.operator("text.properties", text="Find...") + layout.operator("text.properties", text=_("Find...")) layout.separator() |