[RFC][PATCH] minimal i18n support: default _() pass-through function; 'make pot' will create PO template
Alexander Belchenko
bialix at ukr.net
Thu May 10 11:36:06 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lukáš Lalinský пишет:
>
> No, this is not the point. Let's use _basic_help from bzrlib.help_topics
> as an example. If you import bzrlib.help_topics, it would call _() on
> the string and assign it to _basic_help. But at this time the code
> doesn't know which locale to use, and can't translate the string
> correctly.
>
> N_() is used only to let xgettext/pygettext know that the strings should
> be included in the .pot file. _() is used to actually translate the
> string, once you initialize gettext, load the correct .mo file and
> install the _() function.
You're right right right.
We must have instant access to all original english strings
because of our test suite. I'll rework my specification
accordingly.
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGQvWWzYr338mxwCURAv9KAJ42nmcRyNHYmvCkins1nHjjV1ZTvACdEnRe
mcLXs+93VRBRPxS6JAENdkk=
=7ux6
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list