]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
parallels: translate error message
authorEric Blake <eblake@redhat.com>
Fri, 3 Aug 2012 16:22:08 +0000 (10:22 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 3 Aug 2012 16:25:52 +0000 (10:25 -0600)
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.

src/parallels/parallels_driver.c

index b57ac9607a6fc568ac702f28c6bbf5783dd468bc..c26ea257fdf06c28479c8adeb32d468631003949 100644 (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;
         }
     }