Django app with updated makemessages command to add automatic translation.
Project description
Add “po_translate” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ..., "po_translate", ]
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" ]
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
Built Distribution
Close
Hashes for django_po_translate-0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c550c3184fb74a78f2fa24c179201a5d6e1729ed8d501ba23b8efa0f592f3fe |
|
MD5 | d362b7953d7f31c6041ba374a987af19 |
|
BLAKE2b-256 | ce8f607c1da429b772ae844fd54841fbbdc6731d5b8ed6a837d79d2428fc340c |