From b1afe75a625c81e974d86010bf1d62168a0638e6 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 25 Aug 2014 00:01:26 +0200 Subject: [PATCH] add language selector, use set_language redirect view from django --- nsupdate/templates/base.html | 21 +++++++++++++++++++++ nsupdate/urls.py | 1 + 2 files changed, 22 insertions(+) diff --git a/nsupdate/templates/base.html b/nsupdate/templates/base.html index 3c565bb..5fc3880 100644 --- a/nsupdate/templates/base.html +++ b/nsupdate/templates/base.html @@ -76,6 +76,27 @@ {% endif %} + diff --git a/nsupdate/urls.py b/nsupdate/urls.py index d8ebfb7..22a44f0 100644 --- a/nsupdate/urls.py +++ b/nsupdate/urls.py @@ -32,6 +32,7 @@ urlpatterns = patterns( # registration and user settings url(r'^account/', include('nsupdate.accounts.urls')), url(r'^admin/', include(admin.site.urls)), + url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^', include('nsupdate.main.urls')), )