]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix compilation for configure --disable-nls
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 5 Dec 2009 00:10:01 +0000 (01:10 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 7 Dec 2009 21:52:55 +0000 (22:52 +0100)
src/opennebula/one_conf.c
src/opennebula/one_driver.c
src/phyp/phyp_driver.c
src/xen/xen_driver.c

index 415f832ce8406de11e9ad1a875044b2e2d52d539..baef217c62ec7f0c1f7ed006c5df0cf95abfbfb7 100644 (file)
@@ -147,7 +147,7 @@ int oneSubmitVM(virConnectPtr    conn,
 
     if ((oneid = c_oneAllocateTemplate(templ)) < 0) {
         oneError(conn, NULL, VIR_ERR_OPERATION_FAILED,
-                 _("Error submitting virtual machine to OpenNebula"));
+                 "%s", _("Error submitting virtual machine to OpenNebula"));
         VIR_FREE(templ);
         return -1;
     }
index 4857f54048c5bf1b3e7d11297f463a8b30248cf3..a30c1103380171fac32045d9eccef66af54962e9 100644 (file)
@@ -280,13 +280,13 @@ static int oneDomainUndefine(virDomainPtr dom)
     vm =virDomainFindByUUID(&driver->domains, dom->uuid);
     if (!vm) {
         oneError(dom->conn, dom, VIR_ERR_INVALID_DOMAIN,
-                 _("no domain with matching uuid"));
+                 "%s", _("no domain with matching uuid"));
         goto return_point;
     }
 
     if (!vm->persistent) {
         oneError(dom->conn, dom, VIR_ERR_INTERNAL_ERROR,
-                 _("cannot undefine transient domain"));
+                 "%s", _("cannot undefine transient domain"));
         goto return_point;
     }
     virDomainRemoveInactive(&driver->domains, vm);
@@ -499,7 +499,7 @@ static int oneDomainShutdown(virDomainPtr dom)
 
     if (c_oneShutdown(vm->pid)) {
         oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
-                 _("Wrong state to perform action"));
+                 "%s", _("Wrong state to perform action"));
         goto return_point;
     }
     vm->state=VIR_DOMAIN_SHUTDOWN;
@@ -535,7 +535,7 @@ static int oneDomainDestroy(virDomainPtr dom)
         /* VM not running, delete the instance at ONE DB */
         if(c_oneFinalize(vm->pid)){
             oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
-                     _("Wrong state to perform action"));
+                     "%s", _("Wrong state to perform action"));
             goto return_point;
         }
     }
@@ -570,11 +570,11 @@ static int oneDomainSuspend(virDomainPtr dom)
                 goto return_point;
             }
             oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
-                     _("Wrong state to perform action"));
+                     "%s", _("Wrong state to perform action"));
             goto return_point;
         }
         oneError(dom->conn,dom, VIR_ERR_OPERATION_INVALID,
-                 _("domain is not running"));
+                 "%s", _("domain is not running"));
     } else {
         oneError(dom->conn, dom, VIR_ERR_INVALID_DOMAIN,
                  _("no domain with matching id %d"), dom->id);
@@ -603,11 +603,11 @@ static int oneDomainResume(virDomainPtr dom)
                 goto return_point;
             }
             oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
-                     _("Wrong state to perform action"));
+                     "%s", _("Wrong state to perform action"));
             goto return_point;
         }
         oneError(dom->conn,dom, VIR_ERR_OPERATION_INVALID,
-                 _("domain is not paused "));
+                 "%s", _("domain is not paused"));
     } else {
         oneError(dom->conn, dom, VIR_ERR_INVALID_DOMAIN,
                  _("no domain with matching id %d"), dom->id);
index ea9555aa0f084bb30a94f959814e36f0306fed58..dfbc9680fd45c4d822b4191c04784249dbd51bfb 100644 (file)
@@ -91,19 +91,19 @@ phypOpen(virConnectPtr conn,
 
     if (conn->uri->server == NULL) {
         PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
-                   _("Missing server name in phyp:// URI"));
+                   "%s", _("Missing server name in phyp:// URI"));
         return VIR_DRV_OPEN_ERROR;
     }
 
     if (conn->uri->path == NULL) {
         PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
-                   _("Missing managed system name in phyp:// URI"));
+                   "%s", _("Missing managed system name in phyp:// URI"));
         return VIR_DRV_OPEN_ERROR;
     }
 
     if (conn->uri->user == NULL) {
         PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
-                   _("Missing username in phyp:// URI"));
+                   "%s", _("Missing username in phyp:// URI"));
         return VIR_DRV_OPEN_ERROR;
     }
 
@@ -150,13 +150,13 @@ phypOpen(virConnectPtr conn,
 
     if (escape_specialcharacters(conn->uri->path, string, len) == -1) {
         PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
-                   _("Error parsing 'path'. Invalid characters."));
+                   "%s", _("Error parsing 'path'. Invalid characters."));
         goto failure;
     }
 
     if ((session = openSSHSession(conn, auth, &internal_socket)) == NULL) {
         PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
-                   _("Error while opening SSH session."));
+                   "%s", _("Error while opening SSH session."));
         goto failure;
     }
     //conn->uri->path = string;
@@ -314,7 +314,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
            LIBSSH2_ERROR_EAGAIN) ;
     if (rc) {
         PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
-                   _("Failure establishing SSH session."));
+                   "%s", _("Failure establishing SSH session."));
         goto disconnect;
     }
 
@@ -344,7 +344,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
 
         if (!auth || !auth->cb) {
             PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
-                       _("No authentication callback provided."));
+                       "%s", _("No authentication callback provided."));
             goto disconnect;
         }
 
@@ -355,7 +355,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
 
         if (!hasPassphrase) {
             PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
-                       _("Required credentials are not supported."));
+                       "%s", _("Required credentials are not supported."));
             goto disconnect;
         }
 
@@ -364,7 +364,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
 
         if (res < 0) {
             PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
-                       _("Unable to fetch credentials."));
+                       "%s", _("Unable to fetch credentials."));
             goto disconnect;
         }
 
@@ -372,7 +372,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
             password = creds[0].result;
         } else {
             PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
-                       _("Unable to get password certificates"));
+                       "%s", _("Unable to get password certificates"));
             goto disconnect;
         }
 
@@ -383,7 +383,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
 
         if (rc) {
             PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
-                       _("Authentication failed"));
+                       "%s", _("Authentication failed"));
             goto disconnect;
         } else
             goto exit;
index 4bfcce4eee39c0cb41c28248f4c1d68d7bc5f8ce..ed94bede7ebf38453cc1963d02b96d37975988e5 100644 (file)
@@ -1316,14 +1316,14 @@ xenUnifiedDomainMigrateFinish (virConnectPtr dconn,
         domain_xml = xenDaemonDomainDumpXML (dom, 0, NULL);
         if (! domain_xml) {
             xenUnifiedError(dconn, VIR_ERR_MIGRATE_PERSIST_FAILED,
-                            _("failed to get XML representation of migrated domain"));
+                            "%s", _("failed to get XML representation of migrated domain"));
             goto failure;
         }
 
         dom_new = xenDaemonDomainDefineXML (dconn, domain_xml);
         if (! dom_new) {
-            xenUnifiedError (dconn, VIR_ERR_MIGRATE_PERSIST_FAILED,
-                             _("failed to define domain on destination host"));
+            xenUnifiedError(dconn, VIR_ERR_MIGRATE_PERSIST_FAILED,
+                            "%s", _("failed to define domain on destination host"));
             goto failure;
         }