I’m looking for a solution to have translatable database fields in Django, and the solution needs to be compatible with South.
I already found django-transmeta and transdb. Only the latter seems to be compatible with South, but I’m not sure about that. Also, transdb values don’t look nice in the database (something the customer actually cares about).
Has anybody worked with such a combination? I’m not particaluary focussed on South, but it seems to be the way to go for schema migration in Django.
Because we did know that the number of languages will never change, we switched to having fields for each language and a simple mechanism for automatically reading the correct field for the current language. Our implementation is used like this:
Question().textthen automatically returns the correct field, based on the current language with a fallback to the default language.The implementation behind it should be pretty much self-explaining: