How to I mark an empty translation (msgstr) as translated in po gettext files?

后端 未结 3 1258
天涯浪人
天涯浪人 2021-02-08 02:11

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 ha

3条回答
  •  礼貌的吻别
    2021-02-08 03:11

    I have had the same problem for a long time, and I actually don't think you can at all. My best option was to insert a comment so I could mark it "translated" from there:

    # No translation needed / Translated
    msgid "This is a string"
    msgstr ""
    

    So far, it's been by best workaround :/ If you do end up finding a way, please post!

提交回复
热议问题