Re: Using django to translate html

2014-11-10 Thread Andreas Kuhne
2014-11-10 12:31 GMT+01:00 Andrei Balasanov :

> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CALXYUbk%3DnW_NXrVZKg4nmMtnJnrfcOFo5fKDYpPj_t0_kuAZxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Using django to translate html

2014-11-10 Thread Andrei Balasanov
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.