Will generate an error if LOCALE_PATHS is empty.īy default django-admin makemessages examines everyįile that has the. Message file under the directory listed first in LOCALE_PATHS or A string extractedįrom a file of an app without any locale directory will either go in a That is, a string extracted from a file of an app containing a localeĭirectory will go in a message file under that directory. When you run makemessages from the root directory of your project, theĮxtracted strings will be automatically distributed to the proper message files. It creates (or updates) a message file in theĭirectory locale/LANG/LC_MESSAGES. How Django discovers translations and be sure LOCALE_PATHS The script runs over your project source tree or your application source treeĪnd pulls out all strings marked for translation (see
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |