Skip to main content

Upload Python Package

django-deep-translator 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)

Source distribution for django-auto-translator 0.1.2
File Size Uploaded
django_auto_translator-0.1.2.tar.gz 38.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-auto-translator 0.1.2
File Interpreter ABI Platform
django_auto_translator-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page