Hi,
I've got a django site which uses the built in view to change the users
language:
urls.py: (r'^i18n/', include('django.conf.urls.i18n')),
template:
<div id="lang">
<form action="/i18n/setlang/" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="" />
{% for lang in LANGUAGES %}
{% ifequal lang.0 "de" %}
<input type="image" width="20"
src="{{STATIC_IMAGES_URL}}de.jpg" name="language" value="{{ lang.0 }}" />
{% else %}
<input type="image" width="20"
src="{{STATIC_IMAGES_URL}}en.jpg" name="language" value="{{ lang.0 }}" />
{% endifequal %}
{% endfor %}
</form>
</div>
This works with Chrome, Firefox and Safari, but not with Internet
Explorer (tested version 6, 8 and 9). Every time I hit the link, it just
does not change the language.
It seems that IE does not set the cookie.
To check this, I tried to login in into the admin. This works, but there
seems not to be set a cookie either (I cant find one in the folder).
How is the session_id set with setlang and admin and why does it work in
the admin, but not in setlang?
Hoping for help
Thomas
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.