The best/recommended way to translate Django database values The best/recommended way to translate Django database values database database

The best/recommended way to translate Django database values


I was reading up on my django extensions, and found the django-modeltranslation plugin. It seems to do exactly what you want it to do.


I also found this small project which purpose is to synchronize localized strings into standard message files for fields of registered models.

Example:

import vinaigrettevinaigrette.register(YourModel, ['name', 'description'])

The standard command

$ manage.py makemessages

Would maintain messages for each distinct values found in registered fields.

I have not had the occasion to try it yet.
But this seems for me to be the simplest way to translate data from db.