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:
Eric Blake 2012-08-03 10:22:08 -06:00
parent 86d56e3104
commit 41cb804820

View File

@ -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;
}
}