Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在直接使用 Qt Linguist 进行翻译,但最近,其他无法访问 Qt 的贡献者开始使用其他工具。我们的交换格式是 PO。Qt Linguist 保存带有上下文的 PO 文件,但是当从其他贡献者导入 PO 文件时,这些上下文被剥离。
这个问题很容易解决。在新 PO 文件的标题中,必须存在以下行:
"X-Qt-Contexts: true\n"
这解决了这个问题。