##// END OF EJS Templates
http: minor tweaks to long arg handling...
http: minor tweaks to long arg handling x-arg -> x-hgarg replace itertools.count(1)

File last commit:

r13967:f85c9b0f default
r14094:d10c6835 default
Show More
test-i18n.t
24 lines | 623 B | text/troff | Tads3Lexer
Martin Geisler
test-i18n: make test conditional on msgfmt availability
r13442 Translations are optional:
$ "$TESTDIR/hghave" gettext || exit 80
Martin Geisler
test-i18n: test translations
r13414 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
Matt Mackall
dispatch: improve repository not found message...
r13967 abortado: no repository found in '$TESTTMP' (.hg not found)!
Martin Geisler
test-i18n: test translations
r13414 [255]
Using a more accomodating encoding:
$ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip
Matt Mackall
dispatch: improve repository not found message...
r13967 abortado: no repository found in '$TESTTMP' (.hg not found)!
Martin Geisler
test-i18n: test translations
r13414 [255]
Different encoding:
$ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip
Matt Mackall
dispatch: improve repository not found message...
r13967 abortado: no repository found in '$TESTTMP' (.hg not found)!
Martin Geisler
test-i18n: test translations
r13414 [255]