Browse Source

dbmi-pg: i18n (execute.c)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48214 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
c21cf4c706
1 changed files with 6 additions and 3 deletions
  1. 6 3
      db/drivers/postgres/execute.c

+ 6 - 3
db/drivers/postgres/execute.c

@@ -13,8 +13,11 @@
  *
  *****************************************************************************/
 #include <stdlib.h>
+
 #include <grass/dbmi.h>
 #include <grass/gis.h>
+#include <grass/glocale.h>
+
 #include "globals.h"
 #include "proto.h"
 
@@ -38,7 +41,7 @@ int db__driver_execute_immediate(dbString * sql)
     res = PQexec(pg_conn, str);
 
     if (!res || PQresultStatus(res) != PGRES_COMMAND_OK) {
-	append_error("Cannot execute: \n");
+	append_error(_("Unable to execute:\n"));
 	append_error(str);
 	append_error("\n");
 	append_error(PQerrorMessage(pg_conn));
@@ -66,7 +69,7 @@ int db__driver_begin_transaction(void)
     res = PQexec(pg_conn, "BEGIN");
 
     if (!res || PQresultStatus(res) != PGRES_COMMAND_OK) {
-	append_error("Cannot 'BEGIN' transaction");
+	append_error(_("Unable to 'BEGIN' transaction"));
 	report_error();
 	PQclear(res);
 	return DB_FAILED;
@@ -87,7 +90,7 @@ int db__driver_commit_transaction(void)
     res = PQexec(pg_conn, "COMMIT");
 
     if (!res || PQresultStatus(res) != PGRES_COMMAND_OK) {
-	append_error("Cannot 'COMMIT' transaction");
+	append_error(_("Unable to 'COMMIT' transaction"));
 	report_error();
 	PQclear(res);
 	return DB_FAILED;