Internationalisation of bzr cli
Alexander Belchenko
bialix at ukr.net
Fri Apr 29 07:54:11 UTC 2011
Jelmer Vernooij пишет:
> Hi Martin,
>
> On Thu, 2011-04-28 at 22:21 +0200, Martin Ueding wrote:
>> are there any plans to internationalize the bazaar command line interface?
>>
>> qbzr and the bazaar explorer are completely localized I think, but the
>> command line is still English only.
>>
>> On the IRC channel someone told me that gettext slowed bazaar down
>> badly, would that still be an issue today?
> Using gettext in a naive manner would slow bzr down enough that it would
> be a problem. For example, a lot of the exceptions inside bzrlib have
> English descriptions that may be displayed to the user but usually
> they're caught by other code before they bubble up to the UI layer. If
> we called gettext every single time such an exception object was created
> it would slow Bazaar down significantly.
>
> In the case of error handling it seems most sensible to make the top
> level UI layer (which displays any unhandled exceptions) take care of
> calling gettext.
I think this is important point: bzr should never write localized error
messages to .bzr.log.
More information about the bazaar
mailing list