Sfoglia il codice sorgente

Rejigger gettext stuff for 0.11.5
Author: jgg
Date: 2003-01-11 07:17:58 GMT
Rejigger gettext stuff for 0.11.5

Arch Librarian 22 anni fa
parent
commit
ec2f559a05
4 ha cambiato i file con 12 aggiunte e 9 eliminazioni
  1. 2 3
      buildlib/apti18n.h.in
  2. 8 6
      configure.in
  3. 1 0
      po/LINGUAS
  4. 1 0
      po/makefile

+ 2 - 3
buildlib/apti18n.h.in

@@ -1,13 +1,12 @@
 // -*- mode: cpp; mode: fold -*-
-// $Id: apti18n.h.in,v 1.5 2002/11/11 07:00:16 doogie Exp $
+// $Id: apti18n.h.in,v 1.6 2003/01/11 07:18:18 jgg Exp $
 /* Internationalization macros for apt. This header should be included last
    in each C file. */
 
 // Set by autoconf
 #undef USE_NLS
-#undef USE_INCLUDED_LIBINTL
 
-#if USE_NLS==yes && USE_INCLUDED_LIBINTL==no
+#ifdef USE_NLS
 // apt will use the gettext implementation of the C library
 # include <libintl.h>
 # ifdef APT_DOMAIN

+ 8 - 6
configure.in

@@ -169,13 +169,15 @@ rc_GLIBC_VER
 rc_LIBSTDCPP_VER
 ah_GCC3DEP
 
-dnl FIXME: There is no reason for this bit to do all the configure tests it
-dnl ends up doing. Maybe replace it with a simple AC_CHECK_HEADER and 
-dnl AC_PATH_PROG.
+dnl It used to be that the user could select translations and that could get
+dnl passed to the makefiles, but now that can only work if you use special
+dnl gettext approved makefiles, so this feature is unsupported by this.
 ALL_LINGUAS="da de en_GB es fr hu it nl no_NO pl pt_BR ru sv zh_TW"
-AM_GNU_GETTEXT
-AC_DEFINE_UNQUOTED(USE_NLS, $USE_NLS)
-AC_DEFINE_UNQUOTED(USE_INCLUDED_LIBINTL, $USE_INCLUDED_LIBINTL)
+AM_GNU_GETTEXT(external)
+if test x"$USE_NLS" = "xyes"; then
+   AC_DEFINE(USE_NLS)
+fi
+AC_SUBST(USE_NLS)
 AC_PATH_PROG(BASH, bash)
 
 AC_OUTPUT(environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in,make -s dirs)

+ 1 - 0
po/LINGUAS

@@ -0,0 +1 @@
+da de en_GB es fr hu it nl no_NO pl pt_BR ru sv zh_TW

+ 1 - 0
po/makefile

@@ -14,6 +14,7 @@ SUBDIR=po
 # Bring in the default rules
 include ../buildlib/defaults.mak
 
+CATALOGS := $(addsuffix .gmo,$(shell cat LINGUAS))
 DOMAINS = $(notdir $(wildcard $(PO_DOMAINS)/*))
 POTFILES := $(addsuffix .pot,$(addprefix $(PO)/,$(DOMAINS)))