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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75055557f00095a314081923dd3824df3180ca7ee381af09f1f5fd687e45b48c |
|
MD5 | e31f53b54863d437d65089007854ac1d |
|
BLAKE2b-256 | ad0daab8784f206dba24e99c2d08521499be856c4e9d97320bc9e543dd88304c |
File details
Details for the file django_po_translate-0.15-py3-none-any.whl
.
File metadata
- Download URL: django_po_translate-0.15-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8bdc2f2e62711784dc72e7600e0857e20df2118a3dd30081e51caf1833b326 |
|
MD5 | 19f32d751145d2a6c008f3e8dcb66b79 |
|
BLAKE2b-256 | cf2f9365bb32981504898867c0f995c463793836de4ba4e9dba01a41314c7ea0 |