[GRASS-SVN] r66010 - grass/trunk/vector/v.what

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 25 01:37:10 PDT 2015


Author: hcho
Date: 2015-08-25 01:37:10 -0700 (Tue, 25 Aug 2015)
New Revision: 66010

Modified:
   grass/trunk/vector/v.what/what.c
Log:
v.what: gettext

Modified: grass/trunk/vector/v.what/what.c
===================================================================
--- grass/trunk/vector/v.what/what.c	2015-08-24 22:15:04 UTC (rev 66009)
+++ grass/trunk/vector/v.what/what.c	2015-08-25 08:37:10 UTC (rev 66010)
@@ -41,7 +41,7 @@
     G_debug(2, "Open driver");
     driver = db_start_driver(drvname);
     if (!driver)
-	G_fatal_error("Cannot open driver");
+	G_fatal_error(_("Cannot open driver"));
 
     G_debug(2, "Driver opened");
 
@@ -49,7 +49,7 @@
     db_set_handle(&handle, dbname, NULL);
     G_debug(2, "Open database");
     if (db_open_database(driver, &handle) != DB_OK)
-	G_fatal_error("Cannot open database");
+	G_fatal_error(_("Cannot open database"));
     db_set_error_handler_driver(driver);
 
     G_debug(2, "Database opened");
@@ -62,17 +62,17 @@
     G_debug(2, "%s", buf);
     db_set_string(&sql, buf);
     if (db_open_select_cursor(driver, &sql, &cursor, DB_SEQUENTIAL) != DB_OK)
-	G_fatal_error("Cannot open select cursor");
+	G_fatal_error(_("Cannot open select cursor"));
 
     G_debug(2, "Select Cursor opened");
 
     table = db_get_cursor_table(&cursor);
 
     if (db_fetch(&cursor, DB_NEXT, &more) != DB_OK)
-	G_fatal_error("Cannot fetch next record");
+	G_fatal_error(_("Cannot fetch next record"));
 
     if (!more) {
-	G_warning("No database record");
+	G_warning(_("No database record"));
 	*form = G_store("No record selected.");
     }
     else {



More information about the grass-commit mailing list