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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 12 14:45:27 EDT 2010


Author: martinl
Date: 2010-04-12 14:45:27 -0400 (Mon, 12 Apr 2010)
New Revision: 41830

Modified:
   grass/trunk/lib/vector/diglib/test.c
Log:
i18n

Modified: grass/trunk/lib/vector/diglib/test.c
===================================================================
--- grass/trunk/lib/vector/diglib/test.c	2010-04-12 18:42:03 UTC (rev 41829)
+++ grass/trunk/lib/vector/diglib/test.c	2010-04-12 18:45:27 UTC (rev 41830)
@@ -8,7 +8,7 @@
  *
  * PURPOSE:      Test portable r/w functions 
  *
- * COPYRIGHT:    (C) 2001-2009 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2001-2010 by the GRASS Development Team
  *
  *               This program is free software under the GNU General Public
  *               License (>=v2). Read the file COPYING that comes with GRASS
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <grass/vector.h>
+#include <grass/glocale.h>
 
 /* Test portable r/w functions */
 
@@ -55,7 +56,7 @@
     port_off_t = sizeof(off_t);
 
     if (NULL == (fp.file = fopen("test.tmp", "wb+"))) {
-	G_fatal_error("Unable tp open test.tmp file");
+	G_fatal_error(_("Unable tp open test.tmp file"));
     }
     fp.loaded = 0;
 
@@ -72,8 +73,8 @@
 	    dig__fread_port_D(&db, 1, &fp);
 	    dig_fflush(&fp);
 	    if (db != td[j]) {
-		G_warning("Error in read/write portable double, byte_order = %d"
-			  " Written: %.16e3E Read: %.16e3E",
+		G_warning(_("Error in read/write portable double, byte_order = %d"
+			    " Written: %.16e3E Read: %.16e3E"),
 			  byte_order, td[j], db);
 		err = EXIT_FAILURE;
 	    }
@@ -86,8 +87,8 @@
 	    dig__fread_port_F(&fb, 1, &fp);
 	    dig_fflush(&fp);
 	    if (fb != tf[j]) {
-		G_warning("Error in read/write portable float, byte_order = %d"
-			  " Written: %.8e3E Read: %.8e3E",
+		G_warning(_("Error in read/write portable float, byte_order = %d"
+			    " Written: %.8e3E Read: %.8e3E"),
 			  byte_order, tf[j], fb);
 		err = EXIT_FAILURE;
 	    }
@@ -101,8 +102,8 @@
 	    dig__fread_port_O(&ob, 1, &fp, port_off_t);
 	    dig_fflush(&fp);
 	    if (ob != to[j]) {
-		G_warning("Error in read/write portable off_t, byte_order = %d"
-			  " Written: %lu Read: %lu",
+		G_warning(_("Error in read/write portable off_t, byte_order = %d"
+			    " Written: %lu Read: %lu"),
 			  byte_order, (long unsigned) to[j], (long unsigned) ob);
 		err = EXIT_FAILURE;
 	    }
@@ -116,8 +117,8 @@
 	    dig__fread_port_L(&lb, 1, &fp);
 	    dig_fflush(&fp);
 	    if (lb != tl[j]) {
-		G_warning("Error in read/write portable long, byte_order = %d"
-			  " Written: %lu Read: %lu", 
+		G_warning(_("Error in read/write portable long, byte_order = %d"
+			    " Written: %lu Read: %lu"), 
 			  byte_order, (long unsigned) tl[j], (long unsigned) lb);
 		err = EXIT_FAILURE;
 	    }
@@ -131,8 +132,8 @@
 	    dig__fread_port_I(&ib, 1, &fp);
 	    dig_fflush(&fp);
 	    if (ib != ti[j]) {
-		G_warning("Error in read/write portable int, byte_order = %d"
-			  " Written: %d Read: %d", 
+		G_warning(_("Error in read/write portable int, byte_order = %d"
+			    " Written: %d Read: %d"), 
 			  byte_order, ti[j], ib);
 		
 		err = EXIT_FAILURE;
@@ -147,8 +148,8 @@
 	    dig__fread_port_S(&sb, 1, &fp);
 	    dig_fflush(&fp);
 	    if (sb != ts[j]) {
-		G_warning("Error in read/write portable short, byte_order = %d"
-			  " Written: %d Read: %d",
+		G_warning(_("Error in read/write portable short, byte_order = %d"
+			    " Written: %d Read: %d"),
 			  byte_order,  ts[j], sb);
 		
 		err = EXIT_FAILURE;
@@ -162,8 +163,8 @@
 	    dig__fread_port_C(&cb, 1, &fp);
 	    dig_fflush(&fp);
 	    if (cb != tc[j]) {
-		G_warning("Error in read/write portable char, byte_order = %d"
-			  " Written: %d Read: %d",
+		G_warning(_("Error in read/write portable char, byte_order = %d"
+			    " Written: %d Read: %d"),
 			  byte_order, tc[j], cb);
 		err = EXIT_FAILURE;
 	    }
@@ -177,4 +178,3 @@
 
     exit(err);
 }
-



More information about the grass-commit mailing list