Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/locale_helpers.py
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-22 19:11:30 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-22 19:11:30 +0530
commitfc53d145c89d1740127f0ac93b27b92ae41e9c54 (patch)
tree79e877f4a3ce7a004c4aff75beaa84e1af5eeb86 /archinstall/lib/locale_helpers.py
parent49e9c65a8e77a07a57103c00dd48844cdf02a042 (diff)
parent935b878c962699cb4dc2f4ad209022de2046c7d9 (diff)
Merge github.com:archlinux/archinstall into master-merge
Diffstat (limited to 'archinstall/lib/locale_helpers.py')
-rw-r--r--archinstall/lib/locale_helpers.py6
1 files changed, 6 insertions, 0 deletions
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():