How can I check the validity of a .mo file?

I use PHP to create .mo files from a database and run into some strange problem: some keys work and some don't. I think there is some kind of problem with the generated files. How to check if .mo file is specified correctly?

+6
source share
2 answers

Use msgunfmt , which is the opposite of msgfmt :

 msgunfmt something.mo 

If the .mo file is confused, msgunfmt will complain.

+6
source

polib can open and read .mo files; it’s easy to create a small tool that iterates through the records, which allows you to test them.

0
source

Source: https://habr.com/ru/post/890668/


All Articles