fix: improve translatable message

- use a single translatable message, instead of splitting the text in
  two; it helps translators to have the full context/text
- improve the language a bit

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
Pino Toscano 2024-11-12 17:38:41 +01:00 committed by Pavel Hrdina
parent 5126c007ec
commit d46674b822

View File

@ -561,10 +561,11 @@ def installer_detect_distro(guest, installer, osdata):
guest.set_os_name(autodistro)
elif fallback_name:
msg = _(
"Failed to detect osinfo OS name from install media."
"Using fallback name=%s.") % fallback_name
msg += _("\nPlease file a bug against virt-install if "
"you expected detection to succeed.")
"Failed to detect osinfo OS name from install media, "
"using fallback name '{name}'.\n"
"Please file a bug against virt-install if "
"you expected the detection to succeed.").format(
name=fallback_name)
log.warning(msg)
except ValueError as e:
fail(_("Error validating install location: %s") % str(e))