Revision history [back]
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.
Specify different How to make language for URL translationtranslation url specific ?
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.
How to make language translation url specific ?
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.