Skip to content

Commit 101b56c

Browse files
committed
Update ask_for_bootloader_removable() prompt for ease of translation
1 parent d8b4887 commit 101b56c

1 file changed

Lines changed: 20 additions & 10 deletions

File tree

archinstall/lib/bootloader/bootloader_menu.py

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import textwrap
12
from typing import override
23

34
from archinstall.lib.translationhandler import tr
@@ -153,17 +154,26 @@ def ask_for_bootloader(preset: Bootloader | None) -> Bootloader | None:
153154

154155
def ask_for_bootloader_removable(preset: bool = False) -> bool:
155156
prompt = (
156-
tr('Would you like to install the bootloader to the default removable media search location?\n')
157-
+ '\n'
158-
+ tr('This installs the bootloader to /EFI/BOOT/BOOTX64.EFI (or similar) which is useful for:\n')
159-
+ '\n'
160-
+ tr(' • USB drives or other portable external media\n')
161-
+ tr(' • Systems where you want the disk to be bootable on any computer\n')
162-
+ tr(' • Firmware that does not properly support NVRAM boot entries\n')
157+
tr('Would you like to install the bootloader to the default removable media search location?')
158+
+ '\n\n'
159+
+ tr('This installs the bootloader to /EFI/BOOT/BOOTX64.EFI (or similar) which is useful for:')
160+
+ '\n\n • '
161+
+ tr('USB drives or other portable external media.')
162+
+ '\n • '
163+
+ tr('Systems where you want the disk to be bootable on any computer.')
164+
+ '\n • '
165+
+ tr('Firmware that does not properly support NVRAM boot entries.')
166+
+ '\n\n'
167+
+ tr(
168+
textwrap.dedent(
169+
"""\
170+
This is NOT recommended if none of the above apply, as it makes installing multiple
171+
EFI bootloaders on the same disk more challenging, and it overwrites whatever bootloader
172+
was previously installed on the default removable media search location, if any.
173+
"""
174+
)
175+
)
163176
+ '\n'
164-
+ tr('This is NOT recommended if none of the above apply, as it makes installing multiple\n')
165-
+ tr('EFI bootloaders on the same disk more challenging, and it overwrites whatever bootloader\n')
166-
+ tr('was previously installed on the default removable media search location, if any.\n')
167177
)
168178

169179
group = MenuItemGroup.yes_no()

0 commit comments

Comments
 (0)