Skip to main content

Django app for managing translations from admin

Project description


.. image::
:alt: Travis

.. image::
:alt: Code Health

.. image::
:alt: PYPI

.. image::
:alt: Read the docs

Install package

* use pip to get the package
pip install django-translation-manager

* add 'translation_manager' to INSTALLED_APPS

* add variables from Translation Manager's to your

* add post_save signal to restart webserver:
from translation_manager.signals import post_save as translation_post_save

translation_post_save.connect(restart_server, sender=None)

Supported versions of django

We support all django versions greater or equal 1.8.

Using with django-rq

We support asynchronous translation processing by django-rq.

Set translation processing method in

Inslall django-rq
pip install django_rq

Install django-redis-cache
pip install django-redis-cache

We tested it with django-rq 0.9.1 and django-redis-cache 1.6.5

For configuration django_rq see

Using with Angularjs

We support translation for Angularjs client-site app via REST api

Enable api communication in settings

Enable searching for translation strings in Angularjs source codes

Set path to Anguraljs source code files.

The important thing is that it must be in the same file system.

Configuration example:

Add regex for matching translation strings in client app src files:

Inslall django REST framewrok
pip install djangorestframework

Add translation manager urls in your url patterns
from translation_manager import urls as translation_urls

urlpatterns.append(url(r'^translations/', include(translation_urls)))

We tested it with django-rest-framework 3.4.6

use syncdb
./ syncdb

or migrate:
./ migrate

Load strings from po files
via python shell
./ shell

from translation_manager.manager import Manager

m = Manager()

Add link to translation admin

this is optional in case you need it
{% url admin:translation_manager_translationentry_changelist %}

Known bugs

If you are using different base site you have to register admin to your site.

License note

Django Translation Manager is available under Mozilla Public License 2.0


.. image::

Thank you!

We really appreciate every donation that helps us take Django Translation Manager to the next level.

Project details

Download files

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

Files for django-translation-manager, version 0.5.1
Filename, size File type Python version Upload date Hashes
Filename, size django-translation-manager-0.5.1.tar.gz (44.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page