Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2022-08-01 17:44:57 +1000
committerGitHub <noreply@github.com>2022-08-01 09:44:57 +0200
commitcfea0d6d1a6f6b82fd4b65abd2124c8fc0530949 (patch)
tree2596c8117ca7be7e6ed0885e6110dc1e288be843 /examples
parent3bc39225458b32fcd43b8a5b76dbb6797723a86c (diff)
Update translations (#1348)
* Show translations in own tongue * Fix flake8 * Update * Update * Update * Update * fix mypy * Update * Update Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/swiss.py34
1 files changed, 23 insertions, 11 deletions
diff --git a/examples/swiss.py b/examples/swiss.py
index 83b79c09..5d40dc68 100644
--- a/examples/swiss.py
+++ b/examples/swiss.py
@@ -158,24 +158,36 @@ class SetupMenu(archinstall.GeneralMenu):
super().__init__(data_store=storage_area)
def _setup_selection_menu_options(self):
- self.set_option('archinstall-language',
+ self.set_option(
+ 'archinstall-language',
archinstall.Selector(
_('Archinstall language'),
lambda x: self._select_archinstall_language(x),
- default='English',
- enabled=True))
- self.set_option('ntp',
- archinstall.Selector(
- 'Activate NTP',
- lambda x: select_activate_NTP(),
- default='Y',
- enabled=True))
- self.set_option('mode',
+ display_func=lambda x: x.display_name,
+ default=self.translation_handler.get_language('en'),
+ enabled=True
+ )
+ )
+
+ self.set_option(
+ 'ntp',
+ archinstall.Selector(
+ 'Activate NTP',
+ lambda x: select_activate_NTP(),
+ default='Y',
+ enabled=True
+ )
+ )
+
+ self.set_option(
+ 'mode',
archinstall.Selector(
'Excution mode',
lambda x : select_mode(),
default='full',
- enabled=True))
+ enabled=True)
+ )
+
for item in ['LC_ALL','LC_CTYPE','LC_NUMERIC','LC_TIME','LC_MESSAGES','LC_COLLATE']:
self.set_option(item,
archinstall.Selector(