瀏覽代碼

r.category: less confusing user msgs about values parm

Markus Neteler 5 年之前
父節點
當前提交
f67640f9e2
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      raster/r.category/main.c

+ 4 - 4
raster/r.category/main.c

@@ -1,7 +1,7 @@
 
 /****************************************************************************
  *
- * MODULE:       r.cats
+ * MODULE:       r.category (formerly r.cats)
  *
  * AUTHOR(S):    Michael Shapiro - CERL
  *		 Hamish Bowman, Dunedin, New Zealand  (label creation opts)
@@ -9,7 +9,7 @@
  * PURPOSE:      Prints category values and labels associated with
  *		 user-specified raster map layers.
  *
- * COPYRIGHT:    (C) 2006 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2006-2019 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
@@ -280,7 +280,7 @@ int main(int argc, char *argv[])
     }
     else {
 	if (map_type != CELL_TYPE)
-	    G_warning(_("The map is floating point! Ignoring cats list, using vals list"));
+	    G_warning(_("The map is floating point! Ignoring cats list, using values list"));
 	else {			/* integer map */
 
 	    for (i = 0; parm.cats->answers[i]; i++)
@@ -297,7 +297,7 @@ int main(int argc, char *argv[])
 	}
     }
     if (parm.vals->answer == NULL)
-	G_fatal_error(_("vals argument is required for floating point map!"));
+	G_fatal_error(_("Parameter 'values' is required for floating point map!"));
     for (i = 0; parm.vals->answers[i]; i++)
 	if (!scan_vals(parm.vals->answers[i], &dx)) {
 	    G_usage();