Django's manage.py makemessages function can be used with the option --all (or -a), which makes po files for all the locales that have been previously given to makemessages as -l options. Does anyone know where does makemessages get this list? I know it's not from the LANGUAGES tuple in the project settings module because locale folders for languages in there only show up after I explicitly add them at least once with makemessages -l <locale>
.
it does take the locales from LANGUAGES
in settings.py
if you makemessages -all
or makemessages -a
, it creates locale folders for ALL languages which are given in LANGUAGES
Quote from docs:
Use the --all or -a option to update the message files for all available languages.
in Django, as far as I know, all available languages
can be only given thru LANGUAGES
in settings.py
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.