如何将空翻译(msgstr)标记为po gettext文件中翻译的? [英] How to I mark an empty translation (msgstr) as translated in po gettext files?

查看:167
本文介绍了如何将空翻译(msgstr)标记为po gettext文件中翻译的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现该字符串(msgid)的翻译为空,所有gettext工具都会将该字符串视为未翻译.

I found that is the translation for a string (msgid) is empty all gettext tools will consider the string as untranslated.

是否有解决方法?我确实想要一个空字符串作为此项的翻译.

Is there a workaround for this? I do want to have an empty string as the translation for this item.

推荐答案

由于这似乎是gettext规范中的一个重大设计缺陷,因此我决定使用: 这些字段中的Unicode Character 'ZERO WIDTH SPACE' (U+200B).

As this seems to be a big design flaw in the gettext specification, I decided to use: Unicode Character 'ZERO WIDTH SPACE' (U+200B) inside these fields.

这篇关于如何将空翻译(msgstr)标记为po gettext文件中翻译的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆