Skip to content

"Save configuration" is changed to "Abort" after switching languageΒ #3330

Closed

Description

@utuhiro78

Which ISO version are you using?

archinstall-git-20250403

The installation log

None

describe the problem

"Save configuration" is changed to "Abort" after switching language.
Please check the movie.

archinstall-git-20250403.webm

I tested it on the installed Arch Linux.

sudo pacman -S --needed wget 7zip python \
python-sphinx_rtd_theme python-typing_extensions \
python-pydantic python-pydantic-core \
python-annotated-types python-pyparted

wget https://github.com/archlinux/archinstall/\
archive/refs/heads/master.zip -O archinstall-master.zip
7z x archinstall-master.zip

cd archinstall-master/
sudo python -m archinstall

Activity

  1. correctmost commented on Apr 3, 2025

    @correctmost
    Contributor

    There's a mix-up because the menu items all have the same __config__ key:

    MenuItem(
    text=str(_('Save configuration')),
    action=lambda x: self._safe_config(),
    key='__config__'
    ),
    MenuItem(
    text=str(_('Install')),
    preview_action=self._prev_install_invalid_config,
    key='__config__'
    ),
    MenuItem(
    text=str(_('Abort')),
    action=lambda x: exit(1),
    key='__config__'

    The keys are assumed to be unique here:

    def _upate_lang_text(self) -> None:
    """
    The options for the global menu are generated with a static text;
    each entry of the menu needs to be updated with the new translation
    """
    new_options = self._get_menu_options()
    for o in new_options:
    if o.key is not None:
    self._item_group.find_by_key(o.key).text = o.text

  2. added a commit that references this issue on Apr 7, 2025
    96ceda2
  3. added a commit that references this issue on Apr 8, 2025
    bae0e29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions