Nemanja Avramović reports that MO files generated by GlotPress sometimes cause weird trailing characters in translated strings.
In particular, he noticed it with the attached MO file when looking up a message like "Our Facebook". When tested with poEdit-generated MO file, everything worked fine.
However, msgunfmt reads it correctly and generates a proper PO file that can then be converted to MO file (with eg. msgfmt) that's identical to the one generated from the source PO file directly.
Since GlotPress-generated MO file is shorter than the one generated with msgfmt, I am suspecting that the optimized hash table is missing and that php-gettext is not handling that case well.
Nemanja Avramović reports that MO files generated by GlotPress sometimes cause weird trailing characters in translated strings.
In particular, he noticed it with the attached MO file when looking up a message like "Our Facebook". When tested with poEdit-generated MO file, everything worked fine.
However, msgunfmt reads it correctly and generates a proper PO file that can then be converted to MO file (with eg. msgfmt) that's identical to the one generated from the source PO file directly.
Since GlotPress-generated MO file is shorter than the one generated with msgfmt, I am suspecting that the optimized hash table is missing and that php-gettext is not handling that case well.