[GRASS-SVN] r41010 -
grass/branches/develbranch_6/imagery/i.ortho.photo/libes
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 15 02:06:29 EST 2010
Author: hamish
Date: 2010-02-15 02:06:28 -0500 (Mon, 15 Feb 2010)
New Revision: 41010
Modified:
grass/branches/develbranch_6/imagery/i.ortho.photo/libes/camera.c
Log:
i18n, G_getl2 (merge from trunk)
Modified: grass/branches/develbranch_6/imagery/i.ortho.photo/libes/camera.c
===================================================================
--- grass/branches/develbranch_6/imagery/i.ortho.photo/libes/camera.c 2010-02-15 07:04:27 UTC (rev 41009)
+++ grass/branches/develbranch_6/imagery/i.ortho.photo/libes/camera.c 2010-02-15 07:06:28 UTC (rev 41010)
@@ -5,6 +5,7 @@
**********************************************************/
#include "orthophoto.h"
#include <grass/ortholib.h>
+#include <grass/glocale.h>
/* Put the "camera" name into the group file "CAMERA" */
int I_put_group_camera(char *group, char *camera)
@@ -33,12 +34,12 @@
G_suppress_warnings(0);
if (!fd) {
sprintf(buf,
- "unable to open camera file for group [%s] in mapset [%s]",
+ _("Unable to open camera file for group [%s] in mapset [%s]"),
group, G_mapset());
G_warning(buf);
return 0;
}
- fgets(buf, sizeof buf, fd);
+ G_getl2(buf, sizeof(buf), fd);
sscanf(buf, "%s", camera);
- return (1);
+ return 1;
}
More information about the grass-commit
mailing list