[GRASS-SVN] r46601 - grass/branches/develbranch_6/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 8 04:41:34 EDT 2011
Author: martinl
Date: 2011-06-08 01:41:34 -0700 (Wed, 08 Jun 2011)
New Revision: 46601
Modified:
grass/branches/develbranch_6/lib/init/Makefile
grass/branches/develbranch_6/lib/init/lock.c
Log:
lock.c: add missing header, define PACKAGE name
Modified: grass/branches/develbranch_6/lib/init/Makefile
===================================================================
--- grass/branches/develbranch_6/lib/init/Makefile 2011-06-08 08:34:33 UTC (rev 46600)
+++ grass/branches/develbranch_6/lib/init/Makefile 2011-06-08 08:41:34 UTC (rev 46601)
@@ -20,6 +20,9 @@
include $(MODULE_TOPDIR)/include/Make/Grass.make
include $(MODULE_TOPDIR)/include/Make/Rules.make
+#for i18N support
+PACKAGE ="grasslibs"
+
START_UP=grass$(GRASS_VERSION_MAJOR)$(GRASS_VERSION_MINOR)
EXTRA_CFLAGS = -DD_LOCATION_NAME=\"$(DEFAULT_LOCATION)\" -DD_GISDBASE=\"$(DEFAULT_DATABASE)\" -DGRASS_VERSION_NUMBER=\"'$(GRASS_VERSION_NUMBER)'\" -DGRASS_VERSION_UPDATE_PKG=\"'$(GRASS_VERSION_UPDATE_PKG)'\"
Modified: grass/branches/develbranch_6/lib/init/lock.c
===================================================================
--- grass/branches/develbranch_6/lib/init/lock.c 2011-06-08 08:34:33 UTC (rev 46600)
+++ grass/branches/develbranch_6/lib/init/lock.c 2011-06-08 08:41:34 UTC (rev 46601)
@@ -7,6 +7,7 @@
#include <signal.h>
#include "local_proto.h"
#include <grass/gis.h>
+#include <grass/glocale.h>
/******************************************************************
*lock file pid
@@ -34,7 +35,7 @@
int locked;
if (argc != 3 || sscanf(argv[2], "%d", &lockpid) != 1)
- G_fatal_error("usage: %s file pid", argv[0]);
+ G_fatal_error(_("Usage: %s file pid"), argv[0]);
#define file argv[1]
#ifdef __MINGW32__
@@ -56,8 +57,8 @@
G_fatal_error("%s: ", argv[0]);
}
if (write(lock, &lockpid, sizeof lockpid) != sizeof lockpid)
- G_fatal_error("%s: can't write lockfile %s (disk full? Permissions?)",
- argv[0], file);
+ G_fatal_error(_("Unable to write lockfile %s (disk full? Permissions?)"),
+ file);
close(lock);
exit(0);
#endif
More information about the grass-commit
mailing list