| | 87 | |
|---|
| | 88 | cleanup |
|---|
| | 89 | ------- |
|---|
| | 90 | |
|---|
| | 91 | **New in Django development version** |
|---|
| | 92 | |
|---|
| | 93 | Can be run as a cronjob or directly to clean out old data from the database |
|---|
| | 94 | (only expired sessions at the moment). |
|---|
| | 95 | |
|---|
| | 96 | compilemessages |
|---|
| | 97 | --------------- |
|---|
| | 98 | |
|---|
| | 99 | **New in Django development version** |
|---|
| | 100 | |
|---|
| | 101 | Compiles .po files created with ``makemessages`` to .mo files for use with |
|---|
| | 102 | the builtin gettext support. See the `i18n documentation`_ for details. |
|---|
| | 103 | |
|---|
| | 104 | --locale |
|---|
| | 105 | ~~~~~~~~ |
|---|
| | 106 | |
|---|
| | 107 | Use the ``--locale`` or ``-l`` option to specify the locale to process. |
|---|
| | 108 | If not provided all locales are processed. |
|---|
| | 109 | |
|---|
| | 110 | Example usage:: |
|---|
| | 111 | |
|---|
| | 112 | django-admin.py compilemessages --locale=br_PT |
|---|
| | 390 | |
|---|
| | 391 | makemessages |
|---|
| | 392 | ------------ |
|---|
| | 393 | |
|---|
| | 394 | **New in Django development version** |
|---|
| | 395 | |
|---|
| | 396 | Runs over the entire source tree of the current directory and pulls out all |
|---|
| | 397 | strings marked for translation. It creates (or updates) a message file in the |
|---|
| | 398 | conf/locale (in the django tree) or locale (for project and application) |
|---|
| | 399 | directory. After making changes to the messages files you need to compile them |
|---|
| | 400 | with ``compilemessages`` for use with the builtin gettext support. See the |
|---|
| | 401 | `i18n documentation`_ for details. |
|---|
| | 402 | |
|---|
| | 403 | .. _i18n documentation: ../i18n/#how-to-create-language-files |
|---|
| | 404 | |
|---|
| | 405 | --all |
|---|
| | 406 | ~~~~~ |
|---|
| | 407 | |
|---|
| | 408 | Use the ``--all`` or ``-a`` option to update the message files for all |
|---|
| | 409 | available languages. |
|---|
| | 410 | |
|---|
| | 411 | Example usage:: |
|---|
| | 412 | |
|---|
| | 413 | django-admin.py makemessages --all |
|---|
| | 414 | |
|---|
| | 415 | --locale |
|---|
| | 416 | ~~~~~~~~ |
|---|
| | 417 | |
|---|
| | 418 | Use the ``--locale`` or ``-l`` option to specify the locale to process. |
|---|
| | 419 | |
|---|
| | 420 | Example usage:: |
|---|
| | 421 | |
|---|
| | 422 | django-admin.py makemessages --locale=br_PT |
|---|
| | 423 | |
|---|
| | 424 | --domain |
|---|
| | 425 | ~~~~~~~~ |
|---|
| | 426 | |
|---|
| | 427 | Use the ``--domain`` or ``-d`` option to change the domain of the messages files. |
|---|
| | 428 | Currently supported: |
|---|
| | 429 | |
|---|
| | 430 | * ``django`` for all ``*.py`` and ``*.html`` files (default) |
|---|
| | 431 | * ``djangojs`` for ``*.js`` files |
|---|
| | 432 | |
|---|
| | 433 | --verbosity |
|---|
| | 434 | ~~~~~~~~~~~ |
|---|
| | 435 | |
|---|
| | 436 | Use ``--verbosity`` or ``-v`` to specify the amount of notification and debug |
|---|
| | 437 | information that ``django-admin.py`` should print to the console. |
|---|
| | 438 | |
|---|
| | 439 | * ``0`` means no output. |
|---|
| | 440 | * ``1`` means normal output (default). |
|---|
| | 441 | * ``2`` means verbose output. |
|---|
| | 442 | |
|---|
| | 443 | Example usage:: |
|---|
| | 444 | |
|---|
| | 445 | django-admin.py makemessages --verbosity=2 |
|---|