Django CMS and Rosetta: Can't get template messages translated

萝らか妹 提交于 2019-12-13 16:52:32

问题


Is there any know issue about using Django CMS and Django Rosetta together. I cant get the "static" template messages translated although it appears correctly translated in the Rosetta interface.

All the dynamic content is correctly translated. Only the one I´ve set up around the `{% trans 'blabla' %} does not work.


回答1:


Gotcha!

Just add in settings.py

LOCALE_PATHS = (BASE_DIR + "/locale/",)

It worked for me.



来源:https://stackoverflow.com/questions/24439031/django-cms-and-rosetta-cant-get-template-messages-translated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!