summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msgfmt.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/msgfmt.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/msgfmt.c')
-rw-r--r--gettext-tools/src/msgfmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gettext-tools/src/msgfmt.c b/gettext-tools/src/msgfmt.c
index c43a68a..29c0a98 100644
--- a/gettext-tools/src/msgfmt.c
+++ b/gettext-tools/src/msgfmt.c
@@ -33,6 +33,7 @@
#include "dir-list.h"
#include "error.h"
#include "progname.h"
+#include "relocatable.h"
#include "basename.h"
#include "xerror.h"
#include "format.h"
@@ -214,7 +215,7 @@ main (int argc, char *argv[])
#endif
/* Set the text message domain. */
- bindtextdomain (PACKAGE, LOCALEDIR);
+ bindtextdomain (PACKAGE, relocate (LOCALEDIR));
textdomain (PACKAGE);
while ((opt = getopt_long (argc, argv, "a:cCd:D:fhjl:o:r:vV", long_options,