【问题标题】:Is there a way to regenerate PO files from weblate with new formatting?有没有办法用新格式从 weblate 重新生成 PO 文件?
【发布时间】:2018-11-10 15:58:30
【问题描述】:

为了减少 weblate 生成的 PO 文件中合并冲突和无益的大差异的频率,我选择在现有项目上使用“自定义 gettext 输出”插件的“无换行”格式化选项。

这似乎工作正常,但是 nowrap 格式仅适用于已修改的字符串。有没有办法强制 weblate 重新生成 PO 文件中的所有字符串,即使字符串未更改(从而将 nowrap 应用于项目/组件中的每个翻译字符串)?

https://docs.weblate.org/en/latest/admin/addons.html#customize-gettext-output

【问题讨论】:

    标签: python django translation weblate


    【解决方案1】:

    AFAIK 没有简单的方法可以在 Weblate 中实现这一点。但是,您可以轻松地将 --no-wrap 参数添加到 msgmerge (假设您使用它来更新 po 文件)。

    【讨论】:

      猜你喜欢
      • 2012-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-25
      相关资源
      最近更新 更多