Ensure that setlocale (LC_MESSAGES is called when appropriate.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 14 Apr 2009 02:03:52 +0000 (10:03 +0800)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 14 Apr 2009 02:03:52 +0000 (10:03 +0800)
The wrong preprocessor macro was being tested before calling
setlocale (LC_MESSAGES, "") which resulted in translations not
being loaded.

src/libpspp/i18n.c

index 2be02f26cd58e34b883ff170d50220a88c989743..fb3973f437bb737d0ba53011596da1f844588509 100644 (file)
@@ -190,7 +190,7 @@ i18n_init (void)
 {
 #if ENABLE_NLS
   setlocale (LC_CTYPE, "");
-#if HAVE_LC_MESSAGES
+#ifdef LC_MESSAGES
   setlocale (LC_MESSAGES, "");
 #endif
 #if HAVE_LC_PAPER