Django

Code

Changeset 955

Show
Ignore:
Timestamp:
10/19/05 09:53:07 (3 years ago)
Author:
hugo
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/i18n/docs/translation.txt

    r934 r955  
    166166This would jump to the same page you came from and pass the django_language 
    167167variable. This is used in discovery of languages, as described in the next 
    168 chapter. 
     168chapter. Of course this can only work if your rendering context contains 
     169the LANGUAGE_CODE and LANGUAGES variables. If you use DjangoContext as 
     170your rendering context, they are automatically defined. If you use the 
     171simpler Context class, you need to pass them along from request.LANGUAGE_CODE 
     172and settings.LANGUAGES themselve. 
    169173 
    170174How the Language is Discovered