[GRASS-SVN] r34815 - grass/trunk/lib/imagery

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 9 08:29:17 EST 2008


Author: martinl
Date: 2008-12-09 08:29:17 -0500 (Tue, 09 Dec 2008)
New Revision: 34815

Modified:
   grass/trunk/lib/imagery/list_gp.c
   grass/trunk/lib/imagery/list_subgp.c
Log:
imagerylib: i18n, message cosmetics
	    (merge from devbr6, r34814)


Modified: grass/trunk/lib/imagery/list_gp.c
===================================================================
--- grass/trunk/lib/imagery/list_gp.c	2008-12-09 13:27:14 UTC (rev 34814)
+++ grass/trunk/lib/imagery/list_gp.c	2008-12-09 13:29:17 UTC (rev 34815)
@@ -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/trunk/lib/imagery/list_subgp.c
===================================================================
--- grass/trunk/lib/imagery/list_subgp.c	2008-12-09 13:27:14 UTC (rev 34814)
+++ grass/trunk/lib/imagery/list_subgp.c	2008-12-09 13:29:17 UTC (rev 34815)
@@ -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