A simple Django app to sanitize the output of makemessages command.
Django Translation Sanitizer
Django Translation Sanitizer is a simple Django app to sanitize the output of
command by disabling fuzzy matching and sorting it's output.
When one first create the
*.po files with the original
makemessages command everything seems
nice -- Django make clean file that one can easily edit via text editor.
The actual "mess" comes after command has been running several times -- when Django tries to match previous translations of a changed original it often fails to do it correctly.
The thing is that it fails silently. It takes enormous amounts of time to find and fix the translation issues django had made.
So instead of changing the previous translations this module simply adds the new ones, leaving everything else untouched.
How to use it
Install the package from PyPI like this:
pip install django-translation-sanitizer
Add "translation_sanitizer" to your INSTALLED_APPS setting like this
INSTALLED_APPS = [ ... 'translation_sanitizer', ]
That's it! Now
makemessagescommand will produce clean, sorted and fuzzy-free output.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-tranlation-sanitizer-0.1.tar.gz (3.1 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for django-tranlation-sanitizer-0.1.tar.gz