diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref_keymap.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref_keymap.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref_keymap.py b/release/scripts/startup/bl_ui/space_userpref_keymap.py index 4c634378ed2..a13d77942eb 100644 --- a/release/scripts/startup/bl_ui/space_userpref_keymap.py +++ b/release/scripts/startup/bl_ui/space_userpref_keymap.py @@ -21,6 +21,8 @@ import bpy from bpy.types import Menu from bpy.app.translations import pgettext_iface as iface_ +km_i18n_context = bpy.app.translations.contexts.id_windowmanager + class USERPREF_MT_keyconfigs(Menu): bl_label = "KeyPresets" @@ -79,7 +81,7 @@ class InputKeyMapPanel: row = col.row() row.prop(km, "show_expanded_children", text="", emboss=False) - row.label(text=km.name) + row.label(text=km.name, text_ctxt=km_i18n_context) row.label() row.label() @@ -110,7 +112,7 @@ class InputKeyMapPanel: # "Add New" at end of keymap item list col = self.indented_layout(col, level + 1) subcol = col.split(percentage=0.2).column() - subcol.operator("wm.keyitem_add", text="Add New", icon='ZOOMIN') + subcol.operator("wm.keyitem_add", text="Add New", text_ctxt=km_i18n_context, icon='ZOOMIN') col.separator() |