[GRASS-SVN] r52421 - grass/branches/releasebranch_6_4/raster/r.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 20 01:18:27 PDT 2012
Author: marisn
Date: 2012-07-20 01:18:26 -0700 (Fri, 20 Jul 2012)
New Revision: 52421
Modified:
grass/branches/releasebranch_6_4/raster/r.mapcalc/main.c
Log:
Extract r.mapcalc --help text for translation
Modified: grass/branches/releasebranch_6_4/raster/r.mapcalc/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.mapcalc/main.c 2012-07-20 07:30:53 UTC (rev 52420)
+++ grass/branches/releasebranch_6_4/raster/r.mapcalc/main.c 2012-07-20 08:18:26 UTC (rev 52421)
@@ -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