Specify different language for URL translation

asked 2012-10-18 01:05:31 -0600

anonymous user

Anonymous

updated 2012-10-18 08:31:39 -0600

todofixthis gravatar image

I am using language translation in my project.But it only translate the strings if I set the highest priority to respective language in my browser.

e.g.

If i am using two language en and es For translation then it will display data in spanish if I have set spanish as my default language.My translation is working because it only displayed that in spanish which i have specified in my Django.po file.

So What i want is if i specify the language in url as www.asd.com/?lang=es then it must display the data in spanish.

So please suggest me what i have to do for that.

edit retag flag offensive close merge delete