summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msggrep.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-03-17 09:38:55 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:16 +0200
commite71d76e1cdca1bcdbb9c0dbbeb49e8921a6289ba (patch)
treed990a6fe9a5a1eb1a290ca693376e2cad861760e /gettext-tools/src/msggrep.c
parent5967fb4853108dfc88b79a05a74df4571d262b39 (diff)
downloadexternal_gettext-e71d76e1cdca1bcdbb9c0dbbeb49e8921a6289ba.zip
external_gettext-e71d76e1cdca1bcdbb9c0dbbeb49e8921a6289ba.tar.gz
external_gettext-e71d76e1cdca1bcdbb9c0dbbeb49e8921a6289ba.tar.bz2
Support for relocatable installation.
Diffstat (limited to 'gettext-tools/src/msggrep.c')
-rw-r--r--gettext-tools/src/msggrep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gettext-tools/src/msggrep.c b/gettext-tools/src/msggrep.c
index 5306ab9..fe35e27 100644
--- a/gettext-tools/src/msggrep.c
+++ b/gettext-tools/src/msggrep.c
@@ -39,6 +39,7 @@
#include "dir-list.h"
#include "error.h"
#include "progname.h"
+#include "relocatable.h"
#include "basename.h"
#include "message.h"
#include "read-po.h"
@@ -143,7 +144,7 @@ main (int argc, char **argv)
#endif
/* Set the text message domain. */
- bindtextdomain (PACKAGE, LOCALEDIR);
+ bindtextdomain (PACKAGE, relocate (LOCALEDIR));
textdomain (PACKAGE);
/* Set default values for variables. */