I'm using PHP to make .mo files out of the database and have run into a strange problem: some keys work, some don't. I think there is some kind of a problem with the generated files. How can I check, whether a .mo file is correct?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top