From 66da3e379ae5c891571946f878c692c1b0309c1f Mon Sep 17 00:00:00 2001 From: h8d13 Date: Mon, 29 Dec 2025 11:34:54 +0100 Subject: [PATCH 1/2] Modify archinstall language display to be handled like other sections. This fixes a bug where language names that were too long would break curses menu. --- archinstall/lib/global_menu.py | 9 ++++++++- archinstall/tui/types.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/global_menu.py b/archinstall/lib/global_menu.py index edd66263d0..40f0e4703b 100644 --- a/archinstall/lib/global_menu.py +++ b/archinstall/lib/global_menu.py @@ -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( @@ -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 diff --git a/archinstall/tui/types.py b/archinstall/tui/types.py index 10697e7912..ae7fb9ac01 100644 --- a/archinstall/tui/types.py +++ b/archinstall/tui/types.py @@ -115,7 +115,7 @@ class Chars: Block = '█' Triangle_up = '▲' Triangle_down = '▼' - Check = '+' + Check = '✓' Cross = 'x' Right_arrow = '←' From ecddd10c23e8a858678241f7e7ac664ee96d2793 Mon Sep 17 00:00:00 2001 From: h8d13 Date: Wed, 31 Dec 2025 00:15:14 +0100 Subject: [PATCH 2/2] Revert types change --- archinstall/tui/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/tui/types.py b/archinstall/tui/types.py index ae7fb9ac01..10697e7912 100644 --- a/archinstall/tui/types.py +++ b/archinstall/tui/types.py @@ -115,7 +115,7 @@ class Chars: Block = '█' Triangle_up = '▲' Triangle_down = '▼' - Check = '✓' + Check = '+' Cross = 'x' Right_arrow = '←'