On Thu, Jun 3, 2010 at 5:11 PM, madewulf <[email protected]> wrote:
> Hello,
>
> I was thinking of implementing a little command line tool that would
> show you all lines where a string is NOT marked for translation in
> all .html files. This just means stripping html tags, and removing
> django template tags, before outputing the remaining strings and the
> line number. I was thinking of using Beautiful Soup to do this.
>
> This is something I would often find useful, since when I am writing
> templates, I often forget to mark some strings for tanslation
> (typically, the titles).
>
> Does somebody know of some existing implementation of this idea ? I
> would like to avoid to spend some time on this, if it already exists
> (but some quick googling did not give any result).
>
> The idea could maybe be applied on .py files too, but that seems more
> difficult (how to differentiate strings that are identifiers in a
> dictionnary for example, from strings needing translation ?).
>
> If it works correctly, this could maybe be added to Django, but at
> first, I was thinking to do this in a plugable app. What would be the
> best place to do this ?

If you do, then attach your patch implementing this to ticket #10859.

The idea was proposed there and, as you will discover from reading
the ticket history, initially we (or at leat me) hadn't understood what
the OP was proposing.

Regards,

-- 
Ramiro Morales  |  http://rmorales.net

1. http://code.djangoproject.com/ticket/10859

-- 
You received this message because you are subscribed to the Google Groups 
"Django I18N" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-i18n?hl=en.

Reply via email to