Mercurial > hg-stable
changeset 13414:a0e49e129151
test-i18n: test translations
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 16 Feb 2011 10:02:24 +0100 |
parents | fa921dcd9993 |
children | 25b5694b9337 |
files | tests/test-i18n.t |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-i18n.t Wed Feb 16 10:02:24 2011 +0100 @@ -0,0 +1,20 @@ +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 + abortado: N?o h? um reposit?rio do Mercurial aqui (.hg n?o encontrado)! + [255] + +Using a more accomodating encoding: + + $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip + abortado: N\xc3\xa3o h\xc3\xa1 um reposit\xc3\xb3rio do Mercurial aqui (.hg n\xc3\xa3o encontrado)! (esc) + [255] + +Different encoding: + + $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip + abortado: N\xe3o h\xe1 um reposit\xf3rio do Mercurial aqui (.hg n\xe3o encontrado)! (esc) + [255]