Django

Code

Changeset 833

Show
Ignore:
Timestamp:
10/11/05 07:12:13 (3 years ago)
Author:
hugo
Message:

i18n: clarified some points about app-specific translations

Files:

Legend:

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

    r788 r833  
    292292are used by gettext. 
    293293 
     294Application message files are a bit complicated to discover - they need the 
     295i18n middleware to be found. If you don't use the middleware, only the 
     296django message files and project message files will be processed. 
     297 
     298Additionally you should think about how to structure your translation 
     299files. If your applications should be delivered to other users and should 
     300be used in other projects, you might want to use app-specific translations. 
     301But using app-specific translations and project translations could produce 
     302weird problems with make-messages: make-messages will traverse all directories 
     303below the current path and so might put message IDs into the project 
     304message file that are already in application message files. Easiest way 
     305out is to store applications that are not part of the project (and so carry 
     306their own translations) outside the project tree. That way make-messages 
     307on the project level will only translate stuff that is connected to your 
     308explicit project and not stuff that is distributed independently. 
     309 
    294310Specialities of Django Translation 
    295311==================================