Skip to main content

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.

You can check pypi for more information.

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

Note

If you have any issue while using the package ... don't hesitate to report it and it will be fixed ASAP. Thank you.

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_translator-1.0.1.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file django_po_translator-1.0.1.tar.gz.

File metadata

  • Download URL: django_po_translator-1.0.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for django_po_translator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cc0cc91a4ded4d9188a1bb97f780fe925bd3f8f7aa49b901e93f443e1bdf2f3d
MD5 1fc69d8a47f24c5dd364b70346c60a4c
BLAKE2b-256 5b879b7210aae947a125a4fe6c388dde9b7db7c88a702643f44067b30ee25b40

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