[GRASS-SVN] r34814 - grass/branches/develbranch_6/lib/imagery

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 9 08:27:14 EST 2008


Author: martinl
Date: 2008-12-09 08:27:14 -0500 (Tue, 09 Dec 2008)
New Revision: 34814

Modified:
   grass/branches/develbranch_6/lib/imagery/list_gp.c
   grass/branches/develbranch_6/lib/imagery/list_subgp.c
Log:
imagerylib: i18n, message cosmetics

Modified: grass/branches/develbranch_6/lib/imagery/list_gp.c
===================================================================
--- grass/branches/develbranch_6/lib/imagery/list_gp.c	2008-12-09 12:45:06 UTC (rev 34813)
+++ grass/branches/develbranch_6/lib/imagery/list_gp.c	2008-12-09 13:27:14 UTC (rev 34814)
@@ -1,5 +1,19 @@
+/*!
+  \file list_gp.c
+  
+  \brief Imagery Library - List group
+  
+  (C) 2001-2008 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 for details.
+  
+  \author USA CERL
+*/
+
 #include <string.h>
 #include <grass/imagery.h>
+#include <grass/glocale.h>
 
 /*!
  * \brief Prints maps in a group (fancy version)
@@ -17,21 +31,21 @@
     int max;
 
     if (ref->nfiles <= 0) {
-	fprintf(fd, "group [%s] is empty\n", group);
+	fprintf(fd, _("group <%s> is empty\n"), group);
 	return 0;
     }
     max = 0;
     for (i = 0; i < ref->nfiles; i++) {
-	sprintf(buf, "%s in %s", ref->file[i].name, ref->file[i].mapset);
+	sprintf(buf, "<%s@%s>", ref->file[i].name, ref->file[i].mapset);
 	len = strlen(buf) + 4;
 	if (len > max)
 	    max = len;
     }
-    fprintf(fd, "group [%s] references the following cellfiles\n", group);
+    fprintf(fd, _("group <%s> references the following raster maps\n"), group);
     fprintf(fd, "-------------\n");
     tot_len = 0;
     for (i = 0; i < ref->nfiles; i++) {
-	sprintf(buf, "%s in %s", ref->file[i].name, ref->file[i].mapset);
+	sprintf(buf, "<%s@%s>", ref->file[i].name, ref->file[i].mapset);
 	tot_len += max;
 	if (tot_len > 78) {
 	    fprintf(fd, "\n");

Modified: grass/branches/develbranch_6/lib/imagery/list_subgp.c
===================================================================
--- grass/branches/develbranch_6/lib/imagery/list_subgp.c	2008-12-09 12:45:06 UTC (rev 34813)
+++ grass/branches/develbranch_6/lib/imagery/list_subgp.c	2008-12-09 13:27:14 UTC (rev 34814)
@@ -1,5 +1,19 @@
+/*!
+   \file list_subgp.c
+   
+   \brief Imagery Library - List subgroup
+ 
+   (C) 2001-2008 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 for details.
+   
+   \author USA CERL
+*/
+
 #include <string.h>
 #include <grass/imagery.h>
+#include <grass/glocale.h>
 
 /*!
  * \brief Prints maps in a subgroup (fancy version)
@@ -19,24 +33,24 @@
     int max;
 
     if (ref->nfiles <= 0) {
-	fprintf(fd, "subgroup [%s] of group [%s] is empty\n",
+	fprintf(fd, _("subgroup <%s> of group <%s> is empty\n"),
 		subgroup, group);
 	return 0;
     }
     max = 0;
     for (i = 0; i < ref->nfiles; i++) {
-	sprintf(buf, "%s in %s", ref->file[i].name, ref->file[i].mapset);
+	sprintf(buf, "<%s@%s>", ref->file[i].name, ref->file[i].mapset);
 	len = strlen(buf) + 4;
 	if (len > max)
 	    max = len;
     }
     fprintf(fd,
-	    "subgroup [%s] of group [%s] references the following cellfiles\n",
+	    _("subgroup <%s> of group <%s> references the following raster maps\n"),
 	    subgroup, group);
     fprintf(fd, "-------------\n");
     tot_len = 0;
     for (i = 0; i < ref->nfiles; i++) {
-	sprintf(buf, "%s in %s", ref->file[i].name, ref->file[i].mapset);
+	sprintf(buf, "<%s@%s>", ref->file[i].name, ref->file[i].mapset);
 	tot_len += max;
 	if (tot_len > 78) {
 	    fprintf(fd, "\n");



More information about the grass-commit mailing list