Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion archinstall/lib/global_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _get_menu_options(self) -> list[MenuItem]:
MenuItem(
text=tr('Archinstall language'),
action=self._select_archinstall_language,
display_action=lambda x: x.display_name if x else '',
preview_action=self._prev_archinstall_language,
key='archinstall_language',
),
MenuItem(
Expand Down Expand Up @@ -239,6 +239,13 @@ def _select_archinstall_language(self, preset: Language) -> Language:

return language

def _prev_archinstall_language(self, item: MenuItem) -> str | None:
if not item.value:
return None

lang: Language = item.value
return f'{tr("Language")}: {lang.display_name}'

def _select_applications(self, preset: ApplicationConfiguration | None) -> ApplicationConfiguration | None:
app_config = ApplicationMenu(preset).run()
return app_config
Expand Down