1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Oops, generate CATALOGS again.

This commit is contained in:
Jonas Fonseca 2005-10-01 17:38:07 +02:00 committed by Jonas Fonseca
parent 799529476c
commit 5b67102f62

View File

@ -183,36 +183,34 @@ strdup strtoul tsearch __argz_count __argz_stringify __argz_next])
AM_LC_MESSAGES AM_LC_MESSAGES
AM_WITH_NLS([$1],[$2],[$3]) AM_WITH_NLS([$1],[$2],[$3])
if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then
if test "x$ALL_LINGUAS" = "x"; then LINGUAS=
LINGUAS= else
else AC_MSG_CHECKING(for catalogs to be installed)
AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS=
NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do
for presentlang in $ALL_LINGUAS; do useit=no
useit=no for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do # Use the presentlang catalog if desiredlang is
# Use the presentlang catalog if desiredlang is # a. equal to presentlang, or
# a. equal to presentlang, or # b. a variant of presentlang (because in this case,
# b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages
# presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog).
# which are not translated in the desiredlang catalog). case "$desiredlang" in
case "$desiredlang" in "$presentlang"*) useit=yes;;
"$presentlang"*) useit=yes;; esac
esac
done
if test $useit = yes; then
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
fi
done done
LINGUAS=$NEW_LINGUAS if test $useit = yes; then
AC_MSG_RESULT($LINGUAS) NEW_LINGUAS="$NEW_LINGUAS $presentlang"
fi fi
done
LINGUAS=$NEW_LINGUAS
AC_MSG_RESULT($LINGUAS)
fi
dnl Construct list of names of catalog files to be constructed. dnl Construct list of names of catalog files to be constructed.
if test -n "$LINGUAS"; then if test -n "$LINGUAS"; then
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang.gmo"; done
fi
fi fi
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly