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-1.15.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_po_translate-1.15-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_po_translate-1.15.tar.gz
Algorithm Hash digest
SHA256 1e114e450acd8226e6a9ea77db1ba84566887a255c282412d1cf1bccd5a787b4
MD5 b11947dba286bf2c8f7a2f5deb1ce526
BLAKE2b-256 70230f7d586bae208ce3173782ccea265ed507298e5127c2b56f2fb164b1bf51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_po_translate-1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 5038221b41d21c25443cb35589edc1fa41d42f9321732405effb2ac3ceb4bfca
MD5 93cbccc2c067747f8ab3f4a1b35bca97
BLAKE2b-256 0f360cc06045b750375219f3449c9410a893cb1eb1d2ceffd9f4a252471ae6b6

See more details on using hashes here.

Supported by

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