Browse Source

split keywords also in scripts (to avoid duplicated translations)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38366 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
74ff0b0161
55 changed files with 138 additions and 55 deletions
  1. 1 1
      general/g.parser/main.c
  2. 2 1
      scripts/d.correlate/d.correlate.py
  3. 2 1
      scripts/d.polar/d.polar.py
  4. 2 1
      scripts/d.rast.edit/d.rast.edit.py
  5. 2 1
      scripts/db.dropcolumn/db.dropcolumn.py
  6. 2 1
      scripts/db.droptable/db.droptable.py
  7. 2 1
      scripts/db.in.ogr/db.in.ogr.py
  8. 2 1
      scripts/db.out.ogr/db.out.ogr.py
  9. 2 1
      scripts/db.test/db.test.py
  10. 2 1
      scripts/g.extension/g.extension.py
  11. 3 1
      scripts/g.manual/g.manual.py
  12. 3 1
      scripts/i.fusion.brovey/i.fusion.brovey.py
  13. 3 1
      scripts/i.image.mosaic/i.image.mosaic.py
  14. 3 1
      scripts/i.in.spotvgt/i.in.spotvgt.py
  15. 3 1
      scripts/i.landsat.rgb/i.landsat.rgb.py
  16. 3 1
      scripts/i.oif/i.oif.py
  17. 3 1
      scripts/i.spectral/i.spectral.py
  18. 2 1
      scripts/i.tasscap/i.tasscap.py
  19. 2 1
      scripts/m.proj/m.proj.py
  20. 2 1
      scripts/r.buffer/r.buffer.py
  21. 2 1
      scripts/r.colors.stddev/r.colors.stddev.py
  22. 3 1
      scripts/r.fillnulls/r.fillnulls.py
  23. 3 1
      scripts/r.in.aster/r.in.aster.py
  24. 2 1
      scripts/r.in.srtm/r.in.srtm.py
  25. 3 1
      scripts/r.in.wms/r.in.gdalwarp.py
  26. 3 1
      scripts/r.in.wms/r.in.wms.py
  27. 2 1
      scripts/r.mask/r.mask.py
  28. 2 1
      scripts/r.out.xyz/r.out.xyz.py
  29. 2 1
      scripts/r.plane/r.plane.py
  30. 3 1
      scripts/r.reclass.area/r.reclass.area.py
  31. 2 1
      scripts/r.regression.line/r.regression.line.py
  32. 2 1
      scripts/r.shaded.relief/r.shaded.relief.py
  33. 2 1
      scripts/r.tileset/r.tileset.py
  34. 3 1
      scripts/v.centroids/v.centroids.py
  35. 2 1
      scripts/v.colors/v.colors.py
  36. 2 1
      scripts/v.convert.all/v.convert.all.py
  37. 3 1
      scripts/v.db.addcol/v.db.addcol.py
  38. 3 1
      scripts/v.db.addtable/v.db.addtable.py
  39. 3 1
      scripts/v.db.dropcolumn/v.db.dropcolumn.py
  40. 3 1
      scripts/v.db.droptable/v.db.droptable.py
  41. 3 1
      scripts/v.db.join/v.db.join.py
  42. 3 1
      scripts/v.db.reconnect.all/v.db.reconnect.all.py
  43. 3 1
      scripts/v.db.renamecolumn/v.db.renamecolumn.py
  44. 2 1
      scripts/v.db.univar/v.db.univar.py
  45. 3 1
      scripts/v.db.update/v.db.update.py
  46. 3 1
      scripts/v.dissolve/v.dissolve.py
  47. 2 1
      scripts/v.in.e00/v.in.e00.py
  48. 3 1
      scripts/v.in.geonames/v.in.geonames.py
  49. 3 1
      scripts/v.in.gns/v.in.gns.py
  50. 2 1
      scripts/v.in.mapgen/v.in.mapgen.py
  51. 3 1
      scripts/v.in.sites.all/v.in.sites.all.py
  52. 3 1
      scripts/v.out.gps/v.out.gps.py
  53. 3 1
      scripts/v.rast.stats/v.rast.stats.py
  54. 3 1
      scripts/v.report/v.report.py
  55. 3 1
      scripts/v.what.vect/v.what.vect.py

+ 1 - 1
general/g.parser/main.c

@@ -102,7 +102,7 @@ static void parse_module(struct context *ctx, const char *cmd,
     }
 
     if (strcasecmp(cmd, "keywords") == 0) {
-	G_set_keywords(translate(strdup(arg)));
+	G_add_keyword(translate(strdup(arg)));
 	return;
     }
 

+ 2 - 1
scripts/d.correlate/d.correlate.py

@@ -18,7 +18,8 @@
 
 #%Module
 #%  description: Prints a graph of the correlation between data layers (in pairs).
-#%  keywords: display, diagram
+#%  keywords: display
+#%  keywords: diagram
 #%End
 #%option
 #% key: layers

+ 2 - 1
scripts/d.polar/d.polar.py

@@ -20,7 +20,8 @@
 
 #%Module
 #%  description: Draws polar diagram of angle map such as aspect or flow directions
-#%  keywords: display, diagram
+#%  keywords: display
+#%  keywords: diagram
 #%End
 #%option
 #% key: map

+ 2 - 1
scripts/d.rast.edit/d.rast.edit.py

@@ -20,7 +20,8 @@
 
 #%Module
 #% description: Interactively edit cell values in a raster map.
-#% keywords: display, raster
+#% keywords: display
+#% keywords: raster
 #%End
 #%Option
 #% key: input

+ 2 - 1
scripts/db.dropcolumn/db.dropcolumn.py

@@ -19,7 +19,8 @@
 
 #%Module
 #%  description: Drops a column from selected attribute table
-#%  keywords: database, attribute table
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 
 #%flag

+ 2 - 1
scripts/db.droptable/db.droptable.py

@@ -17,7 +17,8 @@
 
 #%Module
 #%  description: Drops an attribute table.
-#%  keywords: database, attribute table
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 
 #%flag

+ 2 - 1
scripts/db.in.ogr/db.in.ogr.py

@@ -16,7 +16,8 @@
 
 #%Module
 #%  description: Imports attribute tables in various formats.
-#%  keywords: database, attribute table
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 
 #%option

+ 2 - 1
scripts/db.out.ogr/db.out.ogr.py

@@ -16,7 +16,8 @@
 
 #%Module
 #%  description: Exports attribute tables into various formats.
-#%  keywords: database, attribute table
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 
 #%option

+ 2 - 1
scripts/db.test/db.test.py

@@ -15,7 +15,8 @@
 
 #% Module
 #%  description: Test database driver, database must exist and set by db.connect.
-#%  keywords: database, attribute table
+#%  keywords: database
+#%  keywords: attribute table
 #% End
 #% option
 #%  key: test

+ 2 - 1
scripts/g.extension/g.extension.py

@@ -20,7 +20,8 @@
 #%module
 #% label: Tool to maintain GRASS extensions in local GRASS installation.
 #% description: Downloads, installs extensions from GRASS Addons SVN repository into local GRASS installation or removes installed extensions.
-#% keywords: installation, extensions
+#% keywords: installation
+#% keywords: extensions
 #%end
 
 #%option

+ 3 - 1
scripts/g.manual/g.manual.py

@@ -16,7 +16,9 @@
 
 #%Module
 #%  description: Display the HTML man pages of GRASS
-#%  keywords: general, manual, help
+#%  keywords: general
+#%  keywords: manual
+#%  keywords: help
 #%End
 #%flag
 #%  key: i

+ 3 - 1
scripts/i.fusion.brovey/i.fusion.brovey.py

@@ -29,7 +29,9 @@
 
 #%Module
 #%  description: Brovey transform to merge multispectral and high-res panchromatic channels
-#%  keywords: imagery, fusion, Brovey
+#%  keywords: imagery
+#%  keywords: fusion
+#%  keywords: Brovey
 #%End
 #%Flag
 #%  key: l

+ 3 - 1
scripts/i.image.mosaic/i.image.mosaic.py

@@ -24,7 +24,9 @@
 
 #% Module
 #%  description: Mosaics several images and extends colormap
-#%  keywords: raster, imagery, mosaicking
+#%  keywords: raster
+#%  keywords: imagery
+#%  keywords: mosaicking
 #% End
 #% option
 #% key: images

+ 3 - 1
scripts/i.in.spotvgt/i.in.spotvgt.py

@@ -31,7 +31,9 @@
 
 #%Module
 #%  description: Import of SPOT VGT NDVI file into a raster map
-#%  keywords: raster, imagery, import
+#%  keywords: raster
+#%  keywords: imagery
+#%  keywords: import
 #%End
 #%flag
 #% key: a

+ 3 - 1
scripts/i.landsat.rgb/i.landsat.rgb.py

@@ -22,7 +22,9 @@
 
 #%Module
 #%  description: Performs auto-balancing of colors for LANDSAT images.
-#%  keywords: raster, imagery, colors
+#%  keywords: raster
+#%  keywords: imagery
+#%  keywords: colors
 #%End
 #%option
 #% key: red

+ 3 - 1
scripts/i.oif/i.oif.py

@@ -25,7 +25,9 @@
 
 #% Module
 #%  description: Calculates Optimum-Index-Factor table for LANDSAT TM bands 1-5, & 7
-#%  keywords: raster, imagery, statistics
+#%  keywords: raster
+#%  keywords: imagery
+#%  keywords: statistics
 #% End
 #% option
 #% key: image1

+ 3 - 1
scripts/i.spectral/i.spectral.py

@@ -23,7 +23,9 @@
 
 #%Module
 #%  description: Displays spectral response at user specified locations in group or images.
-#%  keywords: imagery, raster, multispectral
+#%  keywords: imagery
+#%  keywords: raster
+#%  keywords: multispectral
 #%End
 #%option
 #% key: group

+ 2 - 1
scripts/i.tasscap/i.tasscap.py

@@ -34,7 +34,8 @@
 #
 #%Module
 #%  description: Tasseled Cap (Kauth Thomas) transformation for LANDSAT-TM data
-#%  keywords: raster, imagery
+#%  keywords: raster
+#%  keywords: imagery
 #%End
 #%flag
 #%  key: 4

+ 2 - 1
scripts/m.proj/m.proj.py

@@ -26,7 +26,8 @@
 
 #%Module
 #%  description: Converts coordinates from one projection to another (cs2cs frontend).
-#%  keywords: miscellaneous, projection
+#%  keywords: miscellaneous
+#%  keywords: projection
 #%End
 #%option
 #% key: input

+ 2 - 1
scripts/r.buffer/r.buffer.py

@@ -16,7 +16,8 @@
 
 #%Module
 #% description: Creates a raster map layer showing buffer zones surrounding cells that contain non-NULL category values.
-#% keywords: raster, buffer
+#% keywords: raster
+#% keywords: buffer
 #%End
 #%Flag
 #% key: z

+ 2 - 1
scripts/r.colors.stddev/r.colors.stddev.py

@@ -16,7 +16,8 @@
 
 #%Module
 #% description: Set color rules based on stddev from a map's mean value.
-#% keywords: raster, color table
+#% keywords: raster
+#% keywords: color table
 #%End
 #% option
 #% key: input

+ 3 - 1
scripts/r.fillnulls/r.fillnulls.py

@@ -22,7 +22,9 @@
 
 #%Module
 #% description: Fills no-data areas in raster maps using v.surf.rst splines interpolation
-#% keywords: raster, elevation, interpolation
+#% keywords: raster
+#% keywords: elevation
+#% keywords: interpolation
 #%End
 #%option
 #% key: input

+ 3 - 1
scripts/r.in.aster/r.in.aster.py

@@ -22,7 +22,9 @@
 
 #%Module
 #%  description: Georeference, rectify, and import Terra-ASTER imagery and relative DEM's using gdalwarp.
-#%  keywords: raster, imagery, import
+#%  keywords: raster
+#%  keywords: imagery
+#%  keywords: import
 #%End
 #%option
 #%  key: input

+ 2 - 1
scripts/r.in.srtm/r.in.srtm.py

@@ -45,7 +45,8 @@
 
 #%Module
 #%  description: Import SRTM HGT files into GRASS
-#%  keywords: raster, import
+#%  keywords: raster
+#%  keywords: import
 #%End
 #%option
 #% key: input

+ 3 - 1
scripts/r.in.wms/r.in.gdalwarp.py

@@ -20,7 +20,9 @@
 
 #%module
 #% description: Warps and imports GDAL supported raster file complete with correct NULL values
-#% keywords: raster, rotate, reproject
+#% keywords: raster
+#% keywords: rotate
+#% keywords: reproject
 #%end
 #%flag
 #% key: p

+ 3 - 1
scripts/r.in.wms/r.in.wms.py

@@ -20,7 +20,9 @@
 
 #%module
 #%  description: Downloads and imports data from WMS servers.
-#%  keywords: raster, import, wms
+#%  keywords: raster
+#%  keywords: import
+#%  keywords: wms
 #%end
 #%flag
 #% key: l

+ 2 - 1
scripts/r.mask/r.mask.py

@@ -17,7 +17,8 @@
 
 #%Module
 #%  description: Create a MASK for limiting raster operation
-#%  keywords: raster, mask
+#%  keywords: raster
+#%  keywords: mask
 #%End
 #%option
 #% key: input

+ 2 - 1
scripts/r.out.xyz/r.out.xyz.py

@@ -18,7 +18,8 @@
 
 #%Module
 #% description: Export a raster map to a text file as x,y,z values based on cell centers.
-#% keywords: raster, export
+#% keywords: raster
+#% keywords: export
 #%End
 #%option
 #% key: input

+ 2 - 1
scripts/r.plane/r.plane.py

@@ -18,7 +18,8 @@
 
 #%Module
 #%  description: Creates raster plane map given dip (inclination), aspect (azimuth) and one point.
-#%  keywords: raster, elevation
+#%  keywords: raster
+#%  keywords: elevation
 #%End
 #%option
 #% key: name

+ 3 - 1
scripts/r.reclass.area/r.reclass.area.py

@@ -22,7 +22,9 @@
 
 #%Module
 #%  description: Reclasses a raster map greater or less than user specified area size (in hectares).
-#%  keywords: raster, statistics, aggregation
+#%  keywords: raster
+#%  keywords: statistics
+#%  keywords: aggregation
 #%End
 
 #%option

+ 2 - 1
scripts/r.regression.line/r.regression.line.py

@@ -18,7 +18,8 @@
 
 #%Module
 #%  description: Calculates linear regression from two raster maps: y = a + b*x
-#%  keywords: raster, statistics
+#%  keywords: raster
+#%  keywords: statistics
 #%End
 #%flag
 #%  key: g

+ 2 - 1
scripts/r.shaded.relief/r.shaded.relief.py

@@ -50,7 +50,8 @@
 
 #% Module
 #%  description: Creates shaded relief map from an elevation map (DEM).
-#%  keywords: raster, elevation
+#%  keywords: raster
+#%  keywords: elevation
 #% End
 #% option
 #%  key: input

+ 2 - 1
scripts/r.tileset/r.tileset.py

@@ -37,7 +37,8 @@
 
 #%Module
 #% description: Produces tilings of the source projection for use in the destination region and projection.
-#% keywords: raster, tiling
+#% keywords: raster
+#% keywords: tiling
 #%End
 #%flag
 #% key: g

+ 3 - 1
scripts/v.centroids/v.centroids.py

@@ -13,7 +13,9 @@
 
 #%Module
 #% description: Adds missing centroids to closed boundaries.
-#% keywords: vector, centroid, area
+#% keywords: vector
+#% keywords: centroid
+#% keywords: area
 #%End
 
 #%option

+ 2 - 1
scripts/v.colors/v.colors.py

@@ -17,7 +17,8 @@
 
 #%Module
 #% description: Set color rules for features in a vector using a numeric attribute column.
-#% keywords: vector, color table
+#% keywords: vector
+#% keywords: color table
 #%End
 #% option
 #% key: map

+ 2 - 1
scripts/v.convert.all/v.convert.all.py

@@ -16,7 +16,8 @@
 
 #%Module
 #%  description: Convert all old GRASS < Ver5.7 vector maps in current mapset to current format
-#%  keywords: vector, import
+#%  keywords: vector
+#%  keywords: import
 #%end
 
 import sys

+ 3 - 1
scripts/v.db.addcol/v.db.addcol.py

@@ -18,7 +18,9 @@
 
 #%Module
 #%  description: Adds one or more columns to the attribute table connected to a given vector map.
-#%  keywords: vector, database, attribute table
+#%  keywords: vector
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 
 #%option

+ 3 - 1
scripts/v.db.addtable/v.db.addtable.py

@@ -16,7 +16,9 @@
 
 #%Module
 #%  description: Creates and adds a new attribute table to a given layer of an existing vector map.
-#%  keywords: vector, database, attribute table
+#%  keywords: vector
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 #%option
 #% key: map

+ 3 - 1
scripts/v.db.dropcolumn/v.db.dropcolumn.py

@@ -20,7 +20,9 @@
 
 #%Module
 #%  description: Drops a column from the attribute table connected to a given vector map.
-#%  keywords: vector, database, attribute table
+#%  keywords: vector
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 
 #%option

+ 3 - 1
scripts/v.db.droptable/v.db.droptable.py

@@ -17,7 +17,9 @@
 
 #%Module
 #%  description: Removes existing attribute table of a vector map.
-#%  keywords: vector, database, attribute table
+#%  keywords: vector
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 #%flag
 #%  key: f

+ 3 - 1
scripts/v.db.join/v.db.join.py

@@ -16,7 +16,9 @@
 
 #%Module
 #% description: Allows to join a table to a vector map table.
-#% keywords: vector, database, attribute table
+#% keywords: vector
+#% keywords: database
+#% keywords: attribute table
 #%End
 
 #%option

+ 3 - 1
scripts/v.db.reconnect.all/v.db.reconnect.all.py

@@ -15,7 +15,9 @@
 
 #%Module
 #% description: Reconnects vectors to a new database.
-#% keywords: vector, database, attribute table
+#% keywords: vector
+#% keywords: database
+#% keywords: attribute table
 #%End
 #%option
 #% key: old_database

+ 3 - 1
scripts/v.db.renamecolumn/v.db.renamecolumn.py

@@ -22,7 +22,9 @@
 
 #%Module
 #%  description: Renames a column in the attribute table connected to a given vector map.
-#%  keywords: vector, database, attribute table
+#%  keywords: vector
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 #%option
 #% key: map

+ 2 - 1
scripts/v.db.univar/v.db.univar.py

@@ -17,7 +17,8 @@
 
 #%Module
 #% description: Calculates univariate statistics on selected table column for a GRASS vector map.
-#% keywords: vector, statistics
+#% keywords: vector
+#% keywords: statistics
 #%End
 #%flag
 #%  key: e

+ 3 - 1
scripts/v.db.update/v.db.update.py

@@ -17,7 +17,9 @@
 
 #%Module
 #%  description: Allows to update a column in the attribute table connected to a vector map.
-#%  keywords: vector, database, attribute table
+#%  keywords: vector
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 #%option
 #% key: map

+ 3 - 1
scripts/v.dissolve/v.dissolve.py

@@ -17,7 +17,9 @@
 
 #%Module
 #% description: Dissolves boundaries between adjacent areas sharing a common category number or attribute.
-#% keywords: vector, area, dissolve
+#% keywords: vector
+#% keywords: area
+#% keywords: dissolve
 #%End
 #%option
 #% key: input

+ 2 - 1
scripts/v.in.e00/v.in.e00.py

@@ -23,7 +23,8 @@
 
 #%Module
 #%  description: Import E00 file into a vector map.
-#%  keywords: vector, import
+#%  keywords: vector
+#%  keywords: import
 #%End
 #%flag
 #%  key: v

+ 3 - 1
scripts/v.in.geonames/v.in.geonames.py

@@ -24,7 +24,9 @@
 
 #%Module
 #%  description: Imports geonames.org country files into a GRASS vector points map.
-#%  keywords: vector, import, gazetteer
+#%  keywords: vector
+#%  keywords: import
+#%  keywords: gazetteer
 #%End
 #%option
 #% key: input

+ 3 - 1
scripts/v.in.gns/v.in.gns.py

@@ -26,7 +26,9 @@
 
 #%Module
 #%  description: Imports US-NGA GEOnet Names Server (GNS) country files into a GRASS vector points map.
-#%  keywords: vector, import, gazetteer
+#%  keywords: vector
+#%  keywords: import
+#%  keywords: gazetteer
 #%End
 #%option
 #% key: file

+ 2 - 1
scripts/v.in.mapgen/v.in.mapgen.py

@@ -27,7 +27,8 @@
 
 #%Module
 #%  description: Import Mapgen or Matlab vector maps into GRASS.
-#%  keywords: vector, import
+#%  keywords: vector
+#%  keywords: import
 #%End
 #%flag
 #%  key: f

+ 3 - 1
scripts/v.in.sites.all/v.in.sites.all.py

@@ -15,7 +15,9 @@
 
 #%Module
 #% description: Converts all old GRASS < Ver5.7 sites maps in current mapset to vector maps.
-#% keywords: sites, vector, import
+#% keywords: sites
+#% keywords: vector
+#% keywords: import
 #%End
 
 import sys

+ 3 - 1
scripts/v.out.gps/v.out.gps.py

@@ -34,7 +34,9 @@
 
 #%Module
 #%  description: Exports a vector map to a GPS receiver or file format supported by GpsBabel.
-#%  keywords: vector, export, GPS
+#%  keywords: vector
+#%  keywords: export
+#%  keywords: GPS
 #%End
 #%flag
 #%  key: w

+ 3 - 1
scripts/v.rast.stats/v.rast.stats.py

@@ -17,7 +17,9 @@
 
 #%Module
 #%  description: Calculates univariate statistics from a GRASS raster map based on vector polygons and uploads statistics to new attribute columns.
-#%  keywords: vector, raster, statistics
+#%  keywords: vector
+#%  keywords: raster
+#%  keywords: statistics
 #%End
 #%flag
 #%  key: c

+ 3 - 1
scripts/v.report/v.report.py

@@ -15,7 +15,9 @@
 
 #%Module
 #%  description: Reports geometry statistics for vectors.
-#%  keywords: vector, report, statistics
+#%  keywords: vector
+#%  keywords: report
+#%  keywords: statistics
 #%End
 #%Flag
 #% key: r

+ 3 - 1
scripts/v.what.vect/v.what.vect.py

@@ -15,7 +15,9 @@
 
 #%Module
 #%  description: Uploads vector values at positions of vector points to the table.
-#%  keywords: vector, database, attribute table
+#%  keywords: vector
+#%  keywords: database
+#%  keywords: attribute table
 #%End
 
 #%option