[PATCH RFC] HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Martin Geisler
mg at aragost.com
Wed Jan 5 09:21:25 CST 2011
Brodie Rao <brodie at bitheap.org> writes:
> Also, I'm not entirely sure of the best way to actually test if the
> i18n exception works or not in test-hgrc.t. Are translations built
> before running tests?
Yes they are -- this test works:
Brazilian Portuguese translation:
$ 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]
I picked 'hg tip' outside a repository since the error message is
ancient and so I don't think it will change anytime soon.
> Is there a particularly stable translation I could use? Do we have a
> policy on tests depending or not depending on translations?
We don't have a policy as such, except for what is practical to
maintain. The problem is of course that a change to the English string
will invalidate the translation until it is updated and merged back into
crew/main.
As for a particular stable translation, then I would go with pt_BR which
Wagner is careful to keep up to date.
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://aragost.com/en/services/mercurial/blog/
More information about the Mercurial-devel
mailing list