Permalink
Browse files

[docs] extended i18n page language detection

  • Loading branch information...
1 parent a9c6838 commit c3e77c328f3d8dc953477c2283403012d3496075 @Chive Chive committed Feb 27, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/advanced/i18n.rst
View
@@ -39,6 +39,8 @@ Main `urls.py` example::
Language Cookie
***************
+If a user comes back to a previously visited page, the language will be same since his last visit.
+
By default if someone visits a page at `http://www.mysite.fr/` django determines the language as follow:
- language in url
@@ -47,6 +49,9 @@ By default if someone visits a page at `http://www.mysite.fr/` django determines
- language in from browser
- LANGUAGE_CODE from settings
+More in-depth documentation about this is available at
+https://docs.djangoproject.com/en/dev/topics/i18n/translation/#how-django-discovers-language-preference
+
When visiting a page that is only English and French with a German browser, the language from LANGUAGE_CODE will be used.
If this is English, but the visitor only speaks French, the visitor will have to switch the language.
Visiting the same page now again after some time, will show it in English again, because the browser session which was

0 comments on commit c3e77c3

Please sign in to comment.