Specify different language for URL translation
 

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anonymous user
asked 12 years ago
todofixthis's avatar
1.3k
todofixthis
updated 12 years ago

Comments

see more comments