[GRASS-SVN] r47887 - grass/trunk/lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 25 08:54:32 EDT 2011


Author: martinl
Date: 2011-08-25 05:54:31 -0700 (Thu, 25 Aug 2011)
New Revision: 47887

Modified:
   grass/trunk/lib/vector/diglib/plus_struct.c
Log:
vlib: plus_struct.c - i18n


Modified: grass/trunk/lib/vector/diglib/plus_struct.c
===================================================================
--- grass/trunk/lib/vector/diglib/plus_struct.c	2011-08-25 12:30:34 UTC (rev 47886)
+++ grass/trunk/lib/vector/diglib/plus_struct.c	2011-08-25 12:54:31 UTC (rev 47887)
@@ -18,7 +18,7 @@
 #include <sys/types.h>
 #include <string.h>
 #include <grass/vector.h>
-
+#include <grass/glocale.h>
 /*
  * Routines for reading and writing Dig+ structures.
  * return 0 on success, -1 on failure of whatever kind
@@ -517,17 +517,15 @@
 	if (ptr->Back_Major > GV_TOPO_VER_MAJOR ||
 	    ptr->Back_Minor > GV_TOPO_VER_MINOR) {
 	    /* This version of GRASS lib is lower than the oldest which can read this format */
-	    G_fatal_error
-		("Topology format version %d.%d is not supported by this release."
-		 " Try to rebuild topology or upgrade GRASS.",
-		 ptr->Version_Major, ptr->Version_Minor);
+	    G_fatal_error(_("Topology format version %d.%d is not supported by this release."
+			    " Try to rebuild topology or upgrade GRASS."),
+			  ptr->Version_Major, ptr->Version_Minor);
 	    return (-1);
 	}
 
-	G_warning
-	    ("Your GRASS version does not fully support topology format %d.%d of the vector."
-	     " Consider to rebuild topology or upgrade GRASS.",
-	     ptr->Version_Major, ptr->Version_Minor);
+	G_warning(_("Your GRASS version does not fully support topology format %d.%d of the vector."
+		    " Consider to rebuild topology or upgrade GRASS."),
+		  ptr->Version_Major, ptr->Version_Minor);
     }
     if (ptr->Version_Major < GV_TOPO_VER_MAJOR ||
 	(ptr->Version_Major == GV_TOPO_VER_MAJOR &&
@@ -535,10 +533,9 @@
 	/* The file was created by GRASS library with lower version than this one */
 
 	/* This version of GRASS lib can not read this old format */
-	G_warning
-	    ("Old topology format version %d.%d is not supported by this release."
-	     " Try to rebuild topology.",
-	     ptr->Version_Major, ptr->Version_Minor);
+	G_warning(_("Old topology format version %d.%d is not supported by this release."
+		    " Try to rebuild topology."),
+		  ptr->Version_Major, ptr->Version_Minor);
 	return (-1);
     }
 
@@ -560,7 +557,7 @@
 	ptr->off_t_size = 4;
 
     if (sizeof(off_t) < ptr->off_t_size) {
-	G_warning("Vector exceeds supported file size limit");
+	G_warning(_("Vector exceeds supported file size limit"));
 	return (-1);
     }
 



More information about the grass-commit mailing list