Translate Django PO files and resolve fuzziness with ease.
Project description
django-po-translator
Django package allows you to translate PO files automatically and fix all the fuzziness in your files ... with only one command
The package will detect all your PO files and translate or fix them based on the file language ... without any interaction by you.
Installation
Install the package
pip install django-po-translator
Add the package to your installed apps
INSTALLED_APPS = [
...,
'django_po_translator',
...
]
Important steps
Make sure your app is ready to support localization ... you should have locale folder in the root of your project and all related settings are added.
How to use the package?
- After installing the package and making sure that all is looking fine
- Run
python manage.py translate
Extra arguments will be mentioned down - You will need to compile messages to reflect the new translations
- Enjoy :)
po-translator command arguments
- --translate-existed: This argument will allow the command to translate the already existed translation .. use it carefully .. as it will override all your existing translations
- --resolve-fuzzy: This argument will resolve all fuzzy translations in your po file
Ex: python manage.py translate --translate-existed --resolve-fuzzy
Tests
To run tests python manage.py test django_po_translator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django_po_translator-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d9cda6836fec8fad3716482a24798fedb5ebca72a6943844d70ac1c2fdb8e3c |
|
MD5 | 2816d8675d3721dcf8685c7f3fed9935 |
|
BLAKE2b-256 | f9d047f4de95bd909fe7d3fe426583d8dad0a592c04b7ee79fcfa83f1da3b974 |