Mobetta¶
Manage translations in Django projects
Mobetta is a reusable app to manage translation files in Django projects.
It’s inspired on django-rosetta, but takes a more modern approach to problem and adds extra features, such as:
- comments on translations
- edit history
- support for ICU message format with json catalogs
Quickstart¶
Install with pip:
pip install mobetta
Add it to your installed apps:
INSTALLED_APPS = [
...,
'mobetta',
...,
]
Hook up the urls in your root urls.py
:
urlpatterns = [
url(r'^admin/', include(admin.site.urls)), # optional
url(r'^admin/mobetta/', include('mobetta.urls', namespace='mobetta')),
...
]
Run migrate to create the necessary database tables:
python manage.py migrate
Usage¶
Mobetta discovers your translation files with a management command:
python manage.py locate_translation_files
Open localhost:8000/admin/mobetta/ to manage your translations.
Notes¶
How Django loads your translation files¶
See the django translation docs