remove use of gettext: _("...") style translation now its handled by rna.
[blender.git] / release / scripts / startup / bl_ui / space_text.py
index 03baf8f34ca889a53e288e4d096089aa94b6429c..d0a3a53aa85fd9e69f42f7ecb8f97560de5e3bba 100644 (file)
@@ -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,19 +66,19 @@ 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):
     bl_space_type = 'TEXT_EDITOR'
     bl_region_type = 'UI'
-    bl_label = _("Properties")
+    bl_label = "Properties"
 
     def draw(self, context):
         layout = self.layout
@@ -110,7 +109,7 @@ class TEXT_PT_properties(Panel):
 class TEXT_PT_find(Panel):
     bl_space_type = 'TEXT_EDITOR'
     bl_region_type = 'UI'
-    bl_label = _("Find")
+    bl_label = "Find"
 
     def draw(self, context):
         layout = self.layout
@@ -137,12 +136,12 @@ 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):
-    bl_label = _("View")
+    bl_label = "View"
 
     def draw(self, context):
         layout = self.layout
@@ -157,15 +156,15 @@ 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'
 
 
 class TEXT_MT_text(Menu):
-    bl_label = _("Text")
+    bl_label = "Text"
 
     def draw(self, context):
         layout = self.layout
@@ -193,7 +192,7 @@ class TEXT_MT_text(Menu):
 
 
 class TEXT_MT_templates(Menu):
-    bl_label = _("Templates")
+    bl_label = "Templates"
 
     def draw(self, context):
         self.path_menu(bpy.utils.script_paths("templates"),
@@ -203,7 +202,7 @@ class TEXT_MT_templates(Menu):
 
 
 class TEXT_MT_edit_select(Menu):
-    bl_label = _("Select")
+    bl_label = "Select"
 
     def draw(self, context):
         layout = self.layout
@@ -213,7 +212,7 @@ class TEXT_MT_edit_select(Menu):
 
 
 class TEXT_MT_edit_markers(Menu):
-    bl_label = _("Markers")
+    bl_label = "Markers"
 
     def draw(self, context):
         layout = self.layout
@@ -224,7 +223,7 @@ class TEXT_MT_edit_markers(Menu):
 
 
 class TEXT_MT_format(Menu):
-    bl_label = _("Format")
+    bl_label = "Format"
 
     def draw(self, context):
         layout = self.layout
@@ -243,21 +242,21 @@ class TEXT_MT_format(Menu):
 
 
 class TEXT_MT_edit_to3d(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"),
+                        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
 
 
 class TEXT_MT_edit(Menu):
-    bl_label = _("Edit")
+    bl_label = "Edit"
 
     @classmethod
     def poll(cls, context):
@@ -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()