I've done some research and found that django translations don't show up when a string is marked as "fuzzy".

我做了一些研究,发现当字符串被标记为“模糊”时,django翻译不会显示。

However, I haven't been able to find any documentation on whether I can override this behaviour.

但是,我无法找到有关是否可以覆盖此行为的任何文档。

Is there a Django setting that can be used to allow Django (or gettext) to use "fuzzy translations"?

是否有Django设置可用于允许Django(或gettext)使用“模糊翻译”?


I know a lot of the automated translations won't be perfect, but this is for demonstration, development and testing for an open-source product.

我知道很多自动翻译都不是完美的,但这是用于开源产品的演示,开发和测试。

I'd rather have users be able to develop in their own language with "approximate" translations then use that as an incentive to check them off as they go.

我宁愿用户能够使用他们自己的语言开发“近似”翻译,然后将其用作激励,以便随时检查它们。

1 个解决方案

#1


8

It would be unfortunate to show these translations as some of them are most certainly wrong. You are supposed to remove the fuzzy tag when you update the translations and revise the guessed translations that are marked as fuzzy.

显示这些翻译是不幸的,因为其中一些肯定是错误的。您应该在更新翻译时删除模糊标记,并修改标记为模糊的猜测翻译。

However, you may run a tool to quickly delete the fuzzy markers from a .po file: Removing all fuzzy entries of a PO file

但是,您可以运行一个工具来快速删除.po文件中的模糊标记:删除PO文件的所有模糊条目


UPDATE

Here is a great overview of the GNU gettext work-flow: https://www.gnu.org/software/gettext/manual/gettext.html#Overview

以下是GNU gettext工作流程的一个很好的概述:https://www.gnu.org/software/gettext/manual/gettext.html#Overview

It is msgfmt that strips the fuzzy translations. It has an option --use-fuzzy that includes the fuzzy translations.

剥离模糊翻译的是msgfmt。它有一个选项--use-fuzzy,包括模糊翻译。

msgfmt is wrapped by compilemessages django admin command, which since version 1.8 has the --use-fuzzy option too (https://docs.djangoproject.com/en/1.9/ref/django-admin/#compilemessages)

msgfmt由compilemessages django admin命令包装,因为1.8版本也有--use-fuzzy选项(https://docs.djangoproject.com/en/1.9/ref/django-admin/#compilemessages)

更多相关文章

  1. 支持c和python之间的跨语言(c)标记的代码编辑器
  2. ubuntu 16.04 设置选项里面找不到《打印机》和《软件和更新》两
  3. Linux 3.4.39内核编译配置选项介绍
  4. ubi文件系统制作,还是"-c"选项的问题
  5. MYSQL从同一个表中选择标记关联的id
  6. mysqldump的几个主要选项探究
  7. MySql WorkBench“执行查询到文本输出”选项未显示完整结果
  8. 如何在android地图中使用TextWatcher显示带标题的搜索标记并隐藏
  9. 错误”. lang。当使用带有ViewPager的选项卡时,IllegalStateExcep

随机推荐

  1. Angularjs:如何将范围变量传递给指令?
  2. IE 浏览器各个版本 JavaScript 支持情况
  3. 当页面上有多个按钮时,按钮样式在页面加载
  4. 从占用转义字符的字符数组创建字符串
  5. 无法让.click()在禁用的textarea上工作
  6. AJAX应该使用hashtag /#!/或不呢?
  7. Div高度为图像高度,图像宽度为div宽度
  8. 环回 - 在“保存后”挂钩中覆盖之前查看
  9. 获取“RangeError:超出最大调用堆栈大小”
  10. js曲线图+饼状图+柱状图 (json数据)