开发者

Translate model fields' attributes from a Database with Django?

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.


There are plenty of translation apps out there. I found this blog entry which reviews a few of them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜