[GRASS-SVN] r52991 - grass/branches/develbranch_6/raster/r.mapcalc

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 30 01:22:44 PDT 2012


Author: neteler
Date: 2012-08-30 01:22:43 -0700 (Thu, 30 Aug 2012)
New Revision: 52991

Modified:
   grass/branches/develbranch_6/raster/r.mapcalc/main.c
Log:
marisn: Extract r.mapcalc --help text for translation (fwd-port of r52421)

Modified: grass/branches/develbranch_6/raster/r.mapcalc/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.mapcalc/main.c	2012-08-30 08:06:28 UTC (rev 52990)
+++ grass/branches/develbranch_6/raster/r.mapcalc/main.c	2012-08-30 08:22:43 UTC (rev 52991)
@@ -32,19 +32,6 @@
 
 /****************************************************************************/
 
-static const char help_text[] =
-    "r.mapcalc - Raster map layer data calculator\n"
-    "\n"
-    "usage: r.mapcalc '<map>=<expression>'\n"
-    "\n"
-    "r.mapcalc performs arithmetic on raster map layers.\n"
-    "\n"
-    "New raster map layers can be created which are arithmetic expressions\n"
-    "involving existing raster map layers, integer or floating point constants,\n"
-    "and functions.\n" "\n" "For more information use 'g.manual r.mapcalc'\n";
-
-/****************************************************************************/
-
 static expr_list *result;
 
 /****************************************************************************/
@@ -121,7 +108,17 @@
 
     if (argc > 1 && (strcmp(argv[1], "help") == 0 ||
 		     strcmp(argv[1], "--help") == 0)) {
-	fputs(help_text, stderr);
+	fputs(
+            _("r.mapcalc - Raster map layer data calculator\n"
+            "\n"
+            "usage: r.mapcalc '<map>=<expression>'\n"
+            "\n"
+            "r.mapcalc performs arithmetic on raster map layers.\n"
+            "\n"
+            "New raster map layers can be created which are arithmetic expressions\n"
+            "involving existing raster map layers, integer or floating point constants,\n"
+            "and functions.\n \nFor more information use 'g.manual r.mapcalc'\n"), 
+       stderr);
 	return EXIT_SUCCESS;
     }
 



More information about the grass-commit mailing list