remove use of gettext: _("...") style translation now its handled by rna.
[blender.git] / release / scripts / startup / bl_ui / space_text.py
index f3b8b9ce22129892dbd9be9808605fd1a16d215c..d0a3a53aa85fd9e69f42f7ecb8f97560de5e3bba 100644 (file)
@@ -66,9 +66,9 @@ class TEXT_HT_header(Header):
             row = layout.row()
             if text.filepath:
                 if text.is_dirty:
-                    row.label(text="File: *%r (unsaved)" % text.filepath)
+                    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"
                           if text.library
@@ -172,8 +172,9 @@ class TEXT_MT_text(Menu):
         st = context.space_data
         text = st.text
 
-        layout.column()
+        layout.operator_context = 'EXEC_AREA'
         layout.operator("text.new")
+        layout.operator_context = 'INVOKE_AREA'
         layout.operator("text.open")
 
         if text:
@@ -189,11 +190,6 @@ class TEXT_MT_text(Menu):
             layout.column()
             layout.operator("text.run_script")
 
-            #ifdef WITH_PYTHON
-            # XXX if(BPY_is_pyconstraint(text))
-            # XXX   uiMenuItemO(head, 0, "text.refresh_pyconstraints");
-            #endif
-
 
 class TEXT_MT_templates(Menu):
     bl_label = "Templates"