Internationalisation of bzr cli
Alexander Belchenko
bialix at ukr.net
Fri Apr 29 20:00:48 UTC 2011
Martin Ueding пишет:
> 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.
>
> gettext.gettext is not very agile, is there something that would make
> sense and be obvious?
>
> gt() or _gt() or l10n() maybe?
QBzr and Bazaar Explorer has the functions for translations in module
named i18n.py and function names are the same as standard gettext
module provides, for easy reference in docs:
http://bazaar.launchpad.net/~bzr-explorer-dev/bzr-explorer/trunk/view/head:/lib/i18n.py
More information about the bazaar
mailing list