geany/m4/geany-i18n.m4
Colomban Wendling 768659b89f i18n: don't restrict LINGUAS at configure time
Don't use the $LINGUAS at configure time to set ALL_LINGUAS, and let
the translations Makefile properly honor the $LINGUAS itself, which it
already does better than we do, cleanly ignoring translations it
doesn't know.

If we do set ALL_LINGUAS=$LINGUAS, it will result in a build failure if
we do not have a translation for some of the language(s) specified in
$LINGUAS, and would make it impossible to build other languages without
re-configuring.  So, just drop that part and let the build-time support
kick in.

Closes #507.
2014-08-16 17:59:10 +02:00

27 lines
803 B
Plaintext

dnl GEANY_I18N
dnl Setups I18N support.
dnl AC_DEFINEs and AC_SUBSTs GETTEXT_PACKAGE
AC_DEFUN([GEANY_I18N],
[
AC_REQUIRE([AC_PROG_AWK])
AC_REQUIRE([AC_PROG_INTLTOOL])
GETTEXT_PACKAGE="$PACKAGE"
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package.])
ALL_LINGUAS=`cd "$srcdir/po" 2>/dev/null && ls *.po 2>/dev/null | $AWK 'BEGIN { FS="."; ORS=" " } { print $[]1 }'`
AM_GLIB_GNU_GETTEXT
# workaround for intltool bug (http://bugzilla.gnome.org/show_bug.cgi?id=490845)
if test "x$MSGFMT" = "xno"; then
AC_MSG_ERROR([msgfmt not found. Please install the gettext package.])
fi
# intltool hack to define install_sh on Debian/Ubuntu systems
if test "x$install_sh" = "x"; then
install_sh="`pwd`/install-sh"
AC_SUBST([install_sh])
fi
])