2011-02-20 15:35:30 +03:00
|
|
|
Translations are optional:
|
|
|
|
|
|
|
|
$ "$TESTDIR/hghave" gettext || exit 80
|
|
|
|
|
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-04-20 23:28:40 +04:00
|
|
|
abortado: no repository found in '$TESTTMP' (.hg not found)!
|
2011-02-16 12:02:24 +03:00
|
|
|
[255]
|
|
|
|
|
|
|
|
Using a more accomodating encoding:
|
|
|
|
|
|
|
|
$ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip
|
2011-04-20 23:28:40 +04:00
|
|
|
abortado: no repository found in '$TESTTMP' (.hg not found)!
|
2011-02-16 12:02:24 +03:00
|
|
|
[255]
|
|
|
|
|
|
|
|
Different encoding:
|
|
|
|
|
|
|
|
$ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip
|
2011-04-20 23:28:40 +04:00
|
|
|
abortado: no repository found in '$TESTTMP' (.hg not found)!
|
2011-02-16 12:02:24 +03:00
|
|
|
[255]
|