Translate model fields' attributes from a Database with Django?
Posted
by Luiz C.
on Stack Overflow
See other posts from Stack Overflow
or by Luiz C.
Published on 2010-03-11T14:19:30Z
Indexed on
2010/03/11
20:04 UTC
Read the original article
Hit count: 263
django
|translation
I'm trying to create a Model that has fields that have the following attributes translatable: verbose_name and choices. I can easily do this by tagging the strings and using the i18l middleware. The problem is that I don't want to define the translation in po/mo files. Is there a way to pull this data from a database table? If so, any examples?
There are some options out there that offer model content translation. That is not my case. I need to translate the verbose_name, choices and error_messages from database.
© Stack Overflow or respective owner