Mercurial > hg
annotate tests/test-i18n.t @ 14763:b071cd58af50 stable
check-code: fix class style checking (with tests)
- old-style classes were only checked for one-letter class names
- add check for new-style classes with empty parent class, because
this is not available in Python 2.4
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 29 Jun 2011 13:45:51 +0200 |
parents | d29d31e0fdc3 |
children | 41c3a71c318d |
rev | line source |
---|---|
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 | |
14660
d29d31e0fdc3
test-i18n, i18n-pt_BR: update test message
Wagner Bruna <wbruna@softwareexpress.com.br>
parents:
13967
diff
changeset
|
11 abortado: n?o foi encontrado um reposit?rio em '$TESTTMP' (.hg n?o encontrado)! |
13414 | 12 [255] |
13 | |
14 Using a more accomodating encoding: | |
15 | |
16 $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip | |
14660
d29d31e0fdc3
test-i18n, i18n-pt_BR: update test message
Wagner Bruna <wbruna@softwareexpress.com.br>
parents:
13967
diff
changeset
|
17 abortado: n\xc3\xa3o foi encontrado um reposit\xc3\xb3rio em '$TESTTMP' (.hg n\xc3\xa3o encontrado)! (esc) |
13414 | 18 [255] |
19 | |
20 Different encoding: | |
21 | |
22 $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip | |
14660
d29d31e0fdc3
test-i18n, i18n-pt_BR: update test message
Wagner Bruna <wbruna@softwareexpress.com.br>
parents:
13967
diff
changeset
|
23 abortado: n\xe3o foi encontrado um reposit\xf3rio em '$TESTTMP' (.hg n\xe3o encontrado)! (esc) |
13414 | 24 [255] |