Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

gettext

po

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.

like image 467
sorin Avatar asked Dec 07 '12 09:12

sorin


1 Answers

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.

like image 195
sorin Avatar answered Sep 30 '22 02:09

sorin