durusmail: quixote-users: i18n and l10n in quixote applications, how?
i18n and l10n in quixote applications, how?
2005-06-05
2005-06-05
2005-06-05
Re: i18n and l10n in quixote applications, how?
2005-06-06
2005-06-08
i18n and l10n in quixote applications, how?
Evan Laforge
2005-06-08
On 6/5/05, Damjan  wrote:
> What's the quixote idiom for writing translatable applications?
>
> I'm thinking of using python gettext, but I'm not sure if it will work
> with PTL.

I used gettext.  The user's language is set in their session and the
_() translation function selected the gettext translation based on
that.  I added _h() that translated to htmltext for PTL where I had
HTML in the string (unnecessary, but it avoids lots of tiresome
_('blah') + ' 

' + _('blah') type sutff).

reply