1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| django-admin.py makemessages --help
Runs over the entire source tree of the current directory and pulls out all stri
ngs marked for translation. It creates (or updates) a message file in the conf/l
ocale (in the django tree) or locale (for project and application) directory.
Options:
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
-l LOCALE, --locale=LOCALE
Creates or updates the message files only for the
given locale (e.g. pt_BR).
-d DOMAIN, --domain=DOMAIN
The domain of the message files (default: "django").
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,
2=all output
-a, --all Reexamines all source code and templates for new
translation strings and updates all message files for
all available languages.
-e EXTENSIONS, --extension=EXTENSIONS
The file extension(s) to examine (default: ".html",
separate multiple extensions with commas, or use -e
multiple times)
--version show program's version number and exit
-h, --help show this help message and exit |
Partager