Skip to main content

Django app with updated makemessages command to add automatic translation.

Project description

  1. Add “po_translate” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        "po_translate",
    ]
  2. If you already have a makemessges command defined somewhere in your application, remove your command or specify the po_translate application on top of it like this:

    INSTALLED_APPS = [
        ...,
        "po_translate",
        "app"
    ]
  3. Run the command as usual:

    python manage.py makemessages -l en -d django

If your .po file contains lines without translation, then the translation of the specified locale will be added to them

4.If you do not want translation to be added, run the command with the -no–translate switch:

python manage.py makemessages -l en -d django --no-translate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_po_translate-0.15.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

django_po_translate-0.15-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file django_po_translate-0.15.tar.gz.

File metadata

  • Download URL: django_po_translate-0.15.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for django_po_translate-0.15.tar.gz
Algorithm Hash digest
SHA256 75055557f00095a314081923dd3824df3180ca7ee381af09f1f5fd687e45b48c
MD5 e31f53b54863d437d65089007854ac1d
BLAKE2b-256 ad0daab8784f206dba24e99c2d08521499be856c4e9d97320bc9e543dd88304c

See more details on using hashes here.

File details

Details for the file django_po_translate-0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for django_po_translate-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3c8bdc2f2e62711784dc72e7600e0857e20df2118a3dd30081e51caf1833b326
MD5 19f32d751145d2a6c008f3e8dcb66b79
BLAKE2b-256 cf2f9365bb32981504898867c0f995c463793836de4ba4e9dba01a41314c7ea0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page