test-gendoc.t
32 lines
| 1.1 KiB
| text/troff
|
Tads3Lexer
/ tests / test-gendoc.t
Matt Mackall
|
r22046 | #require docutils | ||
Eric Sumner
|
r24043 | #require gettext | ||
Matt Mackall
|
r22046 | |||
Matt Mackall
|
r12427 | Test document extraction | ||
$ HGENCODING=UTF-8 | ||||
$ export HGENCODING | ||||
Simon Heimberg
|
r20390 | $ { echo C; ls "$TESTDIR/../i18n"/*.po | sort; } | while read PO; do | ||
Thomas Arendsen Hein
|
r16350 | > LOCALE=`basename "$PO" .po` | ||
Matt Mackall
|
r12427 | > echo "% extracting documentation from $LOCALE" | ||
Augie Fackler
|
r32940 | > LANGUAGE=$LOCALE $PYTHON "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit | ||
Matt Mackall
|
r12427 | > | ||
Simon Heimberg
|
r19923 | > if [ $LOCALE != C ]; then | ||
timeless
|
r28809 | > 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) **" | ||||
Simon Heimberg
|
r19923 | > fi | ||
timeless
|
r28809 | > done; true | ||
Matt Mackall
|
r12427 | % 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 | ||||
Martin Geisler
|
r14475 | % extracting documentation from ru | ||
Matt Mackall
|
r12427 | % extracting documentation from sv | ||
% extracting documentation from zh_CN | ||||
% extracting documentation from zh_TW | ||||