2014-08-06 20:43:59 +04:00
|
|
|
(Translations are optional)
|
2011-02-20 15:35:30 +03:00
|
|
|
|
2015-09-17 14:31:07 +03:00
|
|
|
#if gettext no-outer-repo
|
2012-06-21 01:41:21 +04:00
|
|
|
|
2011-02-16 12:02:24 +03:00
|
|
|
Test that translations are compiled and installed correctly.
|
|
|
|
|
|
|
|
Default encoding in tests is "ascii" and the translation is encoded
|
|
|
|
using the "replace" error handler:
|
|
|
|
|
|
|
|
$ LANGUAGE=pt_BR hg tip
|
2011-07-23 03:31:15 +04:00
|
|
|
abortado: n?o foi encontrado um reposit?rio em '$TESTTMP' (.hg n?o encontrado)!
|
2011-02-16 12:02:24 +03:00
|
|
|
[255]
|
|
|
|
|
2014-04-13 21:01:00 +04:00
|
|
|
Using a more accommodating encoding:
|
2011-02-16 12:02:24 +03:00
|
|
|
|
|
|
|
$ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip
|
2011-07-23 03:31:15 +04:00
|
|
|
abortado: n\xc3\xa3o foi encontrado um reposit\xc3\xb3rio em '$TESTTMP' (.hg n\xc3\xa3o encontrado)! (esc)
|
2011-02-16 12:02:24 +03:00
|
|
|
[255]
|
|
|
|
|
|
|
|
Different encoding:
|
|
|
|
|
|
|
|
$ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip
|
2011-07-23 03:31:15 +04:00
|
|
|
abortado: n\xe3o foi encontrado um reposit\xf3rio em '$TESTTMP' (.hg n\xe3o encontrado)! (esc)
|
2011-02-16 12:02:24 +03:00
|
|
|
[255]
|
2012-06-09 01:37:11 +04:00
|
|
|
|
2012-06-21 01:41:21 +04:00
|
|
|
#endif
|
|
|
|
|
2015-09-17 14:31:07 +03:00
|
|
|
#if gettext
|
|
|
|
|
2012-06-09 01:37:11 +04:00
|
|
|
Test keyword search in translated help text:
|
|
|
|
|
2017-02-08 01:08:41 +03:00
|
|
|
$ HGENCODING=UTF-8 LANGUAGE=de hg help -k Aktualisiert
|
2014-01-31 02:34:18 +04:00
|
|
|
Themen:
|
2012-06-09 01:37:11 +04:00
|
|
|
|
2017-02-08 01:08:41 +03:00
|
|
|
subrepos Unterarchive
|
2012-06-09 01:37:11 +04:00
|
|
|
|
2017-02-08 01:08:41 +03:00
|
|
|
Befehle:
|
2012-06-09 01:37:11 +04:00
|
|
|
|
2017-02-08 01:08:41 +03:00
|
|
|
pull Ruft \xc3\x84nderungen von der angegebenen Quelle ab (esc)
|
|
|
|
update Aktualisiert das Arbeitsverzeichnis (oder wechselt die Version)
|
2012-06-09 01:37:11 +04:00
|
|
|
|
2015-09-17 14:31:07 +03:00
|
|
|
#endif
|
|
|
|
|
2013-11-27 17:47:32 +04:00
|
|
|
Check Mercurial specific translation problems in each *.po files, and
|
|
|
|
tool itself by doctest
|
|
|
|
|
|
|
|
$ cd "$TESTDIR"/../i18n
|
2017-06-20 16:45:02 +03:00
|
|
|
$ $PYTHON check-translation.py *.po
|
|
|
|
$ $PYTHON check-translation.py --doctest
|
2013-11-27 17:47:32 +04:00
|
|
|
$ cd $TESTTMP
|