Parcourir la source

v.hull: message cosmetics, add keyword for 3D

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54375 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa il y a 12 ans
Parent
commit
e0607ef6b1
2 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 3 4
      vector/v.hull/chull.c
  2. 2 1
      vector/v.hull/main.c

+ 3 - 4
vector/v.hull/chull.c

@@ -25,6 +25,7 @@
 
 #include <grass/gis.h>
 #include <grass/vector.h>
+#include <grass/glocale.h>
 
 #include "globals.h"
 
@@ -208,8 +209,7 @@ void ReadVertices(double *px, double *py, double *pz, int num_points)
     int vnum = 0;
     int i;
 
-    G_message("Reading 3D vertices:");
-
+    G_important_message(_("Reading 3D vertices..."));
     for (i = 0; i < num_points; i++) {
 	v = MakeNullVertex();
 	v->v[X] = px[i];
@@ -393,8 +393,7 @@ void ConstructHull(void)
     int numVertices;
 
 
-    G_message("Constructing 3D hull:");
-
+    G_important_message(_("Constructing 3D hull..."));
 
     v = vertices;
     i = 0;

+ 2 - 1
vector/v.hull/main.c

@@ -51,8 +51,9 @@ int main(int argc, char **argv)
     module = G_define_module();
     G_add_keyword(_("vector"));
     G_add_keyword(_("geometry"));
+    G_add_keyword(_("3D"));
     module->description =
-	_("Produces a convex hull for a given vector map.");
+	_("Produces a 2D/3D convex hull for a given vector map.");
     
     input = G_define_standard_option(G_OPT_V_INPUT);