2006-08-04 23:05:41 -05:00
|
|
|
##############################################################################
|
|
|
|
# MOO_AC_I18N
|
|
|
|
#
|
2007-06-18 05:18:02 -05:00
|
|
|
AC_DEFUN([MOO_AC_PO_GSV],[
|
|
|
|
AC_REQUIRE([MOO_AC_I18N])
|
|
|
|
AC_CONFIG_COMMANDS([po-gsv/Makefile],[sed -e "/POTFILES =/r po-gsv/POTFILES" po-gsv/Makefile.in > po-gsv/Makefile])
|
|
|
|
IT_PO_SUBDIR([po-gsv])
|
|
|
|
])
|
|
|
|
|
2006-08-04 23:05:41 -05:00
|
|
|
AC_DEFUN([MOO_AC_I18N],[
|
2007-06-18 05:18:02 -05:00
|
|
|
AC_PROG_INTLTOOL([0.35])
|
2006-08-04 23:05:41 -05:00
|
|
|
|
2007-06-18 05:18:02 -05:00
|
|
|
GETTEXT_PACKAGE=$1
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package.])
|
2006-08-04 23:05:41 -05:00
|
|
|
|
2007-06-18 05:18:02 -05:00
|
|
|
AM_GLIB_GNU_GETTEXT
|
2006-08-04 23:05:41 -05:00
|
|
|
|
2007-06-18 05:18:02 -05:00
|
|
|
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)
|
2007-02-03 09:41:57 -06:00
|
|
|
|
2007-06-18 15:03:20 -05:00
|
|
|
MOO_PO_SUBDIRS_RULE='po-subdirs-stamp: $(top_srcdir)/po/POTFILES.in ; (for potfile in `cat $<`; do echo `dirname $$potfile`; done) | uniq > $(@).dirs && for subdir in `cat $(@).dirs`; do echo $$subdir >> $(@).tmp; mkdir -p $(top_builddir)/$$subdir; done && rm $(@).dirs && mv $(@).tmp $(@)'
|
|
|
|
MOO_PO_SUBDIRS_RULE2='po-subdirs-stamp-2: $(top_srcdir)/po-gsv/POTFILES.in ; (for potfile in `cat $<`; do echo `dirname $$potfile`; done) | uniq > $(@).dirs && for subdir in `cat $(@).dirs`; do echo $$subdir >> $(@).tmp; mkdir -p $(top_builddir)/$$subdir; done && rm $(@).dirs && mv $(@).tmp $(@)'
|
2007-06-18 05:18:02 -05:00
|
|
|
AC_SUBST(MOO_PO_SUBDIRS_RULE)
|
|
|
|
AC_SUBST(MOO_PO_SUBDIRS_RULE2)
|
2006-08-04 23:05:41 -05:00
|
|
|
])
|