Django missing translation of some strings. Any idea why?

删除回忆录丶 提交于 2019-12-05 04:11:24

Ugh. Django, you're killing me.

Here's what was happening:

http://blog.e-shell.org/124

For some reason only Django knows, it decided to decorate some of my translations with the comment '# fuzzy'. It seems to have chosen which ones to mark randomly.

Anyway, #fuzzy means this: "don't translate this, even though here's the translation:"

I'll leave this here in case some other poor soul comes across it in the future.

The fuzzy marker is added to the .po file by makemessages. When you have a new string (with no translations), it looks for similar strings, and includes them as the translation, with the fuzzy marker. This means, this is a crude match, so don't display it to the user, but it could be a good start for the human translator.

It isn't a Django behavior, it comes from the gettext facility.

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