From: John Darrington Date: Tue, 12 May 2009 23:22:20 +0000 (+0800) Subject: Relocate the locale directory. X-Git-Tag: sav-api~630 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e674bbb5a058689708edebe6a06045015d223f;hp=14aac9fe7a7efbb6c9bded2ed5969a643cb76645;p=pspp Relocate the locale directory. Thanks to Michel Boaventura for reporting this and for providing the patch. Closes bug #26543 --- diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 64aa005612..7fd7580e89 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "assertion.h" #include "hmapx.h" #include "hash-functions.h" @@ -196,7 +197,7 @@ i18n_init (void) #if HAVE_LC_PAPER setlocale (LC_PAPER, ""); #endif - bindtextdomain (PACKAGE, locale_dir); + bindtextdomain (PACKAGE, relocate(locale_dir)); textdomain (PACKAGE); #endif /* ENABLE_NLS */