Aliasing it to "t" or "txl" seems like a saner way, if I'm honest.
Aliasing it to "t" or "txl" seems like a saner way, if I'm honest.
[1]: http://stackoverflow.com/a/2745537/720077
http://stackoverflow.com/a/1739541/720077
http://developer.plone.org/i18n/internationalisation.html#ma...
Quoting from http://www.python.org/workshops/1997-10/proceedings/loewis.h... :
> Here are several ways of producing the message catalogs. This is the one suggested by the GNU gettext documentation. First, all translatable message strings in the source code must be marked. In order to disturb readability as little as possible, the wrapper function around each string should be called _ (underscore). This use of the underscore usually does not interfere with its meaning in the interactive mode. A gettextized module would then begin with
import intl
_=intl.gettext