Floating a trial balloon or looking for better practices as a revisit internationalization in an old app. 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(). Not knowing anything about ptl compiling I'm wondering whether it would be useful/possible to teach ptl about the _('') / _(''' ''') etc constructs so that one could go back from this: def foo [html](): # some module with lots of candidate strings for internationalization htmltext(_('Voici la texte...')) htmltext ... . . . def foo [html](): # some module with lots of candidate strings for internationalization _('
Voici la texte...') _('and yet more text blah foo blah') . . . What I'd done in the past is try to define such strings, where possible, outside of the function, but this isn't always practical or desirable. Any other thoughts on this or best practices to share? Thoughts on adding this functionality to ptl?