From 9fb8d3164ce07e6cd08fe60f2e6f1203ccb8991a Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 6 Feb 2022 21:30:26 +1100 Subject: Update nationalization (#944) * Update nationalization * Update translations * Finish german translation * Fix errors #943 * Add remaining translations * Fix alignment in menu * Update README * Update translations: * Fix flake8 * Update tz function Co-authored-by: Daniel Girtler --- examples/guided.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index a775da84..1a00a295 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -8,7 +8,7 @@ if archinstall.arguments.get('help'): print("See `man archinstall` for help.") exit(0) if os.getuid() != 0: - print("Archinstall requires root privileges to run. See --help for more.") + print(_("Archinstall requires root privileges to run. See --help for more.")) exit(1) # Log various information about hardware before starting the installation. This might assist in troubleshooting @@ -97,7 +97,7 @@ def perform_filesystem_operations(): """ if archinstall.arguments.get('harddrives', None): - print(f" ! Formatting {archinstall.arguments['harddrives']} in ", end='') + print(_(f" ! Formatting {archinstall.arguments['harddrives']} in "), end='') archinstall.do_countdown() """ @@ -113,6 +113,7 @@ def perform_filesystem_operations(): with archinstall.Filesystem(drive, mode) as fs: fs.load_layout(archinstall.arguments['disk_layouts'][drive.path]) + def perform_installation(mountpoint): """ Performs the installation steps on a block device. @@ -138,11 +139,11 @@ def perform_installation(mountpoint): installation.log('Waiting for automatic mirror selection (reflector) to complete.', level=logging.INFO) while archinstall.service_state('reflector') not in ('dead', 'failed'): time.sleep(1) - + # Set mirrors used by pacstrap (outside of installation) if archinstall.arguments.get('mirror-region', None): archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium - + if installation.minimal_installation(): installation.set_locale(archinstall.arguments['sys-language'], archinstall.arguments['sys-encoding'].upper()) installation.set_hostname(archinstall.arguments['hostname']) -- cgit v1.2.3-70-g09d2