【发布时间】:2019-01-25 03:26:12
【问题描述】:
我有一个 Django 应用程序,我愿意在其中翻译 Django CMS 中出现的应用程序名称。
Models are translated but not app names
正如我所搜索的,我发现对于我添加到应用程序的每个应用程序,我必须将 verbose_name 添加到 apps.py 中的 AppConfig 类:
class CoreConfig(AppConfig):
name = 'core'
verbose_name = _("core")
但是在我 makemessage 和 compilemessage 之后它不会改变 cms 中的任何内容。
即使我删除这个类没有任何改变,框架也不会产生
Django 版本:2.0.3
有什么线索吗?
【问题讨论】:
标签: python django content-management-system translation