【发布时间】:2013-01-25 14:45:21
【问题描述】:
我可以使用如下命令在 vim 中搜索空翻译:
/""\n\n
但我的任务是找出未翻译字符串的数量。任何想法如何使用每个 linux 机器都应具有的 标准 工具(请不要单独的包)。
这里是 .po 文件的示例,其中包含 2 个已翻译字符串和 2 个未翻译字符串(长变体和短变体)。
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 ""
【问题讨论】: