开发者

How can I check .mo file validity?

开发者 https://www.devze.com 2023-03-13 15:03 出处:网络
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

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 .m开发者_JAVA百科o 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号