Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/locale
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/locale')
-rw-r--r--archinstall/lib/locale/locale_menu.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/archinstall/lib/locale/locale_menu.py b/archinstall/lib/locale/locale_menu.py
index 29dd775d..2e254315 100644
--- a/archinstall/lib/locale/locale_menu.py
+++ b/archinstall/lib/locale/locale_menu.py
@@ -52,9 +52,9 @@ class LocaleMenu(AbstractSubMenu):
def __init__(
self,
data_store: Dict[str, Any],
- locele_conf: LocaleConfiguration
+ locale_conf: LocaleConfiguration
):
- self._preset = locele_conf
+ self._preset = locale_conf
super().__init__(data_store=data_store)
def setup_selection_menu_options(self):
@@ -62,19 +62,19 @@ class LocaleMenu(AbstractSubMenu):
Selector(
_('Keyboard layout'),
lambda preset: self._select_kb_layout(preset),
- default='us',
+ default=self._preset.kb_layout,
enabled=True)
self._menu_options['sys-language'] = \
Selector(
_('Locale language'),
lambda preset: select_locale_lang(preset),
- default='en_US',
+ default=self._preset.sys_lang,
enabled=True)
self._menu_options['sys-encoding'] = \
Selector(
_('Locale encoding'),
lambda preset: select_locale_enc(preset),
- default='UTF-8',
+ default=self._preset.sys_enc,
enabled=True)
def run(self, allow_reset: bool = True) -> LocaleConfiguration: