2014-08-06 20:43:59 +04:00
|
|
|
#require docutils
|
2015-01-21 04:38:42 +03:00
|
|
|
#require gettext
|
2014-08-06 20:43:59 +04:00
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
Test document extraction
|
|
|
|
|
|
|
|
$ HGENCODING=UTF-8
|
|
|
|
$ export HGENCODING
|
2014-02-03 23:08:58 +04:00
|
|
|
$ { echo C; ls "$TESTDIR/../i18n"/*.po | sort; } | while read PO; do
|
2012-04-03 21:06:35 +04:00
|
|
|
> LOCALE=`basename "$PO" .po`
|
2010-09-26 22:41:32 +04:00
|
|
|
> echo "% extracting documentation from $LOCALE"
|
2017-06-20 16:45:02 +03:00
|
|
|
> LANGUAGE=$LOCALE $PYTHON "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
|
2010-09-26 22:41:32 +04:00
|
|
|
>
|
2013-10-18 20:56:52 +04:00
|
|
|
> if [ $LOCALE != C ]; then
|
2016-01-06 23:45:50 +03:00
|
|
|
> if [ ! -f $TESTDIR/test-gendoc-$LOCALE.t ]; then
|
|
|
|
> echo missing test-gendoc-$LOCALE.t
|
|
|
|
> fi
|
|
|
|
> cmp -s gendoc-C.txt gendoc-$LOCALE.txt && echo "** NOTHING TRANSLATED ($LOCALE) **"
|
2013-10-18 20:56:52 +04:00
|
|
|
> fi
|
2016-01-06 23:45:50 +03:00
|
|
|
> done; true
|
2010-09-26 22:41:32 +04:00
|
|
|
% extracting documentation from C
|
|
|
|
% extracting documentation from da
|
|
|
|
% extracting documentation from de
|
|
|
|
% extracting documentation from el
|
|
|
|
% extracting documentation from fr
|
|
|
|
% extracting documentation from it
|
|
|
|
% extracting documentation from ja
|
|
|
|
% extracting documentation from pt_BR
|
|
|
|
% extracting documentation from ro
|
2011-05-30 13:52:17 +04:00
|
|
|
% extracting documentation from ru
|
2010-09-26 22:41:32 +04:00
|
|
|
% extracting documentation from sv
|
|
|
|
% extracting documentation from zh_CN
|
|
|
|
% extracting documentation from zh_TW
|