From f6a031f5846732db4e0e527644130b71efe3d2fc Mon Sep 17 00:00:00 2001 From: Softer Date: Fri, 12 Jun 2026 21:57:32 +0300 Subject: [PATCH] Fix Plymouth theme preset focus and add missing strings to base.pot (#4586) select_plymouth_theme() compared enum item values against a raw string, so the previously selected theme was never highlighted when reopening the menu. Use set_focus_by_value() like other single-select menus. Regenerate base.pot to pick up the three Plymouth strings introduced in #4555. --- archinstall/lib/bootloader/bootloader_menu.py | 2 +- archinstall/locales/base.pot | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/bootloader/bootloader_menu.py b/archinstall/lib/bootloader/bootloader_menu.py index 64ad4c8d..a985eb90 100644 --- a/archinstall/lib/bootloader/bootloader_menu.py +++ b/archinstall/lib/bootloader/bootloader_menu.py @@ -235,7 +235,7 @@ async def select_bootloader( async def select_plymouth_theme(preset: PlymouthTheme | None = None) -> PlymouthTheme | None: items = [MenuItem(t.value, value=t) for t in PlymouthTheme] group = MenuItemGroup(items, sort_items=False) - group.set_selected_by_value(preset.value if preset else None) + group.set_focus_by_value(preset) result = await Selection[PlymouthTheme]( group, diff --git a/archinstall/locales/base.pot b/archinstall/locales/base.pot index 23df29fb..9bfe074d 100644 --- a/archinstall/locales/base.pot +++ b/archinstall/locales/base.pot @@ -209,6 +209,9 @@ msgstr "" msgid "Install to removable location" msgstr "" +msgid "Plymouth" +msgstr "" + msgid "Will install to /EFI/BOOT/ (removable location, safe default)" msgstr "" @@ -248,6 +251,9 @@ msgstr "" msgid "UEFI is not detected and some options are disabled" msgstr "" +msgid "Select Plymouth theme" +msgstr "" + msgid "The specified configuration will be applied" msgstr "" @@ -882,6 +888,10 @@ msgstr "" msgid "Removable" msgstr "" +#, python-brace-format +msgid "Plymouth \"{}\"" +msgstr "" + msgid "Use a best-effort default partition layout" msgstr ""