mkvtoolnix/ac/manpages_translations.m4

32 lines
1.2 KiB
Plaintext
Raw Normal View History

AC_MSG_CHECKING(the manpage translation languages to install)
2010-03-02 18:16:29 +00:00
MANPAGES_TRANSLATIONS=""
MANPAGES_TRANSLATIONS_POS=""
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
AC_MSG_RESULT($MANPAGES_TRANSLATIONS)
MANPAGES_TRANSLATED="`for lang in $MANPAGES_TRANSLATIONS; do \
echo '$(subst doc/man, doc/man/'$lang', $(MANPAGES)) '; done | tr -d '\n\r'`"
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`"
AC_SUBST(MANPAGES_TRANSLATIONS)
AC_SUBST(MANPAGES_TRANSLATIONS_POS)
AC_SUBST(MANPAGES_TRANSLATED)
AC_SUBST(MANPAGES_TRANSLATED_XML_RULE)