Django Book 翻译
菜单>:
TOC
返回
原文:
Always use lazy translations in Django models (otherwise they wont be translated correctly on a per-user basis). And its a good idea to add translations for the field names and table names, too. This means writing explicit ``verbose_name`` and ``verbose_name_plural`` options in the ``Meta`` class:
翻译:
在Django模型中最好一直使用惰性翻译(除非这样翻译的结果无法正确地显示)。同时,对于列名和表名最好也能进行翻译。这需要在 ``Meta`` 中明确 ``verbose_name`` 和 ``verbose_name_plural`` 的值:
备注:
译者: