author | Markus F.X.J. Oberhumer <markus@oberhumer.com> |
Wed, 23 Mar 2011 02:33:22 +0100 | |
changeset 13730 | df978f28a259 |
parent 13442 | bb107a31820e |
child 13967 | f85c9b0fdb32 |
permissions | -rw-r--r-- |
13442
bb107a31820e
test-i18n: make test conditional on msgfmt availability
Martin Geisler <mg@lazybytes.net>
parents:
13414
diff
changeset
|
1 |
Translations are optional: |
bb107a31820e
test-i18n: make test conditional on msgfmt availability
Martin Geisler <mg@lazybytes.net>
parents:
13414
diff
changeset
|
2 |
|
bb107a31820e
test-i18n: make test conditional on msgfmt availability
Martin Geisler <mg@lazybytes.net>
parents:
13414
diff
changeset
|
3 |
$ "$TESTDIR/hghave" gettext || exit 80 |
bb107a31820e
test-i18n: make test conditional on msgfmt availability
Martin Geisler <mg@lazybytes.net>
parents:
13414
diff
changeset
|
4 |
|
13414 | 5 |
Test that translations are compiled and installed correctly. |
6 |
||
7 |
Default encoding in tests is "ascii" and the translation is encoded |
|
8 |
using the "replace" error handler: |
|
9 |
||
10 |
$ LANGUAGE=pt_BR hg tip |
|
11 |
abortado: N?o h? um reposit?rio do Mercurial aqui (.hg n?o encontrado)! |
|
12 |
[255] |
|
13 |
||
14 |
Using a more accomodating encoding: |
|
15 |
||
16 |
$ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip |
|
17 |
abortado: N\xc3\xa3o h\xc3\xa1 um reposit\xc3\xb3rio do Mercurial aqui (.hg n\xc3\xa3o encontrado)! (esc) |
|
18 |
[255] |
|
19 |
||
20 |
Different encoding: |
|
21 |
||
22 |
$ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip |
|
23 |
abortado: N\xe3o h\xe1 um reposit\xf3rio do Mercurial aqui (.hg n\xe3o encontrado)! (esc) |
|
24 |
[255] |