mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-05 09:17:57 +03:00
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:
parent
5126c007ec
commit
d46674b822
@ -561,10 +561,11 @@ def installer_detect_distro(guest, installer, osdata):
|
|||||||
guest.set_os_name(autodistro)
|
guest.set_os_name(autodistro)
|
||||||
elif fallback_name:
|
elif fallback_name:
|
||||||
msg = _(
|
msg = _(
|
||||||
"Failed to detect osinfo OS name from install media."
|
"Failed to detect osinfo OS name from install media, "
|
||||||
"Using fallback name=%s.") % fallback_name
|
"using fallback name '{name}'.\n"
|
||||||
msg += _("\nPlease file a bug against virt-install if "
|
"Please file a bug against virt-install if "
|
||||||
"you expected detection to succeed.")
|
"you expected the detection to succeed.").format(
|
||||||
|
name=fallback_name)
|
||||||
log.warning(msg)
|
log.warning(msg)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
fail(_("Error validating install location: %s") % str(e))
|
fail(_("Error validating install location: %s") % str(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user