[GRASS-SVN] r48214 - grass/trunk/db/drivers/postgres
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 8 08:09:01 EDT 2011
Author: martinl
Date: 2011-09-08 05:09:01 -0700 (Thu, 08 Sep 2011)
New Revision: 48214
Modified:
grass/trunk/db/drivers/postgres/execute.c
Log:
dbmi-pg: i18n (execute.c)
Modified: grass/trunk/db/drivers/postgres/execute.c
===================================================================
--- grass/trunk/db/drivers/postgres/execute.c 2011-09-08 11:44:17 UTC (rev 48213)
+++ grass/trunk/db/drivers/postgres/execute.c 2011-09-08 12:09:01 UTC (rev 48214)
@@ -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 @@
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 @@
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 @@
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;
More information about the grass-commit
mailing list