index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <blackrabbit256@gmail.com> | 2022-05-11 00:20:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 16:20:53 +0200 |
commit | f80144e7c709013184c7a5536ac2ae9487af690f (patch) | |
tree | dc5507ea1979983021851346efd6696f973ac782 /archinstall/lib/menu | |
parent | 1320057218ea575bca2854e2f349a684369fc7c9 (diff) |
-rw-r--r-- | archinstall/lib/menu/list_manager.py | 8 | ||||
-rw-r--r-- | archinstall/lib/menu/selection_menu.py | 5 |
diff --git a/archinstall/lib/menu/list_manager.py b/archinstall/lib/menu/list_manager.py index f3927e6f..4c7e9907 100644 --- a/archinstall/lib/menu/list_manager.py +++ b/archinstall/lib/menu/list_manager.py @@ -260,14 +260,14 @@ class ListManager: self._data.append(self.target) if self.action == str(_('Copy')): while True: - target = TextInput(_('Copy to :'),self.target).run() + target = TextInput(_('Copy to: '),self.target).run() if target != self.target: self._data.append(self.target) break elif self.action == str(_('Edit')): tgt = self.target idx = self._data.index(self.target) - result = TextInput(_('Edite :'),tgt).run() + result = TextInput(_('Edit: '),tgt).run() self._data[idx] = result elif self.action == str(_('Delete')): del self._data[self._data.index(self.target)] @@ -279,7 +279,7 @@ class ListManager: origkey = None origval = None if self.action == str(_('Add')): - key = TextInput(_('Key :'),None).run() + key = TextInput(_('Key: '),None).run() value = TextInput(_('Value :'),None).run() self._data[key] = value if self.action == str(_('Copy')): @@ -289,7 +289,7 @@ class ListManager: self._data[key] = origval break elif self.action == str(_('Edit')): - value = TextInput(_(f'Edit {origkey} :'),origval).run() + value = TextInput(_('Edit {}: ').format(origkey), origval).run() self._data[origkey] = value elif self.action == str(_('Delete')): del self._data[origkey] diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py index 54b1441b..123ddf7e 100644 --- a/archinstall/lib/menu/selection_menu.py +++ b/archinstall/lib/menu/selection_menu.py @@ -17,7 +17,7 @@ def select_archinstall_language(preset_value: str) -> Optional[str]: """ copied from user_interaction/general_conf.py as a temporary measure """ - languages = Translation.get_all_names() + languages = Translation.get_available_lang() language = Menu(_('Select Archinstall language'), languages, preset_values=preset_value).run() return language.value @@ -306,7 +306,8 @@ class GeneralMenu: cursor_index=cursor_pos, preview_command=self._preview_display, preview_size=self.preview_size, - skip_empty_entries=True + skip_empty_entries=True, + skip=False ).run() if selection.type_ == MenuSelectionType.Selection: |