Django CMS和Rosetta:无法翻译模板消息 [英] Django CMS and Rosetta: Can't get template messages translated
本文介绍了Django CMS和Rosetta:无法翻译模板消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在有关一起使用Django CMS和Django Rosetta的任何已知问题. 尽管无法在Rosetta界面中正确翻译静态"模板消息,但我无法翻译.
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.
所有动态内容均已正确翻译.只有我在"{%trans'blabla'%}"周围建立的那个无效.
All the dynamic content is correctly translated. Only the one I´ve set up around the `{% trans 'blabla' %} does not work.
推荐答案
陷阱!
只需添加settings.py
Just add in settings.py
LOCALE_PATHS = (BASE_DIR + "/locale/",)
对我有用.
这篇关于Django CMS和Rosetta:无法翻译模板消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文