我可以使用如下命令在 vim 中搜索空翻译:
/""\n\n
但我的任务是查找未翻译字符串的数量。任何想法如何使用每个 linux 机器都应该拥有的标准工具来做到这一点(请不要单独的包)。
这是包含 2 个已翻译字符串和 2 个未翻译字符串(长和短变体)的 .po 文件示例。
msgid "translated string"
msgstr "some translation"
msgid "non-translated string"
msgstr ""
msgid ""
"Some long translated string which starts from new line "
"and can last for few lines"
msgstr ""
"Translation of some long string which starts from new line "
"and lasts for few lines"
msgid ""
"Some long NON-translated string which starts from new line "
"and can last for few lines"
msgstr ""