This does not work well with the example html template code example given
https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#module-
django.conf.urls.i18n
after changing the language from Dutch to English, I am being redirected
to the English page again.
I believe it is the same problem as described here:
http://stackoverflow.com/questions/25548926/change-language-and-its-url-
in-django
Easier for us now seems to use jquery to modify the url in order to switch
languages.
It might be that I am doing something wrong. I am quite capable of doing
that. Cheers!
--
Ticket URL: <https://code.djangoproject.com/ticket/25013>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
There's a warning for the
[https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#django.views.i18n.set_language
set_language()] docs that says: "Make sure that you don’t include the
above URL within `i18n_patterns()` - it needs to be language-independent
itself to work correctly." Did you follow that advice?
--
Ticket URL: <https://code.djangoproject.com/ticket/25013#comment:1>
Comment (by wimfeijen):
Yes, I'm using:
{{{
urlpatterns = patterns("",
url(r'^i18n/', include('django.conf.urls.i18n')),
)
urlpatterns += i18n_patterns('',
("^admin/", include(admin.site.urls)),
# etcetera
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25013#comment:2>
Comment (by claudep):
An example project would be nice.
--
Ticket URL: <https://code.djangoproject.com/ticket/25013#comment:3>
* status: new => closed
* resolution: => needsinfo
* component: Uncategorized => Internationalization
--
Ticket URL: <https://code.djangoproject.com/ticket/25013#comment:4>