2009-11-19 11:44:55 +00:00
|
|
|
AC_MSG_CHECKING(the manpage translation languages to install)
|
2010-03-02 18:16:29 +00:00
|
|
|
MANPAGES_TRANSLATIONS=""
|
|
|
|
MANPAGES_TRANSLATIONS_POS=""
|
2010-04-03 21:52:56 +00:00
|
|
|
if test x"$LINGUAS" = x ; then
|
|
|
|
for file in $srcdir/doc/man/po4a/po/*.po; do
|
|
|
|
MANPAGES_TRANSLATIONS="$MANPAGES_TRANSLATIONS`basename $file .po` "
|
|
|
|
MANPAGES_TRANSLATIONS_POS="$MANPAGES_TRANSLATIONS$file "
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in $LINGUAS; do
|
|
|
|
if test -f "$srcdir/doc/man/po4a/po/$i.po"; then
|
|
|
|
MANPAGES_TRANSLATIONS="$MANPAGES_TRANSLATIONS$i "
|
|
|
|
MANPAGES_TRANSLATIONS_POS="$MANPAGES_TRANSLATIONS$srcdir/doc/man/po4a/po/$i.po "
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
2009-11-19 11:44:55 +00:00
|
|
|
AC_MSG_RESULT($MANPAGES_TRANSLATIONS)
|
|
|
|
|
|
|
|
MANPAGES_TRANSLATED="`for lang in $MANPAGES_TRANSLATIONS; do \
|
2010-02-13 20:05:49 +00:00
|
|
|
echo '$(subst doc/man, doc/man/'$lang', $(MANPAGES)) '; done | tr -d '\n\r'`"
|
2009-11-19 11:44:55 +00:00
|
|
|
|
|
|
|
MANPAGES_TRANSLATED_XML_RULE="`for lang in $MANPAGES_TRANSLATIONS; do \
|
2010-03-11 23:48:08 +00:00
|
|
|
echo 'doc/man/'$lang'/%.xml: doc/man/%.xml doc/man/po4a/po/'$lang'.po'
|
|
|
|
echo ' @echo '\'' PO4A '\'' $< '\''('$lang')'\'
|
2010-03-02 15:38:36 +00:00
|
|
|
echo ' $(Q)$(PO4A_TRANSLATE) $(PO4A_TRANSLATE_FLAGS) -m $< -p doc/man/po4a/po/'$lang'.po -l $@'; done`"
|
2009-11-19 11:44:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
AC_SUBST(MANPAGES_TRANSLATIONS)
|
|
|
|
AC_SUBST(MANPAGES_TRANSLATIONS_POS)
|
|
|
|
AC_SUBST(MANPAGES_TRANSLATED)
|
|
|
|
AC_SUBST(MANPAGES_TRANSLATED_XML_RULE)
|