|
23 | 23 | from .interactions.network_menu import ask_to_configure_network |
24 | 24 | from .interactions.system_conf import ask_for_bootloader, ask_for_swap, ask_for_uki, select_kernel |
25 | 25 | from .locale.locale_menu import LocaleMenu |
26 | | -from .menu.abstract_menu import AbstractMenu |
| 26 | +from .menu.abstract_menu import CONFIG_KEY, AbstractMenu |
27 | 27 | from .mirrors import MirrorMenu |
28 | 28 | from .models.audio_configuration import AudioConfiguration |
29 | 29 | from .models.bootloader import Bootloader |
@@ -194,17 +194,17 @@ def _get_menu_options(self) -> list[MenuItem]: |
194 | 194 | MenuItem( |
195 | 195 | text=str(_('Save configuration')), |
196 | 196 | action=lambda x: self._safe_config(), |
197 | | - key='__config__' |
| 197 | + key=f'{CONFIG_KEY}_save' |
198 | 198 | ), |
199 | 199 | MenuItem( |
200 | 200 | text=str(_('Install')), |
201 | 201 | preview_action=self._prev_install_invalid_config, |
202 | | - key='__config__' |
| 202 | + key=f'{CONFIG_KEY}_install' |
203 | 203 | ), |
204 | 204 | MenuItem( |
205 | 205 | text=str(_('Abort')), |
206 | 206 | action=lambda x: exit(1), |
207 | | - key='__config__' |
| 207 | + key=f'{CONFIG_KEY}_abort' |
208 | 208 | ) |
209 | 209 | ] |
210 | 210 |
|
@@ -259,11 +259,11 @@ def _select_archinstall_language(self, preset: Language) -> Language: |
259 | 259 | language = select_archinstall_language(translation_handler.translated_languages, preset) |
260 | 260 | translation_handler.activate(language) |
261 | 261 |
|
262 | | - self._upate_lang_text() |
| 262 | + self._update_lang_text() |
263 | 263 |
|
264 | 264 | return language |
265 | 265 |
|
266 | | - def _upate_lang_text(self) -> None: |
| 266 | + def _update_lang_text(self) -> None: |
267 | 267 | """ |
268 | 268 | The options for the global menu are generated with a static text; |
269 | 269 | each entry of the menu needs to be updated with the new translation |
|
0 commit comments