django-auto-translator
Autotranslate django .po translation files package built on top of deep-translator
Finds all the generated pot (.po) files under the locale paths (LOCALE_PATHS) specified in django project settings, and translates them automatically with default source language as english.
Install
Install via PIP
pip install django-auto-translator
Add 'django-auto-translator' to your INSTALLED_APPS setting:
INSTALLED_APPS = (
...
'django-auto-translator',
)
Command translate to all languages
python manage.py translate_messages
Option Parameter
-f, --set-fuzzy: Set the 'fuzzy' flag on autotranslated entries-l, --locale 'locale': Only translate the specified locales-u, --untranslated: Only translate the untranslated messages-s, --source-language: Override the default source language (en) used for translation-S, --silent: Don't show the verbose output-t, --throttle: Throttle the maximum of seconds for the next translate request(default=10 sec)
Example:
python manage.py translate_messages -l 'de' -l 'es'
Important Django Language Setting
In your settings, list the relative path to locale folders, example:
LOCALE_PATHS = (
'locale',
'home/locale',
'products/locale',
'services/locale',
)
Credits
Forked from: https://github.com/wmo-raf/django-deep-translator
Artwork Logo from Eypros: https://openclipart.org/artist/Eypros
Metadata
Release files for django-auto-translator 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_auto_translator-0.1.2.tar.gz | 38.7 kB | Without provenance | Details for django_auto_translator-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_auto_translator-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for django_auto_translator-0.1.2-py3-none-any.whl |
Total release size: 59.3 kB
Release files / django_auto_translator-0.1.2.tar.gz
| Download URL | django_auto_translator-0.1.2.tar.gz |
|---|---|
| Size | 38.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f46e99595873071c5e1962c581fd3fff4113747f267501700b826f0c8d996f9
|
|
BLAKE2b-256 checksum How to use checksums |
d5332832cae5f9244f98e274a008c074fae2aef3a4b027f7850509095baa0ffa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / django_auto_translator-0.1.2-py3-none-any.whl
| Download URL | django_auto_translator-0.1.2-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c113be16964f3ffe1fee9171cc0d44abb99f0af4485fdbcdf24f8c6438ae50af
|
|
BLAKE2b-256 checksum How to use checksums |
57632dca61ce7cc3887ed80564a1ef363025b1269f5ac04fad26bd40f683fd48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for django-auto-translator 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.