index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | advaithm <advaith.madhukar@gmail.com> | 2021-04-22 19:11:30 +0530 |
---|---|---|
committer | advaithm <advaith.madhukar@gmail.com> | 2021-04-22 19:11:30 +0530 |
commit | fc53d145c89d1740127f0ac93b27b92ae41e9c54 (patch) | |
tree | 79e877f4a3ce7a004c4aff75beaa84e1af5eeb86 /archinstall/lib/locale_helpers.py | |
parent | 49e9c65a8e77a07a57103c00dd48844cdf02a042 (diff) | |
parent | 935b878c962699cb4dc2f4ad209022de2046c7d9 (diff) |
-rw-r--r-- | archinstall/lib/locale_helpers.py | 6 |
diff --git a/archinstall/lib/locale_helpers.py b/archinstall/lib/locale_helpers.py index 736bfc47..3c373bc6 100644 --- a/archinstall/lib/locale_helpers.py +++ b/archinstall/lib/locale_helpers.py @@ -16,6 +16,12 @@ def list_keyboard_languages(): if os.path.splitext(file)[1] == '.gz': yield file.strip('.gz').strip('.map') +def verify_keyboard_layout(layout): + for language in list_keyboard_languages(): + if layout.lower() == language.lower(): + return True + return False + def search_keyboard_layout(filter): for language in list_keyboard_languages(): if filter.lower() in language.lower(): |