diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-03-25 15:35:42 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-03-25 15:35:42 +0400 |
commit | 4cb9414b397e49ca246c672bf79096cc192b24a8 (patch) | |
tree | 7357efce6b8115d343aa20710e95ef1ac18ec636 /release/scripts/modules/bl_i18n_utils/bl_extract_messages.py | |
parent | 2cd0f0d2feac9154d5a075faf37dfba503c744a1 (diff) |
I18n: use id_windowmanager context for keymap idnames. Solves some issues with those names (notably "Clip" one, and "Screen" too) in some translations. Also move "Key" as "Keyboard" (opposed to "Keyframe") to same context.
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/bl_extract_messages.py')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/bl_extract_messages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py index d2b33ab43cc..ea162557c95 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -365,9 +365,10 @@ def dump_messages_rna(msgs, reports, settings): walk_properties(cls) def walk_keymap_hierarchy(hier, msgsrc_prev): + km_i18n_context = bpy.app.translations.contexts.id_windowmanager for lvl in hier: msgsrc = msgsrc_prev + "." + lvl[1] - process_msg(msgs, default_context, lvl[0], msgsrc, reports, None, settings) + process_msg(msgs, km_i18n_context, lvl[0], msgsrc, reports, None, settings) if lvl[3]: walk_keymap_hierarchy(lvl[3], msgsrc) @@ -396,7 +397,6 @@ def dump_messages_rna(msgs, reports, settings): # And parse keymaps! from bpy_extras.keyconfig_utils import KM_HIERARCHY - walk_keymap_hierarchy(KM_HIERARCHY, "KM_HIERARCHY") |