support use of non-installed translations when building out of source tree

This commit is contained in:
Yann Dirson 2004-10-19 22:29:23 +00:00
parent f3f90717b8
commit f6a6b04e53

View file

@ -599,12 +599,16 @@ fi
#######################################################################
rm -rf translations
case $srcdir in
/*) podir=$srcdir/po ;;
*) podir=../../../$srcdir/po ;;
esac
for domain in `grep ^SUBDIRS $srcdir/po/Makefile.am | cut -d= -f2`
do
for lang in `cat $srcdir/po/$domain/LINGUAS`
do
mkdir -p translations/$lang/LC_MESSAGES
ln -s ../../../po/$domain/$lang.gmo translations/$lang/LC_MESSAGES/$domain.mo
ln -s $podir/$domain/$lang.gmo translations/$lang/LC_MESSAGES/$domain.mo
done
done