tests/test-i18n.t
author Martin Geisler <mg@aragost.com>
Tue, 10 May 2011 13:19:05 +0200
changeset 14285 aa64a87b493d
parent 13967 f85c9b0fdb32
child 14660 d29d31e0fdc3
permissions -rw-r--r--
help: give hint about 'hg help -e' when appropriate The hint is only given if a command shadows an extension with the same name and when that extension has a multi-line module docstring.

Translations are optional:

  $ "$TESTDIR/hghave" gettext || exit 80

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: no repository found in '$TESTTMP' (.hg not found)!
  [255]

Using a more accomodating encoding:

  $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip
  abortado: no repository found in '$TESTTMP' (.hg not found)!
  [255]

Different encoding:

  $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip
  abortado: no repository found in '$TESTTMP' (.hg not found)!
  [255]