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:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-09-20 02:04:23 -0400
committerGitHub <noreply@github.com>2023-09-20 08:04:23 +0200
commitb1e00687953de168bbc31ea435b2c5bdc7c61e39 (patch)
treedd9f5ef41efb7d604129a5e81fada7c982d8ae9c /archinstall/lib/locale
parent33d084f16a9055df0327930abe43f7b91429cf24 (diff)
Use `_preset` for defaults in `LocaleMenu` (#2071)
* Use `_preset` for defaults in `LocaleMenu` * Fix adjacent typos
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: