Skip to content

Translate Django models without changing anything to existing applications and their underlying database.

License

Notifications You must be signed in to change notification settings

larsc/django-datatrans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-datatrans
================

By Jef Geskens; City Live nv

FEATURES
--------

* Translate Django models without changing anything to existing applications and their underlying database.
* Uses a registration approach.
* All translations are stored in one extra lookup table. Existing database tables remain untouched.
* Recovery and cleanup of obsolete translations.
* Translation admin interface included (uses CSS from django admin).
* Transparent model API (in 99% of all cases, nothing has to be changed to original code).

HOW TO USE
----------

1. Add it to INSTALLED_APPS
2. Syncdb
3. Register models (example for FlatPage model):

    from datatrans.utils import register

    class FlatPageTranslation(object):
        fields = ('title', 'content',)

    register(FlatPage, FlatPageTranslation)

4. Include the datatrans.urls in your urlconf somewhere, and point your browser to it!
5. Translate away!

About

Translate Django models without changing anything to existing applications and their underlying database.

Resources

License

Stars

Watchers

Forks

Packages

No packages published