Using django to translate html

29 views
Skip to first unread message

Andrei Balasanov

unread,
Nov 10, 2014, 6:31:31 AM11/10/14
to django...@googlegroups.com
What is the best route to localize HTML using django?  There is a clear documentation what to do with the views/templates and javascript, however we have a set of the html files that are requiring localization.  If we move them to the template folder to use template localizatioin there will need to be a url and a view associated with each page, this seems not as a clean solution.  Are there any other approaches?  Currently we have 20+ html files in the static folder it is clear that they have to be moved out for localization but there?


Andreas Kuhne

unread,
Nov 10, 2014, 7:25:54 AM11/10/14
to django...@googlegroups.com
2014-11-10 12:31 GMT+01:00 Andrei Balasanov <andrei.b...@gmail.com>:
What is the best route to localize HTML using django?  There is a clear documentation what to do with the views/templates and javascript, however we have a set of the html files that are requiring localization.  If we move them to the template folder to use template localizatioin there will need to be a url and a view associated with each page, this seems not as a clean solution.  Are there any other approaches?  Currently we have 20+ html files in the static folder it is clear that they have to be moved out for localization but there?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/aa7901f6-0a4b-46af-a7cd-75bde63d53b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Andrei,

I would move them to templates and add url / views for them. It's rather easy if you use the generic templateview to generate them.

Regards,

Andréas
Reply all
Reply to author
Forward
0 new messages