more ui api changes.
[blender.git] / release / scripts / ui / space_console.py
index eec69d12db01931d33d89f37a8fbf45c390398a9..63e8055b148f331644a91cd0cf6782b7c5d7171d 100644 (file)
@@ -101,7 +101,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):