Hi all, I have lately worked on a hook to enable a Django website to use Mozilla's Pontoon service. https://github.com/rtnpro/django-pontoon-hook
What this app tries to achieve is to wrap marked up strings anywhere in a Django project's source code (templates, python files: forms, models, views), with some special character sequence, say, '<!10n>'. This will help Pontoon to identify the marked up strings and mark them as editable. I tried to monkey patch 'django.utils.translation._trans' at https://github.com/rtnpro/django-pontoon-hook/blob/master/pontoon_hook/middleware.py#L88 so that all calls to the needed gettext methods will wrap the source string in the above mentioned way. However, this approach is not at all clean and reliable. I was discussing about this with Jacob (@jacobian) at Pycon India, 2012, and we found that it'd be cool if Django allowed implementing custom i18n backends, just like it allows implementing custom test runners. Could you please help in implementing django-pontoon-hook in a better way? Regards, Ratnadeep -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/Qz77ucuYwAoJ. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.