tests/test-i18n.t
author Patrick Mezard <pmezard@gmail.com>
Sat, 30 Apr 2011 19:42:00 +0200
changeset 14082 176b3abb5b8b
parent 13967 f85c9b0fdb32
child 14660 d29d31e0fdc3
permissions -rw-r--r--
graphlog: fix log -G --removed Current version was mispelled and processed like a valued argument.

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]