Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple Django app to automatically translate the pot (`.po`) files generated by django's makemessages command using google translate.

Project Description

A simple Django app to automatically translate the pot (.po) files generated by django’s makemessages command using google translate.


pip install dj-translate

Add 'autotranslate' to your INSTALLED_APPS setting.



python makemessages --no-wrap --no-location --no-obsolete

python translate_messages

The command finds all the generated pot (.po) files under the locale paths (LOCALE_PATHS) specified in django project settings, and translates them automatically.


  1. -f, --set-fuzzy: Set the ‘fuzzy’ flag on autotranslated entries
  2. -l, --locale 'locale': Only translate the specified locales
  3. -u, --untranslated: Only translate the untranslated messages
python translate_messages -l 'de' -l 'es'


  1. Use a google translation - Web scrapper (Not recomm):
  1. Use a Google API based Translation Service:
# default: ''
# pip install google-api-python-client
GOOGLE_TRANSLATE_KEY = '<google-api-key>'

Edit translation strings:

Add an URL entry to your project’s, for example:

from django.conf import settings

if 'autotranslate' in settings.INSTALLED_APPS:
    urlpatterns += [
        url(r'^autotranslate/', include('autotranslate.urls')),

Login as admin:

Nevigate to :
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dj-translate-1.0.4.tar.gz (114.8 kB) Copy SHA256 Checksum SHA256 Source Oct 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting