Hi all,

I experience some strange issues with i18n support in TurboGears. It is about
gettext and TG's equivalent lazytext (let's call it so).

1. TG's lazytext does not work in validators (errors with nosetests/doctests),
2. therefore I had to 'from gettext import gettext as _'. Unfortunately, then
   'tg-admin i18n...' does not collect the strings to be translated. (But
   they are translated properly if having been previuosly collected.)
3. I18N with JS files is announced to work with TG 1.0.3.2.
   But, how to utilize it? I didn't find any documentation and _("") does
   not work there, too.

A note:
I suspect TG's lazytext bein responsible for exceptions if both strings are
Unicode (e.g., chinese text): _("%s and me") % u'ni3' (<- in chinese, of course)

Thanks for your help in advance!
W-Mark Kubacki

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to