| 1 |
#require docutils |
| 2 |
#require gettext |
| 3 |
|
| 4 |
Test document extraction |
| 5 |
|
| 6 |
$ HGENCODING=UTF-8 |
| 7 |
$ export HGENCODING |
| 8 |
$ { echo C; ls "$TESTDIR/../i18n"/*.po | sort; } | while read PO; do |
| 9 |
> LOCALE=`basename "$PO" .po` |
| 10 |
> echo "% extracting documentation from $LOCALE" |
| 11 |
> LANGUAGE=$LOCALE "$PYTHON" "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit |
| 12 |
> |
| 13 |
> if [ $LOCALE != C ]; then |
| 14 |
> if [ ! -f $TESTDIR/test-gendoc-$LOCALE.t ]; then |
| 15 |
> echo missing test-gendoc-$LOCALE.t |
| 16 |
> fi |
| 17 |
> cmp -s gendoc-C.txt gendoc-$LOCALE.txt && echo "** NOTHING TRANSLATED ($LOCALE) **" |
| 18 |
> fi |
| 19 |
> done; true |
| 20 |
% extracting documentation from C |
| 21 |
% extracting documentation from da |
| 22 |
% extracting documentation from de |
| 23 |
% extracting documentation from el |
| 24 |
% extracting documentation from fr |
| 25 |
% extracting documentation from it |
| 26 |
% extracting documentation from ja |
| 27 |
% extracting documentation from pt_BR |
| 28 |
% extracting documentation from ro |
| 29 |
% extracting documentation from ru |
| 30 |
% extracting documentation from sv |
| 31 |
% extracting documentation from zh_CN |
| 32 |
% extracting documentation from zh_TW |