[GRASS-SVN] r65297 - in grass/trunk: include lib/gis lib/proj lib/vector/Vlib locale raster/r.clump raster/r.contour raster/r.cost raster/r.fill.dir raster/r.out.ppm raster/r.out.ppm3 raster/r.resamp.bspline raster/r.resamp.rst raster/r.sim/simlib raster/r.stream.extract raster/r.surf.idw raster/r.texture raster/r.thin raster/r.watershed/ram raster/r.watershed/seg vector/v.build.polylines vector/v.category vector/v.edit vector/v.external vector/v.extract vector/v.in.ascii vector/v.in.db vector/v.kernel vector/v.lidar.correction vector/v.lrs/v.lrs.segment vector/v.lrs/v.lrs.where vector/v.net.distance vector/v.out.ascii vector/v.out.ogr vector/v.out.postgis vector/v.out.pov vector/v.overlay vector/v.sample vector/v.segment vector/v.surf.idw vector/v.voronoi vector/v.what.rast3

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 21 02:23:12 PDT 2015


Author: marisn
Date: 2015-05-21 02:23:11 -0700 (Thu, 21 May 2015)
New Revision: 65297

Modified:
   grass/trunk/include/glocale.h
   grass/trunk/lib/gis/get_ellipse.c
   grass/trunk/lib/proj/ellipse.c
   grass/trunk/lib/vector/Vlib/build_nat.c
   grass/trunk/lib/vector/Vlib/build_sfa.c
   grass/trunk/lib/vector/Vlib/cats.c
   grass/trunk/locale/Makefile
   grass/trunk/locale/README
   grass/trunk/raster/r.clump/main.c
   grass/trunk/raster/r.contour/cont.c
   grass/trunk/raster/r.cost/main.c
   grass/trunk/raster/r.fill.dir/dopolys.c
   grass/trunk/raster/r.out.ppm/main.c
   grass/trunk/raster/r.out.ppm3/main.c
   grass/trunk/raster/r.resamp.bspline/crosscorr.c
   grass/trunk/raster/r.resamp.rst/main.c
   grass/trunk/raster/r.sim/simlib/input.c
   grass/trunk/raster/r.stream.extract/del_streams.c
   grass/trunk/raster/r.surf.idw/main.c
   grass/trunk/raster/r.texture/main.c
   grass/trunk/raster/r.thin/io.c
   grass/trunk/raster/r.thin/thin_lines.c
   grass/trunk/raster/r.watershed/ram/do_cum.c
   grass/trunk/raster/r.watershed/seg/init_vars.c
   grass/trunk/vector/v.build.polylines/main.c
   grass/trunk/vector/v.category/main.c
   grass/trunk/vector/v.edit/main.c
   grass/trunk/vector/v.edit/select.c
   grass/trunk/vector/v.external/list.c
   grass/trunk/vector/v.extract/main.c
   grass/trunk/vector/v.in.ascii/points.c
   grass/trunk/vector/v.in.db/main.c
   grass/trunk/vector/v.kernel/main.c
   grass/trunk/vector/v.lidar.correction/main.c
   grass/trunk/vector/v.lrs/v.lrs.segment/main.c
   grass/trunk/vector/v.lrs/v.lrs.where/main.c
   grass/trunk/vector/v.net.distance/main.c
   grass/trunk/vector/v.out.ascii/main.c
   grass/trunk/vector/v.out.ogr/main.c
   grass/trunk/vector/v.out.postgis/main.c
   grass/trunk/vector/v.out.pov/main.c
   grass/trunk/vector/v.overlay/area_area.c
   grass/trunk/vector/v.sample/main.c
   grass/trunk/vector/v.segment/main.c
   grass/trunk/vector/v.surf.idw/main.c
   grass/trunk/vector/v.surf.idw/read_sites.c
   grass/trunk/vector/v.voronoi/main.c
   grass/trunk/vector/v.voronoi/sw_main.c
   grass/trunk/vector/v.what.rast3/main.c
Log:
Rename _n macro to n_ to avoid clashes with other libs (as sugested in dev ML)

Modified: grass/trunk/include/glocale.h
===================================================================
--- grass/trunk/include/glocale.h	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/include/glocale.h	2015-05-21 09:23:11 UTC (rev 65297)
@@ -8,10 +8,10 @@
 #if defined(HAVE_LIBINTL_H) && defined(USE_NLS)
 #include <libintl.h>
 #define _(str) G_gettext(PACKAGE,(str))
-#define _n(strs,strp,num) G_ngettext(PACKAGE,(strs),(strp),num)
+#define n_(strs,strp,num) G_ngettext(PACKAGE,(strs),(strp),num)
 #else
 #define _(str) (str)
-#define _n(strs,strp,num) ((num == 1) ? (strs) : (strp))
+#define n_(strs,strp,num) ((num == 1) ? (strs) : (strp))
 #endif
 
 #endif

Modified: grass/trunk/lib/gis/get_ellipse.c
===================================================================
--- grass/trunk/lib/gis/get_ellipse.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/lib/gis/get_ellipse.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -317,7 +317,7 @@
     }
 
     (fatal ? G_fatal_error : G_warning)(
-	_n(
+	n_(
 	("Line%s of ellipsoid table file <%s> is invalid"),
         ("Lines%s of ellipsoid table file <%s> are invalid"),
         err), 

Modified: grass/trunk/lib/proj/ellipse.c
===================================================================
--- grass/trunk/lib/proj/ellipse.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/lib/proj/ellipse.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -269,7 +269,7 @@
 	return outputlist;
 
     (fatal ? G_fatal_error : G_warning)(
-	_n(
+	n_(
         ("Line%s of ellipsoid table file <%s> is invalid"),
 	("Lines%s of ellipsoid table file <%s> are invalid"),
         err), 

Modified: grass/trunk/lib/vector/Vlib/build_nat.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build_nat.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/lib/vector/Vlib/build_nat.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -114,8 +114,8 @@
 	}
 	G_progress(1, 1);
 
-	G_message(_n("One primitive registered", "%d primitives registered", plus->n_lines), plus->n_lines);
-	G_message(_n("One vertex registered", "%d vertices registered", npoints), npoints);
+	G_message(n_("One primitive registered", "%d primitives registered", plus->n_lines), plus->n_lines);
+	G_message(n_("One vertex registered", "%d vertices registered", npoints), npoints);
 
 	plus->built = GV_BUILD_BASE;
     }
@@ -150,8 +150,8 @@
 		Vect_build_line_area(Map, line, side);
 	    }
 	}
-	G_message(_n("One area built", "%d areas built", plus->n_areas), plus->n_areas);
-	G_message(_n("One isle built", "%d isles built", plus->n_isles), plus->n_isles);
+	G_message(n_("One area built", "%d areas built", plus->n_areas), plus->n_areas);
+	G_message(n_("One isle built", "%d isles built", plus->n_isles), plus->n_isles);
 	plus->built = GV_BUILD_AREAS;
     }
 

Modified: grass/trunk/lib/vector/Vlib/build_sfa.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build_sfa.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/lib/vector/Vlib/build_sfa.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -382,8 +382,8 @@
     }
     G_progress(1, 1);
 
-    G_message(_n("One primitive registered", "%d primitives registered", Map->plus.n_lines), Map->plus.n_lines);
-    G_message(_n("One vertex registered", "%d vertices registered", npoints), npoints);
+    G_message(n_("One primitive registered", "%d primitives registered", Map->plus.n_lines), Map->plus.n_lines);
+    G_message(n_("One vertex registered", "%d vertices registered", npoints), npoints);
 
     Map->plus.built = GV_BUILD_BASE;
 
@@ -658,11 +658,11 @@
     } /* while */
     G_progress(1, 1);
     
-    G_message(_n("One primitive registered", "%d primitives registered", Map->plus.n_lines), Map->plus.n_lines);
-    G_message(_n("One vertex registered", "%d vertices registered", npoints), npoints);
+    G_message(n_("One primitive registered", "%d primitives registered", Map->plus.n_lines), Map->plus.n_lines);
+    G_message(n_("One vertex registered", "%d vertices registered", npoints), npoints);
     
     if (nskipped > 0)
-        G_warning(_n("One feature without geometry skipped", "%d features without geometry skipped", nskipped), nskipped);
+        G_warning(n_("One feature without geometry skipped", "%d features without geometry skipped", nskipped), nskipped);
         
     Map->plus.built = GV_BUILD_BASE;
     

Modified: grass/trunk/lib/vector/Vlib/cats.c
===================================================================
--- grass/trunk/lib/vector/Vlib/cats.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/lib/vector/Vlib/cats.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -602,7 +602,7 @@
 	if (ncats == -1)
 		G_fatal_error(_("Unable select records from table <%s>"),
 			      Fi->table);
-	G_verbose_message(_n("One category loaded", "%d categories loaded", ncats), ncats);
+	G_verbose_message(n_("One category loaded", "%d categories loaded", ncats), ncats);
 	    
 	db_close_database_shutdown_driver(driver);
 

Modified: grass/trunk/locale/Makefile
===================================================================
--- grass/trunk/locale/Makefile	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/locale/Makefile	2015-05-21 09:23:11 UTC (rev 65297)
@@ -31,9 +31,9 @@
 WXPYDOMAIN = grasswxpy
 DOMAINS = $(LIBDOMAIN) $(MODDOMAIN) $(WXPYDOMAIN)
 
-LIB_POTFILES = find ../lib \( -name "*.c" -o -name "*.py" \) | xargs grep -l "_(\"\|_n(\""
-MOD_POTFILES = find ../ -name '*.c' | grep -v '../lib' | xargs grep -l "_(\"\|_n(\""
-WXPY_POTFILES = find ../gui/wxpython -name '*.py' | xargs grep -l "_(\"\|_n(\""
+LIB_POTFILES = find ../lib \( -name "*.c" -o -name "*.py" \) | xargs grep -l "_(\"\|n_(\""
+MOD_POTFILES = find ../ -name '*.c' | grep -v '../lib' | xargs grep -l "_(\"\|n_(\""
+WXPY_POTFILES = find ../gui/wxpython -name '*.py' | xargs grep -l "_(\"\|n_(\""
 
 define po_stats
 GISBASE="$(RUN_GISBASE)" $(PYTHON) ./grass_po_stats.py
@@ -48,11 +48,11 @@
 	fi
 	@rm -f ./templates/*.pot
 	@echo "Generating $(LIBDOMAIN)..."
-	xgettext --keyword=_ --keyword=_n:1,2 -cGTC -o ./templates/$(LIBDOMAIN).pot `$(LIB_POTFILES)`
+	xgettext --keyword=_ --keyword=n_:1,2 -cGTC -o ./templates/$(LIBDOMAIN).pot `$(LIB_POTFILES)`
 	@echo "Generating $(MODDOMAIN)..."
-	xgettext --keyword=_ --keyword=_n:1,2 -cGTC -o ./templates/$(MODDOMAIN).pot `$(MOD_POTFILES)`
+	xgettext --keyword=_ --keyword=n_:1,2 -cGTC -o ./templates/$(MODDOMAIN).pot `$(MOD_POTFILES)`
 	@echo "Generating $(WXPYDOMAIN)..."
-	xgettext --keyword=_ --keyword=_n:1,2 -cGTC -o ./templates/$(WXPYDOMAIN).pot `$(WXPY_POTFILES)` 
+	xgettext --keyword=_ --keyword=n_:1,2 -cGTC -o ./templates/$(WXPYDOMAIN).pot `$(WXPY_POTFILES)` 
 
 #merge already existing translations with new messages in POT template file and create new po files:
 update-po:

Modified: grass/trunk/locale/README
===================================================================
--- grass/trunk/locale/README	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/locale/README	2015-05-21 09:23:11 UTC (rev 65297)
@@ -61,8 +61,8 @@
 
 NOTE4:  Any string containing a number that requires a correct plural form of
         a noun, has to pass trough ngettext function implemented in GRASS
-        as a _n() macro.
-        _n("Message in English for singular case", "Message in English for
+        as a n_() macro.
+        n_("Message in English for singular case", "Message in English for
         plural case", number) 
 
 Examples of messages with plural forms.
@@ -75,20 +75,20 @@
     G_message( n == 1 ? _("Remove map") : _("Remove maps"));
 
 Correct:
-    G_message( _n("%d map from mapset <%s> removed", 
+    G_message( n_("%d map from mapset <%s> removed", 
         "%d maps from mapset <%s> removed", n), n, ms);
     /* Notice double use of number "n" - as an argument for 
-    both functions - _n() and G_message() */
-    G_message( _n("One file removed", "%d files removed", n) n);
+    both functions - n_() and G_message() */
+    G_message( n_("One file removed", "%d files removed", n) n);
     /* Both of forms of singular case "%d file" or "One file" are correct. 
     The choice between them is purely stylistic one. */
-    G_warning( _n("One feature without geometry skipped", 
+    G_warning( n_("One feature without geometry skipped", 
         "%d features without geometry skipped", n), n);
-    G_message( _n("%d map selected", "%d maps selected", n), n);
+    G_message( n_("%d map selected", "%d maps selected", n), n);
     /* Altough in English it is not necessary to provide a separate
     text if "n" always is >1, in other languages is a difference if "n"
     is i.e. 2-4, or n==10 etc. */
-    G_message( _n("Remove map", "Remove maps", n));
+    G_message( n_("Remove map", "Remove maps", n));
     /* Number it self doesn't have to be used in the output text */
         
         

Modified: grass/trunk/raster/r.clump/main.c
===================================================================
--- grass/trunk/raster/r.clump/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.clump/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -122,7 +122,7 @@
 	Rast_write_history(OUTPUT, &hist);
 
 	n_clumps = range_return == 2 ? 0 : range.max;
-	G_done_msg(_n("%d clump.", "%d clumps.", n_clumps), n_clumps);
+	G_done_msg(n_("%d clump.", "%d clumps.", n_clumps), n_clumps);
     }
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/raster/r.contour/cont.c
===================================================================
--- grass/trunk/raster/r.contour/cont.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.contour/cont.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -79,7 +79,7 @@
 
     ncrossing = 0;
 
-    G_message(_n("Writing vector contour (one level)...", 
+    G_message(n_("Writing vector contour (one level)...", 
         "Writing vector contours (total levels %d)...", nlevels), nlevels);
 
     for (n = 0; n < nlevels; n++) {
@@ -210,7 +210,7 @@
     }				/* for levels */
 
     if (ncrossing > 0) {
-	G_warning(_n("%d crossing found", 
+	G_warning(n_("%d crossing found", 
         "%d crossings found", 
         ncrossing), ncrossing);
     }

Modified: grass/trunk/raster/r.cost/main.c
===================================================================
--- grass/trunk/raster/r.cost/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.cost/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -581,7 +581,7 @@
 	if (npoints < 1)
 	    G_fatal_error(_("No start points found in vector map <%s>"), Vect_get_full_name(&In));
         else
-            G_verbose_message(_n("%d point found", "%d points found", npoints), npoints);
+            G_verbose_message(n_("%d point found", "%d points found", npoints), npoints);
         
 	Vect_close(&In);
     }

Modified: grass/trunk/raster/r.fill.dir/dopolys.c
===================================================================
--- grass/trunk/raster/r.fill.dir/dopolys.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.fill.dir/dopolys.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -81,7 +81,7 @@
 	    recurse_list(flag, cells, found, i);
 	}
     }
-    G_message(_n("Found %d unresolved area", 
+    G_message(n_("Found %d unresolved area", 
         "Found %d unresolved areas", flag), flag);
 
     /* Compose a new raster map to contain the resulting assignments */

Modified: grass/trunk/raster/r.out.ppm/main.c
===================================================================
--- grass/trunk/raster/r.out.ppm/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.out.ppm/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -98,8 +98,8 @@
     /*G_get_set_window (&w); *//* 10/99 MN: check for current region */
     G_get_window(&w);
 
-    G_asprintf(&tmpstr1, _n("row = %d", "rows = %d", w.rows), w.rows);
-    G_asprintf(&tmpstr2, _n("column = %d", "columns = %d", w.cols), w.cols);
+    G_asprintf(&tmpstr1, n_("row = %d", "rows = %d", w.rows), w.rows);
+    G_asprintf(&tmpstr2, n_("column = %d", "columns = %d", w.cols), w.cols);
     G_message("%s, %s", tmpstr1, tmpstr2);
     G_free(tmpstr1);
     G_free(tmpstr2); 

Modified: grass/trunk/raster/r.out.ppm3/main.c
===================================================================
--- grass/trunk/raster/r.out.ppm3/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.out.ppm3/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -92,9 +92,9 @@
 
     G_get_window(&w);
 
-    G_asprintf(&tmpstr1, _n("row = %d", "rows = %d", w.rows), w.rows);
+    G_asprintf(&tmpstr1, n_("row = %d", "rows = %d", w.rows), w.rows);
     /* GTC Raster columns */
-    G_asprintf(&tmpstr2, _n("column = %d", "columns = %d", w.cols), w.cols);
+    G_asprintf(&tmpstr2, n_("column = %d", "columns = %d", w.cols), w.cols);
     G_message("%s, %s", tmpstr1, tmpstr2);
     G_free(tmpstr1);
     G_free(tmpstr2); 

Modified: grass/trunk/raster/r.resamp.bspline/crosscorr.c
===================================================================
--- grass/trunk/raster/r.resamp.bspline/crosscorr.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.resamp.bspline/crosscorr.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -166,7 +166,7 @@
     /* Current region is read and points recorded into observ */
     observ = P_Read_Raster_Region_Map(in_seg, &region, src_reg, &ndata, 1024);
     G_debug(5, "CrossCorrelation: %d points read in region. ", ndata);
-    G_verbose_message(_n("%d point read in region", 
+    G_verbose_message(n_("%d point read in region", 
         "%d points read in region", ndata),
 		      ndata);
 

Modified: grass/trunk/raster/r.resamp.rst/main.c
===================================================================
--- grass/trunk/raster/r.resamp.rst/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.resamp.rst/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -397,7 +397,7 @@
 	    G_message(_("%.2f KB of disk space for temp files."), sdisk / 1024.);
     }
     else
-	G_message(_n("%d byte of disk space for temp files.", 
+	G_message(n_("%d byte of disk space for temp files.", 
         "%d bytes of disk space for temp files.", (int)sdisk), (int)sdisk);
 
 

Modified: grass/trunk/raster/r.sim/simlib/input.c
===================================================================
--- grass/trunk/raster/r.sim/simlib/input.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.sim/simlib/input.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -252,7 +252,7 @@
 
     deltap = amin1(deltap, deltaw);
 
-    G_message(_n("Number of iterations \t= %d cell\n", 
+    G_message(n_("Number of iterations \t= %d cell\n", 
         "Number of iterations \t= %d cells\n", miter), miter);
     G_message(_("Time step \t= %.2f s\n"), deltap);
     if (wdepth) {

Modified: grass/trunk/raster/r.stream.extract/del_streams.c
===================================================================
--- grass/trunk/raster/r.stream.extract/del_streams.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.stream.extract/del_streams.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -127,7 +127,7 @@
     int other_trib, tmp_trib;
     int slength;
 
-    G_message(_n("Deleting stream segments shorter than %d cell...",
+    G_message(n_("Deleting stream segments shorter than %d cell...",
                  "Deleting stream segments shorter than %d cells...", min_length),
               min_length);
 
@@ -190,7 +190,7 @@
 	}
     }
 
-    G_verbose_message(_n("%d stream segment deleted", 
+    G_verbose_message(n_("%d stream segment deleted", 
                          "%d stream segments deleted", n_deleted), n_deleted);
 
     return n_deleted;

Modified: grass/trunk/raster/r.surf.idw/main.c
===================================================================
--- grass/trunk/raster/r.surf.idw/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.surf.idw/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -257,7 +257,7 @@
     nbr_head->searchptr = &(nbr_head->Mptr);	/* see replace_neighbor */
 #endif
 
-    G_message(_n("Interpolating raster map <%s> (%d row)...", 
+    G_message(n_("Interpolating raster map <%s> (%d row)...", 
         "Interpolating raster map <%s> (%d rows)...", nrows),
         output, nrows);
 

Modified: grass/trunk/raster/r.texture/main.c
===================================================================
--- grass/trunk/raster/r.texture/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.texture/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -324,7 +324,7 @@
 	}
     }
     if (n_measures > 1)
-	G_message(_n("Calculating %d texture measure", 
+	G_message(n_("Calculating %d texture measure", 
         "Calculating %d texture measures", n_measures), n_measures);
     else
 	G_message(_("Calculating %s"), menu[measure_idx[0]].desc);

Modified: grass/trunk/raster/r.thin/io.c
===================================================================
--- grass/trunk/raster/r.thin/io.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.thin/io.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -99,9 +99,9 @@
     n_cols = Rast_window_cols();
     
     /* GTC Count of raster rows */
-    G_asprintf(&tmpstr1, _n("%d row", "%d rows", n_rows), n_rows);
+    G_asprintf(&tmpstr1, n_("%d row", "%d rows", n_rows), n_rows);
     /* GTC Count of raster columns */
-    G_asprintf(&tmpstr2, _n("%d column", "%d columns", n_cols), n_cols);
+    G_asprintf(&tmpstr2, n_("%d column", "%d columns", n_cols), n_cols);
     /* GTC First argument is the raster map name, second and third - a string representing number of rows and cols */
     G_message(_("Raster map <%s> - %s X %s"), name, tmpstr1, tmpstr2);
     G_free(tmpstr1);
@@ -166,18 +166,18 @@
     col_count = n_cols - (PAD << 1);
     
     /* GTC Count of raster rows */
-    G_asprintf(&tmpstr1, _n("%d row", "%d rows", row_count), row_count);
+    G_asprintf(&tmpstr1, n_("%d row", "%d rows", row_count), row_count);
     /* GTC Count of raster columns */
-    G_asprintf(&tmpstr2, _n("%d column", "%d columns", col_count), col_count);
+    G_asprintf(&tmpstr2, n_("%d column", "%d columns", col_count), col_count);
     /* GTC %s will be replaced with number of rows and columns */
     G_message(_("Output map %s X %s"), tmpstr1, tmpstr2);
     G_free(tmpstr1);
     G_free(tmpstr2); 
     
     /* GTC Count of window rows */
-    G_asprintf(&tmpstr1, _n("%d row", "%d rows", Rast_window_rows()), Rast_window_rows());
+    G_asprintf(&tmpstr1, n_("%d row", "%d rows", Rast_window_rows()), Rast_window_rows());
     /* GTC Count of window columns */
-    G_asprintf(&tmpstr2, _n("%d column", "%d columns", Rast_window_cols()), Rast_window_cols());
+    G_asprintf(&tmpstr2, n_("%d column", "%d columns", Rast_window_cols()), Rast_window_cols());
     /* GTC %s will be replaced with number of rows and columns */
     G_message(_("Window %s X %s"), tmpstr1, tmpstr2);
     G_free(tmpstr1);

Modified: grass/trunk/raster/r.thin/thin_lines.c
===================================================================
--- grass/trunk/raster/r.thin/thin_lines.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.thin/thin_lines.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -164,7 +164,7 @@
 	    }			/* end row loop */
 	}			/* j-loop */
 
-	G_message(_n("Deleted %d pixel", "Deleted %d pixels", deleted), deleted);
+	G_message(n_("Deleted %d pixel", "Deleted %d pixels", deleted), deleted);
     }				/* while delete >0 */
 
     if ((deleted == 0) && (i <= iterations))

Modified: grass/trunk/raster/r.watershed/ram/do_cum.c
===================================================================
--- grass/trunk/raster/r.watershed/ram/do_cum.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.watershed/ram/do_cum.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -471,7 +471,7 @@
 	}
     }
     if (workedon)
-	G_warning(_n("MFD: A * path already processed when distributing flow: %d of %d cell", 
+	G_warning(n_("MFD: A * path already processed when distributing flow: %d of %d cell", 
         "MFD: A * path already processed when distributing flow: %d of %d cells", 
         do_points),
 		  workedon, do_points);

Modified: grass/trunk/raster/r.watershed/seg/init_vars.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/init_vars.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/raster/r.watershed/seg/init_vars.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -129,7 +129,7 @@
     if (seg_flag || bas_flag || haf_flag)
 	tot_parts++;
 
-    G_message(_n("SECTION 1 beginning: Initiating Variables. %d section total.", 
+    G_message(n_("SECTION 1 beginning: Initiating Variables. %d section total.", 
         "SECTION 1 beginning: Initiating Variables. %d sections total.", 
         tot_parts),
 	      tot_parts);

Modified: grass/trunk/vector/v.build.polylines/main.c
===================================================================
--- grass/trunk/vector/v.build.polylines/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.build.polylines/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -227,11 +227,11 @@
 	polyline++;
     }
 
-    G_verbose_message(_n("%d line or boundaries found in input vector map",
+    G_verbose_message(n_("%d line or boundaries found in input vector map",
                          "%d lines or boundaries found in input vector map",
                          nlines),
 		      nlines, Vect_get_name(&map), Vect_get_mapset(&map));
-    G_verbose_message(_n("%d polyline stored in output vector map",
+    G_verbose_message(n_("%d polyline stored in output vector map",
                          "%d polylines stored in output vector map",
                          polyline),
 		      polyline, Vect_get_name(&Out), Vect_get_mapset(&Out));

Modified: grass/trunk/vector/v.category/main.c
===================================================================
--- grass/trunk/vector/v.category/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.category/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -214,7 +214,7 @@
 	Clist->field = atoi(field_opt->answer);
 	ret = Vect_str_to_cat_list(id_opt->answer, Clist);
 	if (ret > 0) {
-	    G_warning(_n("%d error in id option",
+	    G_warning(n_("%d error in id option",
                          "%d errors in id option",
                          ret), ret);
 	}
@@ -375,7 +375,7 @@
 		new_centr++;
 	    }
 	    if (new_centr > 0) 
-		G_message(_n("%d new centroid placed in output map",
+		G_message(n_("%d new centroid placed in output map",
                              "%d new centroids placed in output map",
                              new_centr), new_centr);
 	}
@@ -770,7 +770,7 @@
 		                  fields[0], fields[i]);
 
     if (option != O_REP && option != O_PRN) 
-        G_done_msg(_n("%d feature modified.",
+        G_done_msg(n_("%d feature modified.",
                       "%d features modified.",
                       nmodified), nmodified);
     

Modified: grass/trunk/vector/v.edit/main.c
===================================================================
--- grass/trunk/vector/v.edit/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.edit/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -271,7 +271,7 @@
 	    int iline;
 	    struct ilist *List_added;
 	    
-	    G_message(_n("%d feature added",
+	    G_message(n_("%d feature added",
                          "%d features added",
                          ret), ret);
 	    
@@ -291,7 +291,7 @@
 		int nclosed;
 
 		nclosed = close_lines(&Map, GV_BOUNDARY, thresh[THRESH_SNAP]);
-		G_message(_n("%d boundary closed",
+		G_message(n_("%d boundary closed",
                              "%d boundaries closed",
                              nclosed), nclosed);
 	    }
@@ -300,7 +300,7 @@
 	break;
     case MODE_DEL:
 	ret = Vedit_delete_lines(&Map, List);
-	G_message(_n("%d feature deleted",
+	G_message(n_("%d feature deleted",
                      "%d features deleted",
                      ret), ret);
 	break;
@@ -311,7 +311,7 @@
 	G_verbose_message(_("Threshold value for snapping is %.2f"),
 			  thresh[THRESH_SNAP]);
 	ret = Vedit_move_lines(&Map, BgMap, nbgmaps, List, move_x, move_y, move_z, snap, thresh[THRESH_SNAP]);
-	G_message(_n("%d feature moved",
+	G_message(n_("%d feature moved",
                      "%d features moved",
                      ret), ret);
 	break;
@@ -322,19 +322,19 @@
 	G_verbose_message(_("Threshold value for snapping is %.2f"),
 			  thresh[THRESH_SNAP]);
 	ret = Vedit_move_vertex(&Map, BgMap, nbgmaps, List, coord, thresh[THRESH_COORDS], thresh[THRESH_SNAP], move_x, move_y, move_z, move_first, snap);
-	G_message(_n("%d vertex moved",
+	G_message(n_("%d vertex moved",
                      "%d vertices moved",
                      ret), ret);
 	break;
     case MODE_VERTEX_ADD:
 	ret = Vedit_add_vertex(&Map, List, coord, thresh[THRESH_COORDS]);
-	G_message(_n("%d vertex added",
+	G_message(n_("%d vertex added",
                      "%d vertices added",
                      ret), ret);
 	break;
     case MODE_VERTEX_DELETE:
 	ret = Vedit_remove_vertex(&Map, List, coord, thresh[THRESH_COORDS]);
-	G_message(_n("%d vertex removed",
+	G_message(n_("%d vertex removed",
                      "%d vertices removed",
                      ret), ret);
 	break;
@@ -346,7 +346,7 @@
 	else {
 	    ret = Vect_break_lines_list(&Map, List, NULL, GV_LINES, NULL);
 	}
-	G_message(_n("%d line broken",
+	G_message(n_("%d line broken",
                      "%d lines broken",
                      ret), ret);
 	break;
@@ -354,13 +354,13 @@
 	G_verbose_message(_("Threshold value for snapping is %.2f"),
 			  thresh[THRESH_SNAP]);
 	ret = Vedit_connect_lines(&Map, List, thresh[THRESH_SNAP]);
-	G_message(_n("%d line connected",
+	G_message(n_("%d line connected",
                      "%d lines connected",
                      ret), ret);
 	break;
     case MODE_MERGE:
 	ret = Vedit_merge_lines(&Map, List);
-	G_message(_n("%d line merged",
+	G_message(n_("%d line merged",
                      "%d lines merged",
                      ret), ret);
 	break;
@@ -369,13 +369,13 @@
 	break;
     case MODE_CATADD:
 	ret = Vedit_modify_cats(&Map, List, layer, 0, Clist);
-	G_message(_n("%d feature modified",
+	G_message(n_("%d feature modified",
                      "%d features modified",
                      ret), ret);
 	break;
     case MODE_CATDEL:
 	ret = Vedit_modify_cats(&Map, List, layer, 1, Clist);
-	G_message(_n("%d feature modified",
+	G_message(n_("%d feature modified",
                      "%d features modified",
                      ret), ret);
 	break;
@@ -392,7 +392,7 @@
 	else {
 	    ret = Vedit_copy_lines(&Map, NULL, List);
 	}
-	G_message(_n("%d feature copied",
+	G_message(n_("%d feature copied",
                      "%d features copied",
                      ret), ret);
 	break;
@@ -403,7 +403,7 @@
 	break;
     case MODE_FLIP:
 	ret = Vedit_flip_lines(&Map, List);
-	G_message(_n("%d line flipped",
+	G_message(n_("%d line flipped",
                      "%d lines flipped",
                      ret), ret);
 	break;
@@ -424,7 +424,7 @@
 	ret = Vedit_bulk_labeling(&Map, List,
 				  x1, y1, x2, y2, start, step);
 	
-	G_message(_n("%d line labeled",
+	G_message(n_("%d line labeled",
                      "%d lines labeled",
                      ret), ret);
 	break;
@@ -433,7 +433,7 @@
 	ret = Vedit_chtype_lines(&Map, List);
 	
 	if (ret > 0) {
-	    G_message(_n("%d feature converted",
+	    G_message(n_("%d feature converted",
                          "%d features converted",
                          ret), ret);
 	}
@@ -452,7 +452,7 @@
 	    
 	    ret += Vedit_delete_area_centroid(&Map, List->value[i]);
 	}
-	G_message(_n("%d area removed",
+	G_message(n_("%d area removed",
                      "%d areas removed",
                      ret), ret);
 	break;

Modified: grass/trunk/vector/v.edit/select.c
===================================================================
--- grass/trunk/vector/v.edit/select.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.edit/select.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -173,7 +173,7 @@
 	reverse_selection(Map, type, &List);
     }
 
-    G_message(_n("%d of %d feature selected from vector map <%s>",
+    G_message(n_("%d of %d feature selected from vector map <%s>",
                  "%d of %d features selected from vector map <%s>",
                  Vect_get_num_lines(Map)
     ),

Modified: grass/trunk/vector/v.external/list.c
===================================================================
--- grass/trunk/vector/v.external/list.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.external/list.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -176,7 +176,7 @@
     ntables = PQntuples(res);
     G_debug(3, "   nrows = %d", ntables);
     if (fd)
-	G_message(_n("PostGIS database <%s> contains %d feature table:",
+	G_message(n_("PostGIS database <%s> contains %d feature table:",
                      "PostGIS database <%s> contains %d feature tables:",
                      ntables),
 		  PQdb(conn), ntables);
@@ -264,7 +264,7 @@
     nlayers = OGR_DS_GetLayerCount(Ogr_ds);
 
     if (fd)
-	G_message(_n("Data source <%s> (format '%s') contains %d layer:",
+	G_message(n_("Data source <%s> (format '%s') contains %d layer:",
                      "Data source <%s> (format '%s') contains %d layers:",
                      nlayers),
 		  dsn, OGR_Dr_GetName(OGR_DS_GetDriver(Ogr_ds)), nlayers);

Modified: grass/trunk/vector/v.extract/main.c
===================================================================
--- grass/trunk/vector/v.extract/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.extract/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -265,7 +265,7 @@
 	if (ncats == -1)
 		G_fatal_error(_("Unable select records from table <%s>"),
 			      Fi->table);
-	G_verbose_message(_n("%d category loaded",
+	G_verbose_message(n_("%d category loaded",
                              "%d categories loaded",
                              ncats), ncats);
 	    

Modified: grass/trunk/vector/v.in.ascii/points.c
===================================================================
--- grass/trunk/vector/v.in.ascii/points.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.in.ascii/points.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -295,7 +295,7 @@
     G_free(ytoken);
 
     if (region_flag)
-	G_message(_n("Skipping %d of %d row falling outside of current region",
+	G_message(n_("Skipping %d of %d row falling outside of current region",
                      "Skipping %d of %d rows falling outside of current region",
                      row - 1),
 		  skipped, row - 1);

Modified: grass/trunk/vector/v.in.db/main.c
===================================================================
--- grass/trunk/vector/v.in.db/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.in.db/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -337,7 +337,7 @@
     Vect_build(&Map);
     Vect_close(&Map);
 
-    G_done_msg(_n("%d point written to vector map.",
+    G_done_msg(n_("%d point written to vector map.",
                   "%d points written to vector map.",
                   count), count);
 

Modified: grass/trunk/vector/v.kernel/main.c
===================================================================
--- grass/trunk/vector/v.kernel/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.kernel/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -296,8 +296,8 @@
     G_get_window(&window);
 
     G_verbose_message(_("Standard deviation: %f"), sigma);
-    G_asprintf(&tmpstr1, _n("%d row", "%d rows", window.rows), window.rows);
-    G_asprintf(&tmpstr2, _n("%d column", "%d columns", window.cols), window.cols);
+    G_asprintf(&tmpstr1, n_("%d row", "%d rows", window.rows), window.rows);
+    G_asprintf(&tmpstr2, n_("%d column", "%d columns", window.cols), window.cols);
     /* GTC First argument is resolution, second - number of rows as a text, third - number of columns as a text. */
     G_verbose_message(_("Output raster map: resolution: %f\t%s\t%s"),
                       window.ew_res, tmpstr1, tmpstr2);
@@ -346,7 +346,7 @@
 	}
 
 	if (notreachable > 0)
-	    G_warning(_n("%d point outside threshold",
+	    G_warning(n_("%d point outside threshold",
                          "%d points outside threshold",
                          notreachable), notreachable);
     }
@@ -391,7 +391,7 @@
 	}
 
 	G_message(_("Number of input points: %d."), npoints);
-	G_message(_n("%d distance read from the map.",
+	G_message(n_("%d distance read from the map.",
                      "%d distances read from the map.",
                      ndists), ndists);
 

Modified: grass/trunk/vector/v.lidar.correction/main.c
===================================================================
--- grass/trunk/vector/v.lidar.correction/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.lidar.correction/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -270,10 +270,10 @@
     P_get_edge(P_BILINEAR, &dims, stepE, stepN);
     P_set_dim(&dims, stepE, stepN, &nsplx_adj, &nsply_adj);
 
-    G_verbose_message(_n("adjusted EW spline %d",
+    G_verbose_message(n_("adjusted EW spline %d",
                          "adjusted EW splines %d",
                          nsplx_adj), nsplx_adj);
-    G_verbose_message(_n("adjusted NS spline %d",
+    G_verbose_message(n_("adjusted NS spline %d",
                          "adjusted NS splines %d",
                          nsply_adj), nsply_adj);
 

Modified: grass/trunk/vector/v.lrs/v.lrs.segment/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.segment/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.lrs/v.lrs.segment/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -353,26 +353,26 @@
     if (file_opt->answer)
 	fclose(in_file);
 
-    G_message(_n("[%d] point read from input",
+    G_message(n_("[%d] point read from input",
                  "[%d] points read from input",
                  points_read), points_read);
-    G_asprintf(&tmpstr1, _n("%d lost", "%d lost", 
+    G_asprintf(&tmpstr1, n_("%d lost", "%d lost", 
                             points_read - points_written), 
                points_read - points_written);
     /* GTC %s will be replaced with a message about lost points. */
-    G_message(_n("[%d] point written to output map (%s)",
+    G_message(n_("[%d] point written to output map (%s)",
                  "[%d] points written to output map (%s)",
                  points_written),
 	      points_written, tmpstr1);
     G_free(tmpstr1);
-    G_message(_n("[%d] line read from input",
+    G_message(n_("[%d] line read from input",
                  "[%d] lines read from input",
                  lines_read), lines_read);
-    G_asprintf(&tmpstr1, _n("%d lost", "%d lost",
+    G_asprintf(&tmpstr1, n_("%d lost", "%d lost",
                             lines_read - lines_written),
                lines_read - lines_written);
     /* GTC %s will be replaced with a message about lost lines. */
-    G_message(_n("[%d] line written to output map (%s)",
+    G_message(n_("[%d] line written to output map (%s)",
                  "[%d] lines written to output map (%s)",
                  lines_written),
 	      lines_written, tmpstr1);

Modified: grass/trunk/vector/v.lrs/v.lrs.where/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.where/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.lrs/v.lrs.where/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -219,22 +219,22 @@
     Vect_close(&LMap);
     Vect_close(&PMap);
 
-    G_message(_n("[%d] point read from input",
+    G_message(n_("[%d] point read from input",
                  "[%d] points read from input",
                  n_points), n_points);
-    G_message(_n("[%d] position found",
+    G_message(n_("[%d] position found",
                  "[%d] positions found",
                  n_found), n_found);
     if (n_outside)
-	G_message(_n("[%d] point outside threshold",
+	G_message(n_("[%d] point outside threshold",
                      "[%d] points outside threshold",
                      n_outside), n_outside);
     if (n_no_record)
-	G_message(_n("[%d] point - no record found",
+	G_message(n_("[%d] point - no record found",
                      "[%d] points - no record found",
                      n_no_record), n_no_record);
     if (n_many_records)
-	G_message(_n("[%d] point - too many records found",
+	G_message(n_("[%d] point - too many records found",
                      "[%d] points - too many records found",
                      n_many_records), n_many_records);
 

Modified: grass/trunk/vector/v.net.distance/main.c
===================================================================
--- grass/trunk/vector/v.net.distance/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.net.distance/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -351,7 +351,7 @@
     G_free(prev);
 
     if (from_nr)
-	G_warning(_n("%d 'from' feature was not reachable",
+	G_warning(n_("%d 'from' feature was not reachable",
                      "%d 'from' features were not reachable",
                      from_nr), from_nr);
 

Modified: grass/trunk/vector/v.out.ascii/main.c
===================================================================
--- grass/trunk/vector/v.out.ascii/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.out.ascii/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -104,7 +104,7 @@
             G_fatal_error(_("Layer <%s> not found"), field_name);
         ret = Vect_str_to_cat_list(cats, clist);
         if (ret > 0)
-            G_fatal_error(_n("%d error in <%s> option",
+            G_fatal_error(n_("%d error in <%s> option",
                              "%d errors in <%s> option",
                              ret),
                           ret, "cats");

Modified: grass/trunk/vector/v.out.ogr/main.c
===================================================================
--- grass/trunk/vector/v.out.ogr/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.out.ogr/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -309,7 +309,7 @@
 
     /* check what users wants to export and what's present in the map */
     if (Vect_get_num_primitives(&In, GV_POINT) > 0 && !(otype & GV_POINTS))
-	G_warning(_n("%d point found, but not requested to be exported. "
+	G_warning(n_("%d point found, but not requested to be exported. "
 		     "Verify 'type' parameter.",
                      "%d points found, but not requested to be exported. "
                      "Verify 'type' parameter.",
@@ -317,7 +317,7 @@
                   Vect_get_num_primitives(&In, GV_POINT));
 
     if (Vect_get_num_primitives(&In, GV_LINE) > 0 && !(otype & GV_LINES))
-	G_warning(_n("%d line found, but not requested to be exported. "
+	G_warning(n_("%d line found, but not requested to be exported. "
 		     "Verify 'type' parameter.",
                      "%d line(s) found, but not requested to be exported. "
                      "Verify 'type' parameter.",
@@ -326,7 +326,7 @@
 
     if (Vect_get_num_primitives(&In, GV_BOUNDARY) > 0 &&
 	!(otype & GV_BOUNDARY) && !(otype & GV_AREA))
-	G_warning(_n("%d boundary found, but not requested to be exported. "
+	G_warning(n_("%d boundary found, but not requested to be exported. "
 		     "Verify 'type' parameter.",
                      "%d boundaries found, but not requested to be exported. "
                      "Verify 'type' parameter.",
@@ -335,7 +335,7 @@
 
     if (Vect_get_num_primitives(&In, GV_CENTROID) > 0 &&
 	!(otype & GV_CENTROID) && !(otype & GV_AREA))
-	G_warning(_n("%d centroid found, but not requested to be exported. "
+	G_warning(n_("%d centroid found, but not requested to be exported. "
 		     "Verify 'type' parameter.",
                      "%d centroids found, but not requested to be exported. "
                      "Verify 'type' parameter.",
@@ -343,7 +343,7 @@
                   Vect_get_num_primitives(&In, GV_CENTROID));
 
     if (Vect_get_num_areas(&In) > 0 && !(otype & GV_AREA))
-	G_warning(_n("%d area found, but not requested to be exported. "
+	G_warning(n_("%d area found, but not requested to be exported. "
 		     "Verify 'type' parameter.",
                      "%d areas found, but not requested to be exported. "
                      "Verify 'type' parameter.",
@@ -351,7 +351,7 @@
                   Vect_get_num_areas(&In));
 
     if (Vect_get_num_primitives(&In, GV_FACE) > 0 && !(otype & GV_FACE))
-	G_warning(_n("%d face found, but not requested to be exported. "
+	G_warning(n_("%d face found, but not requested to be exported. "
 		     "Verify 'type' parameter.",
                      "%d faces found, but not requested to be exported. "
                      "Verify 'type' parameter.",
@@ -359,7 +359,7 @@
                   Vect_get_num_primitives(&In, GV_FACE));
 
     if (Vect_get_num_volumes(&In) > 0 && !(otype & GV_VOLUME))
-	G_warning(_n("%d volume found, but not requested to be exported. "
+	G_warning(n_("%d volume found, but not requested to be exported. "
 		     "Verify 'type' parameter.",
                      "%d volumes found, but not requested to be exported. "
                      "Verify 'type' parameter.",
@@ -714,7 +714,7 @@
     
     /* Lines (run always to count features of different type) */
     if (otype & (GV_POINTS | GV_LINES | GV_KERNEL | GV_FACE)) {
-        G_message(_n("Exporting %d feature...",
+        G_message(n_("Exporting %d feature...",
                      "Exporting %d features...",
                      Vect_get_num_primitives(&In, otype)),
                  Vect_get_num_primitives(&In, otype));
@@ -729,7 +729,7 @@
 
     /* Areas (run always to count features of different type) */
     if (Vect_get_num_areas(&In) > 0 && (otype & GV_AREA)) {
-	G_message(_n("Exporting %d area (may take some time)...",
+	G_message(n_("Exporting %d area (may take some time)...",
                      "Exporting %d areas (may take some time)...",
                      Vect_get_num_areas(&In)),
 		  Vect_get_num_areas(&In));
@@ -748,7 +748,7 @@
        which output format would know the difference?
      */
     if (Vect_get_num_volumes(&In) > 0 && (otype & GV_VOLUME)) {
-	G_message(_n("Exporting %d volume...",
+	G_message(n_("Exporting %d volume...",
                      "Exporting %d volumes...",
                      Vect_get_num_volumes(&In)),
                   Vect_get_num_volumes(&In));
@@ -769,17 +769,17 @@
 
     /* Summary */
     if (n_noatt > 0)
-	G_important_message(_n("%d feature without attributes was written",
+	G_important_message(n_("%d feature without attributes was written",
                                "%d features without attributes were written",
                                n_noatt), n_noatt);
 
     if (n_nocat > 0) {
 	if (donocat)
-	    G_important_message(_n("%d feature without category was written",
+	    G_important_message(n_("%d feature without category was written",
 				   "%d features without category were written",
 				   n_nocat), n_nocat);
 	else
-	    G_warning(_n("%d feature without category was skipped. "
+	    G_warning(n_("%d feature without category was skipped. "
                          "Features without category are written only when -%c flag is given.",
                          "%d features without category were skipped. "
                          "Features without category are written only when -%c flag is given.",
@@ -796,7 +796,7 @@
 
     if (n_feat < 1)
         G_warning(_("Output layer is empty, no features written"));
-    G_done_msg(_n("%d feature (%s type) written to <%s> (%s format).",
+    G_done_msg(n_("%d feature (%s type) written to <%s> (%s format).",
                   "%d features (%s type) written to <%s> (%s format).",
                   n_feat), n_feat,
                OGRGeometryTypeToName(wkbtype),

Modified: grass/trunk/vector/v.out.postgis/main.c
===================================================================
--- grass/trunk/vector/v.out.postgis/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.out.postgis/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -164,13 +164,13 @@
                       Vect_get_name(&Out));
 
     if (!flags.topo->answer) 
-        G_done_msg(_n("%d feature (%s type) written to <%s>.",
+        G_done_msg(n_("%d feature (%s type) written to <%s>.",
                       "%d features (%s type) written to <%s>.",
                       Vect_sfa_get_num_features(&Out)),
                    Vect_sfa_get_num_features(&Out), Vect_get_finfo_geometry_type(&Out),
                    Vect_get_name(&Out));
     else
-        G_done_msg(_n("%d primitive written to <%s>.",
+        G_done_msg(n_("%d primitive written to <%s>.",
                       "%d primitives written to <%s>.",
                       Vect_get_num_lines(&Out)),
                    Vect_get_num_lines(&Out), 

Modified: grass/trunk/vector/v.out.pov/main.c
===================================================================
--- grass/trunk/vector/v.out.pov/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.out.pov/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -215,7 +215,7 @@
     Vect_close(&In);
 
     /* Summary */
-    G_done_msg(_n("%d feature written.",
+    G_done_msg(n_("%d feature written.",
                   "%d features written.",
                   count), count);
 

Modified: grass/trunk/vector/v.overlay/area_area.c
===================================================================
--- grass/trunk/vector/v.overlay/area_area.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.overlay/area_area.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -96,7 +96,7 @@
 	Vect_destroy_boxlist(boxlist);
 	Vect_destroy_list(reflist);
 
-	G_verbose_message(_n("%d boundary snapped",
+	G_verbose_message(n_("%d boundary snapped",
                              "%d boundaries snapped",
                              snapped_lines), snapped_lines);
     }

Modified: grass/trunk/vector/v.sample/main.c
===================================================================
--- grass/trunk/vector/v.sample/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.sample/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -151,7 +151,7 @@
     if (nrecords < 0)
 	G_fatal_error(_("Unable to select data from table"));
 
-    G_verbose_message(_n("%d record selected from table",
+    G_verbose_message(n_("%d record selected from table",
                          "%d records selected from table",
                          nrecords), nrecords);
 

Modified: grass/trunk/vector/v.segment/main.c
===================================================================
--- grass/trunk/vector/v.segment/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.segment/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -258,24 +258,24 @@
 
     Vect_build(&Out);
 
-    G_message(_n("%d point read from input",
+    G_message(n_("%d point read from input",
                  "%d points read from input",
                  points_read), points_read);
     /* GTC Number of lost points */
-    G_asprintf(&tmpstr1, _n("%d lost", "%d lost", points_read - points_written), points_read - points_written);
+    G_asprintf(&tmpstr1, n_("%d lost", "%d lost", points_read - points_written), points_read - points_written);
     /* GTC %s is replaced with message indicating number of lost points. */
-    G_message(_n("%d point written to output map (%s)",
+    G_message(n_("%d point written to output map (%s)",
                  "%d points written to output map (%s)",
                  points_written),
                  points_written, tmpstr1);
     G_free(tmpstr1);
-    G_message(_n("%d line read from input",
+    G_message(n_("%d line read from input",
                  "%d lines read from input",
                  lines_read), lines_read);
     /* GTC Number of lost lines */
-    G_asprintf(&tmpstr1, _n("%d lost", "%d lost", lines_read - lines_written), lines_read - lines_written);
+    G_asprintf(&tmpstr1, n_("%d lost", "%d lost", lines_read - lines_written), lines_read - lines_written);
     /* GTC %s is replaced with message indicating number of lost lines. */
-    G_message(_n("%d line written to output map (%s)",
+    G_message(n_("%d line written to output map (%s)",
                  "%d lines written to output map (%s)",
                  lines_written),
                  lines_written, tmpstr1);

Modified: grass/trunk/vector/v.surf.idw/main.c
===================================================================
--- grass/trunk/vector/v.surf.idw/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.surf.idw/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -256,9 +256,9 @@
     fd = Rast_open_new(parm.output->answer, DCELL_TYPE);
 
     /* GTC Count of window rows */
-    G_asprintf(&tmpstr1, _n("%d row", "%d rows", window.rows), window.rows);
+    G_asprintf(&tmpstr1, n_("%d row", "%d rows", window.rows), window.rows);
     /* GTC Count of window columns */
-    G_asprintf(&tmpstr2, _n("%d column", "%d columns", window.cols), window.cols);
+    G_asprintf(&tmpstr2, n_("%d column", "%d columns", window.cols), window.cols);
     /* GTC First argument is map name, second - message about number of rows, third - columns. */
     G_important_message(_("Interpolating raster map <%s> (%s, %s)..."),
 			parm.output->answer, tmpstr1, tmpstr2);

Modified: grass/trunk/vector/v.surf.idw/read_sites.c
===================================================================
--- grass/trunk/vector/v.surf.idw/read_sites.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.surf.idw/read_sites.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -67,7 +67,7 @@
 	if (nrec < 0)
 	    G_fatal_error(_("Unable to select data from table"));
 
-	G_verbose_message(_n("One record selected from table", "%d records selected from table", nrec), nrec);
+	G_verbose_message(n_("One record selected from table", "%d records selected from table", nrec), nrec);
 
 	db_close_database_shutdown_driver(Driver);
     }
@@ -120,5 +120,5 @@
     Vect_set_release_support(&Map);
     Vect_close(&Map);
 
-    G_message(_n("%ld point loaded", "%ld points loaded", npoints), npoints);
+    G_message(n_("%ld point loaded", "%ld points loaded", npoints), npoints);
 }

Modified: grass/trunk/vector/v.voronoi/main.c
===================================================================
--- grass/trunk/vector/v.voronoi/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.voronoi/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -222,7 +222,7 @@
     plot = 0;
     debug = 0;
 
-    G_message(_n("Voronoi triangulation for %d point...",
+    G_message(n_("Voronoi triangulation for %d point...",
                  "Voronoi triangulation for %d points...",
                  nsites), nsites);
     voronoi(nextone);

Modified: grass/trunk/vector/v.voronoi/sw_main.c
===================================================================
--- grass/trunk/vector/v.voronoi/sw_main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.voronoi/sw_main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -185,7 +185,7 @@
     if (nsites < 2) {
 	const char *name = Vect_get_full_name(&In);
 	Vect_close(&In);
-	G_fatal_error(_n("Found %d point/centroid in <%s>, but at least 2 are needed",
+	G_fatal_error(n_("Found %d point/centroid in <%s>, but at least 2 are needed",
                          "Found %d points/centroids in <%s>, but at least 2 are needed",
                          nsites),
 	              nsites, name);
@@ -465,7 +465,7 @@
     if (nsites < 2) {
 	const char *name = Vect_get_full_name(&In);
 	Vect_close(&In);
-	G_fatal_error(_n("Found %d vertex in <%s>, but at least 2 are needed",
+	G_fatal_error(n_("Found %d vertex in <%s>, but at least 2 are needed",
                          "Found %d vertices in <%s>, but at least 2 are needed",
                          nsites),
 	              nsites, name);

Modified: grass/trunk/vector/v.what.rast3/main.c
===================================================================
--- grass/trunk/vector/v.what.rast3/main.c	2015-05-21 03:23:58 UTC (rev 65296)
+++ grass/trunk/vector/v.what.rast3/main.c	2015-05-21 09:23:11 UTC (rev 65297)
@@ -211,12 +211,12 @@
 
     /* Report number of points not used */
     if (outside_cnt)
-	G_warning(_n("%d point outside current region was skipped",
+	G_warning(n_("%d point outside current region was skipped",
                      "%d points outside current region were skipped",
                      outside_cnt), outside_cnt);
 
     if (nocat_cnt)
-	G_warning(_n("%d point without category was skipped", 
+	G_warning(n_("%d point without category was skipped", 
                      "%d points without category were skipped",
                      nocat_cnt), nocat_cnt);
 
@@ -325,25 +325,25 @@
     db_free_string(&stmt);
 
     /* Report */
-    G_verbose_message(_n("%d category loaded from table",
+    G_verbose_message(n_("%d category loaded from table",
                          "%d categories loaded from table",
                          select), select);
-    G_verbose_message(_n("%d category loaded from vector",
+    G_verbose_message(n_("%d category loaded from vector",
                          "%d categories loaded from vector",
                          point_cnt), point_cnt);
-    G_verbose_message(_n("%d category from vector missing in table",
+    G_verbose_message(n_("%d category from vector missing in table",
                          "%d categories from vector missing in table",
                          norec_cnt), norec_cnt);
     if (dupl_cnt > 0)
-	G_message(_n("%d duplicate category in vector",
+	G_message(n_("%d duplicate category in vector",
                      "%d duplicate categories in vector",
                      dupl_cnt), dupl_cnt);
     if (upderr_cnt > 0)
-	G_warning(_n("%d update error",
+	G_warning(n_("%d update error",
                      "%d update errors",
                      upderr_cnt), upderr_cnt);
 
-    G_done_msg(_n("%d record updated.",
+    G_done_msg(n_("%d record updated.",
                   "%d records updated.",
                   update_cnt), update_cnt);
         



More information about the grass-commit mailing list