mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Check hotkey conflicts case-insensitive
This is needed to catch conflicts between uppercase and lowercase hotkeys of the same letter, as seen with `(B)enannt` and `A(b)lehnen` in the german utils translations.
This commit is contained in:
parent
53d812cfd2
commit
07bd11390e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class TestHotkeyConflicts(AATest):
|
|||
keys = dict()
|
||||
for key in params:
|
||||
text = t.gettext(CMDS[key])
|
||||
hotkey = get_translated_hotkey(text)
|
||||
hotkey = get_translated_hotkey(text).lower()
|
||||
|
||||
if keys.get(hotkey):
|
||||
raise Exception("Hotkey conflict: '%s' and '%s' in language %s" % (keys[hotkey], text, language))
|
||||
|
|
Loading…
Add table
Reference in a new issue