How can I check .mo file validity? How can I check .mo file validity? php php

How can I check .mo file validity?


Use msgunfmt, which is the opposite of msgfmt:

msgunfmt something.mo

If the .mo file is messed up, msgunfmt will complain.


polib can open and read .mo files; it should not be difficult to create a small tool that iterates through the entries, allowing you to verify them.