Internationalisation of bzr cli
Stephen J. Turnbull
stephen at xemacs.org
Sat Apr 30 05:20:18 UTC 2011
Jelmer Vernooij writes:
> On Sat, 2011-04-30 at 09:24 +1000, Ben Finney wrote:
> > Martin Ueding <list at martin-ueding.de> writes:
> >
> > > What kind of alias should I use when wrapping strings?
> > >
> > > The underscore might be a little troublesome with its special value in
> > > the Python interpreter as the last return value.
> >
> > That exists only in the interactive interpreter.
> >
> > Using ‘_’ for the ‘gettext’ alias is common practice in a lot of Python
> > code; I don't see a good reason not to use it here.
> When working on bzr at least some of the Bazaar developers often break
> into the debugger where e.g. exceptions occur. Not being able to use _
> there is a pain.
if __debug__:
_i18n = _
No?
More information about the bazaar
mailing list