瀏覽代碼

Rename _n macro to n_ to avoid clashes with other libs (as sugested in dev ML) (some missed files in https://trac.osgeo.org/grass/changeset/65297)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65298 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 10 年之前
父節點
當前提交
08a92ca285
共有 5 個文件被更改,包括 11 次插入11 次删除
  1. 1 1
      display/d.linegraph/main.c
  2. 2 2
      display/d.rast.num/main.c
  3. 1 1
      display/d.vect/area.c
  4. 6 6
      display/d.vect/lines.c
  5. 1 1
      display/d.vect/main.c

+ 1 - 1
display/d.linegraph/main.c

@@ -314,7 +314,7 @@ int main(int argc, char **argv)
         }
         
 	    if (in[i].num_pnts > in[0].num_pnts)
-		G_message(_n("The last point will be ignored", 
+		G_message(n_("The last point will be ignored", 
                      "The last %d points will be ignored",
                      (in[i].num_pnts - in[0].num_pnts)),
 			  (in[i].num_pnts - in[0].num_pnts));

+ 2 - 2
display/d.rast.num/main.c

@@ -196,8 +196,8 @@ int main(int argc, char **argv)
     /* number of rows and cols in window */
 
     if ((nrows > 75) || (ncols > 75)) {
-        G_asprintf(&tmpstr1, _n("%d row", "%d rows", nrows), nrows);
-        G_asprintf(&tmpstr2, _n("%d col", "%d cols", ncols), ncols);
+        G_asprintf(&tmpstr1, n_("%d row", "%d rows", nrows), nrows);
+        G_asprintf(&tmpstr2, n_("%d col", "%d cols", ncols), ncols);
         /* GTC %s will be replaced by strings "X rows" and "Y cols" */
         G_warning(_("Current region size: %s X %s\n"
 		    "Your current region setting may be too large. "

+ 1 - 1
display/d.vect/area.c

@@ -233,7 +233,7 @@ int display_area(struct Map_info *Map, struct cat_list *Clist, const struct Cell
     }
 
     if ((colors || cvarr_rgb) && get_num_color_rules_skipped() > 0)
-        G_warning(_n("%d invalid color rule for areas skipped", 
+        G_warning(n_("%d invalid color rule for areas skipped", 
                 "%d invalid color rules for areas skipped", 
                 get_num_color_rules_skipped()), 
                 get_num_color_rules_skipped());

+ 6 - 6
display/d.vect/lines.c

@@ -166,21 +166,21 @@ int display_lines(struct Map_info *Map, int type, struct cat_list *Clist,
     }
     
     if ((colors || cvarr_rgb) && get_num_color_rules_skipped() > 0)
-        G_warning(_n("%d invalid color rule for lines skipped", 
+        G_warning(n_("%d invalid color rule for lines skipped", 
                 "%d invalid color rules for lines skipped", 
                 get_num_color_rules_skipped()), 
                 get_num_color_rules_skipped());
 
     if (n_points > 0) 
-	G_verbose_message(_n("%d point plotted", "%d points plotted", n_points), n_points);
+	G_verbose_message(n_("%d point plotted", "%d points plotted", n_points), n_points);
     if (n_lines > 0) 
-	G_verbose_message(_n("%d line plotted", "%d lines plotted", n_lines), n_lines);
+	G_verbose_message(n_("%d line plotted", "%d lines plotted", n_lines), n_lines);
     if (n_centroids > 0) 
-	G_verbose_message(_n("%d centroid plotted", "%d centroids plotted", n_centroids), n_centroids);
+	G_verbose_message(n_("%d centroid plotted", "%d centroids plotted", n_centroids), n_centroids);
     if (n_boundaries > 0) 
-	G_verbose_message(_n("%d boundary plotted", "%d boundaries plotted", n_boundaries), n_boundaries);
+	G_verbose_message(n_("%d boundary plotted", "%d boundaries plotted", n_boundaries), n_boundaries);
     if (n_faces > 0) 
-	G_verbose_message(_n("%d face plotted", "%d faces plotted", n_faces), n_faces);
+	G_verbose_message(n_("%d face plotted", "%d faces plotted", n_faces), n_faces);
     
     Vect_destroy_line_struct(Points);
     Vect_destroy_cats_struct(Cats);

+ 1 - 1
display/d.vect/main.c

@@ -364,7 +364,7 @@ int main(int argc, char **argv)
 	chcat = 1;
 	ret = Vect_str_to_cat_list(cat_opt->answer, Clist);
 	if (ret > 0)
-	    G_warning(_n("%d error in cat option", "%d errors in cat option", ret), ret);
+	    G_warning(n_("%d error in cat option", "%d errors in cat option", ret), ret);
     }
     
     type = Vect_option_to_types(type_opt);