i18n: fake_gettext is no longer needed for python
[blender.git] / release / scripts / startup / bl_operators / wm.py
index 873d3f6533558024783f1d9bc8f0cce623474e25..fae38eb1cef1d5c2e471fdb15aafdc009fdedc0c 100644 (file)
@@ -1174,6 +1174,13 @@ class WM_OT_get_messages(Operator):
     def _walkClass(self, cls, messages):
         self._walkRNA(cls.bl_rna, messages)
 
     def _walkClass(self, cls, messages):
         self._walkRNA(cls.bl_rna, messages)
 
+    def _walk_keymap_hierarchy(self, hier, messages):
+        for lvl in hier:
+            self._putMessage(messages, lvl[0])
+
+            if lvl[3]:
+                self._walk_keymap_hierarchy(lvl[3], messages)
+
     def execute(self, context):
         messages = {}
 
     def execute(self, context):
         messages = {}
 
@@ -1186,6 +1193,10 @@ class WM_OT_get_messages(Operator):
         for cls in bpy.types.Operator.__subclasses__():
             self._walkClass(cls, messages)
 
         for cls in bpy.types.Operator.__subclasses__():
             self._walkClass(cls, messages)
 
+        from bl_ui.space_userpref_keymap import KM_HIERARCHY
+
+        self._walk_keymap_hierarchy(KM_HIERARCHY, messages)
+
         text = bpy.data.texts.new(name="messages.txt")
         for message in messages:
             text.write(message + "\n")
         text = bpy.data.texts.new(name="messages.txt")
         for message in messages:
             text.write(message + "\n")