]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use localename.c from gnulib.
authorBruno Haible <bruno@clisp.org>
Fri, 8 Jun 2007 10:32:31 +0000 (10:32 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:54 +0000 (12:14 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/Makefile.am
gettext-tools/src/msginit.c

index acebf803188e06bbe8a4b5a42fac5306a9f79c10..978cd99184ee849a6660362955ab7b861db7c603 100644 (file)
@@ -1,3 +1,10 @@
+2007-06-08  Bruno Haible  <bruno@clisp.org>
+
+       * msginit.c: Include localename.h.
+       (_nl_locale_name): Remove declaration.
+       (main): Use gl_locale_name instead of _nl_locale_name.
+       * Makefile.am (msginit_LDADD): Remove localename object file.
+
 2007-05-28  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (WOE32_LDADD): New variable.
        * user-email.in: Use 'gettext' instead of @PACKAGE@.
 
 
-See ChangeLog.0 for earlier changes.
\ No newline at end of file
+See ChangeLog.0 for earlier changes.
index 4dc8bf97adc3b3b1dfcf9ca9acceb8142af854b8..827cbfca9403be1baa54c54c73120e8873521471 100644 (file)
@@ -253,8 +253,7 @@ msgen_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
 msgexec_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
 msgfilter_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
 msggrep_LDADD = $(LIBGREP) libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
-msginit_LDADD = ../intl/localename.@INTL_LIBTOOL_SUFFIX_PREFIX@o \
-                libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
+msginit_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
 msguniq_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
 recode_sr_latin_LDADD = ../gnulib-lib/libgettextlib.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD)
 
index d559666b97338f991e21ee7206796ce7b915b1eb..8cfbff598839a3de8b84443e4ad7360eda33c7ae 100644 (file)
@@ -68,6 +68,7 @@
 #include "write-stringtable.h"
 #include "po-charset.h"
 #include "localcharset.h"
+#include "localename.h"
 #include "po-time.h"
 #include "plural-table.h"
 #include "lang-table.h"
@@ -96,7 +97,6 @@
 
 #define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
 
-extern const char * _nl_locale_name (int category, const char *categoryname);
 extern const char * _nl_expand_alias (const char *name);
 
 /* Locale name.  */
@@ -279,7 +279,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
   /* Determine target locale.  */
   if (locale == NULL)
     {
-      locale = _nl_locale_name (LC_MESSAGES, "LC_MESSAGES");
+      locale = gl_locale_name (LC_MESSAGES, "LC_MESSAGES");
       if (strcmp (locale, "C") == 0)
        {
          multiline_error (xstrdup (""),