Do not use m4 file for i18n stuff, it confuses intltool

This commit is contained in:
Yevgen Muntyan 2006-08-04 22:44:07 -05:00
parent 6c98d10248
commit 9ca6626ad0
2 changed files with 10 additions and 17 deletions

View File

@ -14,7 +14,16 @@ AC_CANONICAL_HOST
AC_CONFIG_HEADERS(config.h) AC_CONFIG_HEADERS(config.h)
MOO_DEFINE_VERSIONS MOO_DEFINE_VERSIONS
MOO_AC_I18N([ru])
AC_PROG_INTLTOOL([0.29])
GETTEXT_PACKAGE=moo
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package.])
ALL_LINGUAS="ru"
AM_GLIB_GNU_GETTEXT
MOO_INTLTOOL_INI_RULE='%.ini: %.ini.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
AC_SUBST(MOO_INTLTOOL_INI_RULE)
# Check operating system # Check operating system
MOO_AC_CHECK_OS MOO_AC_CHECK_OS

View File

@ -1,16 +0,0 @@
##############################################################################
# MOO_AC_I18N
#
AC_DEFUN([MOO_AC_I18N],[
AC_PROG_INTLTOOL([0.29])
GETTEXT_PACKAGE=moo
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package.])
ALL_LINGUAS="$1"
AM_GLIB_GNU_GETTEXT
MOO_INTLTOOL_INI_RULE='%.ini: %.ini.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
AC_SUBST(MOO_INTLTOOL_INI_RULE)
])