Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/global_menu.py
diff options
context:
space:
mode:
authorAnhad Singh <62820092+Andy-Python-Programmer@users.noreply.github.com>2023-07-01 04:29:18 +1000
committerGitHub <noreply@github.com>2023-06-30 20:29:18 +0200
commitba9f2eea5952690ef1a6bf96b3e3055528c71d2f (patch)
treed46d7bf1023b96fb78e668767abdd00c8c7be574 /archinstall/lib/global_menu.py
parent10fc344097c392685d286e585e91493556c96847 (diff)
global_menu: wrap invalid config error message with the translation shim (#1908)
* global_menu: wrap invalid config error message with the translation shim Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com> * validate_bootloader: add a caller note XXX: The caller is responsible for wrapping the string with the translation shim if necessary. Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com> --------- Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com>
Diffstat (limited to 'archinstall/lib/global_menu.py')
-rw-r--r--archinstall/lib/global_menu.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/global_menu.py b/archinstall/lib/global_menu.py
index 5a431010..02b1b0b6 100644
--- a/archinstall/lib/global_menu.py
+++ b/archinstall/lib/global_menu.py
@@ -336,6 +336,9 @@ class GlobalMenu(AbstractMenu):
Returns [`None`] if the bootloader is valid, otherwise returns a
string with the error message.
+
+ XXX: The caller is responsible for wrapping the string with the translation
+ shim if necessary.
"""
bootloader = self._menu_options['bootloader'].current_selection
boot_partition: Optional[disk.PartitionModification] = None
@@ -363,7 +366,7 @@ class GlobalMenu(AbstractMenu):
return text[:-1] # remove last new line
if error := self._validate_bootloader():
- return f"Invalid configuration: {error}"
+ return str(_(f"Invalid configuration: {error}"))
return None