有没有办法用新的格式从 weblate 重新生成 PO 文件?

Is there a way to regenerate PO files from weblate with new formatting?

为了减少合并冲突的频率和 weblate 生成的 PO 文件中无益的大差异,我选择在现有项目上使用 "Customize gettext output" 插件的 "no wrap" 格式化选项。

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

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

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