Hello,

First time poster here, I am using django 1.6 and Python 2.7.2. I am having 
a problem with the l18n functionality and I wondered if anyone could point 
me at a work around.

The problem I am having is that the first time I go to my page the language 
is being stored in the session and I can't see any way to stop this.

I have read the details about the language selection on this page 
https://docs.djangoproject.com/en/1.6/topics/i18n/translation/selection, I 
am just unsure how to override this behavior.

What I want to be able to do is set my browser language preference to 
English and look at the page in English, then change it to French and 
reload it to see the page in French.

I tried using translation.get_language_from_request(request,False) and then 
manually activating the language but that does not seem to do what I 
thoughts as it still returns en when fr is the first entry on my 
accept-language header.

Have anyone else faced this problem?

Cheers,
Dan.


-- 
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 [email protected].
To post to this group, send email to [email protected].
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/c3af72b0-c633-404a-be5e-e4d1a025d6cf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to