Django i18n:翻译没有出现的常见原因 [英] Django i18n: Common causes for translations not appearing

查看:732
本文介绍了Django i18n:翻译没有出现的常见原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个多语种的Django网站。我创建了一个消息文件,填充并编译它。我用我想要的语言(希伯来文)检查了这个网站(在这种情况下是管理员),大多数短语都像希伯来语一样出现,但有些则不会。我检查了源代码,这些仍然显示为 _('Whatever'),就像他们应该的那样,他们也在邮件文件中翻译,是的,我记得做 compilemessages



翻译的一些常见原因不是这样吗?

解决方案

也许翻译的字符串被标记为 fuzzy


I am making a multilingual Django website. I created a messages file, populated and compiled it. I checked the site (the admin in this case,) in my wanted language (Hebrew) and most phrases appear in Hebrew like they should, but some don't. I checked the source and these still appear as _('Whatever') like they should, also they are translated on the messages file, and yes, I remembered to do compilemessages.

What are some common causes for translations not to appear like that?

解决方案

Maybe the translated strings are marked as fuzzy?

这篇关于Django i18n:翻译没有出现的常见原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆