pythondjangopluginsmultilingualdjango-hvad

Django hvad - Best practice to work with multi-lingual object in template


I have an article object which has several languages. What's the best way to work with this object?

I need to display all attributes in every language.

Is is possible to get just my article object and iterate through the languages in the template?

Thanks for you help!

Ron


Solution

  • You should act like this: extract each translation in single variable, put them in list ant let that list go to view. Then you can iterate through each translation in view.