Sculpt:
[blender.git] / release / scripts / ui / space_console.py
index eec69d1..e4c4072 100644 (file)
@@ -69,6 +69,7 @@ class CONSOLE_MT_console(bpy.types.Menu):
         layout.operator("console.copy")
         layout.operator("console.paste")
         layout.menu("CONSOLE_MT_language")
+        layout.itemM("CONSOLE_MT_language")
 
 
 class CONSOLE_MT_report(bpy.types.Menu):
@@ -82,6 +83,8 @@ class CONSOLE_MT_report(bpy.types.Menu):
         layout.operator("console.report_delete")
         layout.operator("console.report_copy")
 
+class CONSOLE_MT_language(bpy.types.Menu):
+    bl_label = "Languages..."
 
 class CONSOLE_MT_language(bpy.types.Menu):
     bl_label = "Languages..."
@@ -101,7 +104,7 @@ class CONSOLE_MT_language(bpy.types.Menu):
         languages.sort()
 
         for language in languages:
-            layout.operator_string("console.language", "language", language, text=language[0].upper() + language[1:])
+            layout.operator("console.language", text=language[0].upper() + language[1:]).language = language
 
 
 def add_scrollback(text, text_type):