[GRASS-SVN] r46603 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 8 04:45:10 EDT 2011


Author: martinl
Date: 2011-06-08 01:45:10 -0700 (Wed, 08 Jun 2011)
New Revision: 46603

Modified:
   grass/trunk/lib/init/Makefile
   grass/trunk/lib/init/lock.c
Log:
lock.c: add missing header, define PACKAGE name
       (merge r46601 from trunk)


Modified: grass/trunk/lib/init/Makefile
===================================================================
--- grass/trunk/lib/init/Makefile	2011-06-08 08:44:19 UTC (rev 46602)
+++ grass/trunk/lib/init/Makefile	2011-06-08 08:45:10 UTC (rev 46603)
@@ -3,6 +3,9 @@
 include $(MODULE_TOPDIR)/include/Make/Other.make
 include $(MODULE_TOPDIR)/include/Make/Compile.make
 
+#for i18N support
+PACKAGE ="grasslibs"
+
 START_UP=grass$(GRASS_VERSION_MAJOR)$(GRASS_VERSION_MINOR)
 
 EXTRA_CFLAGS = \

Modified: grass/trunk/lib/init/lock.c
===================================================================
--- grass/trunk/lib/init/lock.c	2011-06-08 08:44:19 UTC (rev 46602)
+++ grass/trunk/lib/init/lock.c	2011-06-08 08:45:10 UTC (rev 46603)
@@ -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