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_text.py | |
parent | ae0124157f012aeda994534c21aebda1bae054cd (diff) |
remove use of gettext: _("...") style translation now its handled by rna.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 23e68487aae..d0a3a53aa85 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -19,7 +19,6 @@ # <pep8-80 compliant> import bpy from bpy.types import Header, Menu, Panel -from blf import gettext as _ class TEXT_HT_header(Header): @@ -67,13 +66,13 @@ class TEXT_HT_header(Header): row = layout.row() if text.filepath: if text.is_dirty: - row.label(text=_("File") + ": *%r " % text.filepath + _("(unsaved)")) + row.label(text="File" + ": *%r " % text.filepath + "(unsaved)") else: - row.label(text=_("File") + ": %r" % text.filepath) + row.label(text="File" + ": %r" % text.filepath) else: - row.label(text=_("Text: External") + row.label(text="Text: External" if text.library - else _("Text: Internal")) + else "Text: Internal") class TEXT_PT_properties(Panel): @@ -137,8 +136,8 @@ class TEXT_PT_find(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(Menu): @@ -157,10 +156,10 @@ class TEXT_MT_view(Menu): layout.separator() layout.operator("text.move", - text=_("Top of File"), + text="Top of File", ).type = 'FILE_TOP' layout.operator("text.move", - text=_("Bottom of File"), + text="Bottom of File", ).type = 'FILE_BOTTOM' @@ -249,10 +248,10 @@ class TEXT_MT_edit_to3d(Menu): layout = self.layout layout.operator("text.to_3d_object", - text=_("One Object"), + text="One Object", ).split_lines = False layout.operator("text.to_3d_object", - text=_("One Object Per Line"), + text="One Object Per Line", ).split_lines = True @@ -283,7 +282,7 @@ class TEXT_MT_edit(Menu): layout.separator() layout.operator("text.jump") - layout.operator("text.properties", text=_("Find...")) + layout.operator("text.properties", text="Find...") layout.separator() |