1
0
mirror of https://github.com/django/django.git synced 2025-04-21 15:54:37 +00:00

i18n: added a note on DjangoContext vs. Context with regard to LANGUAGES and LANGUAGE_CODE

git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Georg Bauer 2005-10-19 14:53:07 +00:00
parent 040462f61b
commit 6a25843fb1

View File

@ -165,7 +165,11 @@ look like this::
This would jump to the same page you came from and pass the django_language
variable. This is used in discovery of languages, as described in the next
chapter.
chapter. Of course this can only work if your rendering context contains
the LANGUAGE_CODE and LANGUAGES variables. If you use DjangoContext as
your rendering context, they are automatically defined. If you use the
simpler Context class, you need to pass them along from request.LANGUAGE_CODE
and settings.LANGUAGES themselve.
How the Language is Discovered
==============================