Django

Code

Changeset 1205

Show
Ignore:
Timestamp:
11/12/05 15:33:46 (3 years ago)
Author:
hugo
Message:

updated i18n documentation for the LANGUAGES setting

Files:

Legend:

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

    r1121 r1205  
    427427      (Austrian German) but Django only has ``de`` available, Django uses 
    428428      ``de``. 
     429    * only languages listed in the LANGUAGES setting can be selected. So if you want 
     430      to restrict the language selection to a subset of provided languages (because 
     431      your appliaction doesn't provide all those languages), just set it to a list 
     432      of languages like this:: 
     433 
     434          LANGUAGES = ( 
     435            ('de', _('German')), 
     436            ('en', _('English')), 
     437          ) 
     438 
     439      This would restrict the available languages for automatic selection to German 
     440      and English (and any sublanguage of those, like de-ch or en-us). 
    429441 
    430442Once ``LocaleMiddleware`` determines the user's preference, it makes this