// -*- 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
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)
--- /dev/null
+da de en_GB es fr hu it nl no_NO pl pt_BR ru sv zh_TW
# 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)))