[1.8.x] Fixed #24503 -- Added docs on LANGUAGE_CODE fallback change in 1.8.

Thanks Pakal and Claude.

Backport of 8219eabbba from master
This commit is contained in:
Tim Graham 2015-03-20 12:06:32 -04:00
parent 2b267a70a1
commit 5cd551409e
1 changed files with 8 additions and 2 deletions

View File

@ -1657,8 +1657,14 @@ It serves two purposes:
* If the locale middleware isn't in use, it decides which translation is served
to all users.
* If the locale middleware is active, it provides the fallback translation when
no translation exist for a given literal to the user's preferred language.
* If the locale middleware is active, it provides a fallback language in case the
user's preferred language can't be determined or is not supported by the Web
site. It also provides the fallback translation when a translation for a
given literal doesn't exist for the user's preferred language.
.. versionchanged:: 1.8
The fallback for translation literals was added.
See :ref:`how-django-discovers-language-preference` for more details.