Fix status bar keymap items during modal operations
The status bar keymap items still don't get translated because the TIP_ translation introduced by rBe1974ae30e46 uses the wrong context: it uses the default context, while the extraction introduced in rB630b961f234e uses ID_WINDOWMANAGER. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15684
This commit is contained in:
parent
e79312df6e
commit
8a205b4036
|
@ -6458,13 +6458,13 @@ bool uiTemplateEventFromKeymapItem(struct uiLayout *layout,
|
|||
for (int j = 0; j < ARRAY_SIZE(icon_mod) && icon_mod[j]; j++) {
|
||||
uiItemL(layout, "", icon_mod[j]);
|
||||
}
|
||||
uiItemL(layout, TIP_(text), icon);
|
||||
uiItemL(layout, CTX_TIP_(BLT_I18NCONTEXT_ID_WINDOWMANAGER, text), icon);
|
||||
ok = true;
|
||||
}
|
||||
else if (text_fallback) {
|
||||
const char *event_text = WM_key_event_string(kmi->type, true);
|
||||
uiItemL(layout, event_text, ICON_NONE);
|
||||
uiItemL(layout, TIP_(text), ICON_NONE);
|
||||
uiItemL(layout, CTX_TIP_(BLT_I18NCONTEXT_ID_WINDOWMANAGER, text), ICON_NONE);
|
||||
ok = true;
|
||||
}
|
||||
return ok;
|
||||
|
|
Loading…
Reference in New Issue