Re: ptl and _('') for internationalization

Neil Schemenauer <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
Michael Watkins <[email protected]> wrote:
> Using the gettext convention of marking up strings with _('the string') has
> one undesirable side effect in ptl - the need to wrap all such strings in
> htmltext().

Why not just write you own version of _?  Something like:

    def _(*args, **kwargs):
        return htmltext(gettext(*args, **kwargs))

Am I missing something?

  Neil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.