title: Django language switch not working
body: <p>I would like to translate URL prefix and also URL slug using django-modeltranslation where slug is saved inside database table. After switching the language i would like to stay on the same page and just change the language. I'm using form language switcher as described here:</p>
  
  <p><a href="http://docs.djangoproject.com/en/dev/topics/i18n/translation/#the-set-language-redirect-view" rel="nofollow">http://docs.djangoproject.com/en/dev/topics/i18n/translation/#the-set-language-redirect-view</a></p>
  
  <p>Problem is that the language is just switching on homepage. The other pages are just refreshed without language and URL change. </p>
  
  <p>Is there any way how can i get current url in other language?</p>
  
  <p>In root project urls.py i have following:</p>
  
  <pre><code>urlpatterns = patterns('',
     # Examples:
     (r'^i18n/', include('django.conf.urls.i18n')),
     url(r'^$', 'portfolio.views.home', name='home'),
     # url(r'^blog/', include('blog.urls')),
     url(r'^admin/', include(admin.site.urls)),
  )
  
  urlpatterns += i18n_patterns('',
      url(_(r'^projects/'), include('projects.urls', namespace='projects')),
  )
  </code></pre>
  
  <p>in app called projects i have urls :</p>
  
  <pre><code>urlpatterns = patterns('',
      url(r'^$', all_projects, name='projects'),
      url(r'^(?P&lt;slug&gt;[\w-]+)/$', project_detail, name='project_detail'),
  )
  </code></pre>