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:
authorAnton Hvornum <anton@hvornum.se>2021-04-22 12:43:31 +0000
committerGitHub <noreply@github.com>2021-04-22 12:43:31 +0000
commit935b878c962699cb4dc2f4ad209022de2046c7d9 (patch)
tree0da116f72216e64613598a80753fc4bf8b776f78 /archinstall/lib/locale_helpers.py
parentc88034fa8a76b4bff4f626b5467767457d6fef62 (diff)
parentd1560d98ec566e2951841f193b79d107cca8daeb (diff)
Merge pull request #336 from SecondThundeR/patch-2
Fix other issues of language selection
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():