mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
parallels: translate error message
Without this patch, the English phrase 'no name' would appear literally within the remaining translated message. * src/parallels/parallels_driver.c (parallelsCreateVm) (parallelsDomainDefineXML): Tweak error message.
This commit is contained in:
parent
86d56e3104
commit
41cb804820
@ -1569,7 +1569,7 @@ parallelsCreateVm(virConnectPtr conn, virDomainDefPtr def)
|
||||
* will be found */
|
||||
virReportError(VIR_ERR_INVALID_ARG,
|
||||
_("Can't create VM '%s' without hard disks"),
|
||||
(def->name ? def->name : "no name"));
|
||||
def->name ? def->name : _("(unnamed)"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1659,7 +1659,7 @@ parallelsDomainDefineXML(virConnectPtr conn, const char *xml)
|
||||
if (!dom) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Domain for '%s' is not defined after creation"),
|
||||
(def->name ? def->name : "no name"));
|
||||
def->name ? def->name : _("(unnamed)"));
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user