index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2024-05-10 15:56:28 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2024-05-10 15:56:28 +0200 |
commit | 683da22298abbd90f51d4dd38a7ec4b0dfb04555 (patch) | |
tree | ec2ac04967f9277df038edc362201937b331abe5 /archinstall/lib/user_interaction/locale_conf.py | |
parent | af7ab9833c9f9944874f0162ae0975175ddc628d (diff) | |
parent | 3381cd55673e5105697d354cf4a1be9a7bcef062 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction/locale_conf.py | 42 |
diff --git a/archinstall/lib/user_interaction/locale_conf.py b/archinstall/lib/user_interaction/locale_conf.py deleted file mode 100644 index bbbe070b..00000000 --- a/archinstall/lib/user_interaction/locale_conf.py +++ /dev/null @@ -1,42 +0,0 @@ -from __future__ import annotations - -from typing import Any, TYPE_CHECKING - -from ..locale_helpers import list_locales -from ..menu import Menu -from ..menu.menu import MenuSelectionType - -if TYPE_CHECKING: - _: Any - - -def select_locale_lang(preset: str = None) -> str: - locales = list_locales() - locale_lang = set([locale.split()[0] for locale in locales]) - - selected_locale = Menu( - _('Choose which locale language to use'), - list(locale_lang), - sort=True, - preset_values=preset - ).run() - - match selected_locale.type_: - case MenuSelectionType.Selection: return selected_locale.value - case MenuSelectionType.Skip: return preset - - -def select_locale_enc(preset: str = None) -> str: - locales = list_locales() - locale_enc = set([locale.split()[1] for locale in locales]) - - selected_locale = Menu( - _('Choose which locale encoding to use'), - list(locale_enc), - sort=True, - preset_values=preset - ).run() - - match selected_locale.type_: - case MenuSelectionType.Selection: return selected_locale.value - case MenuSelectionType.Skip: return preset |