Compile PO files to MO files

During the last days I stumbled upon a problem with my PO files which I got from Transifex – I had to compile them to get MO files for shipping with my WordPress plugin. Google pointed me to the msgfmt tool which I was able to use in my scripts:

msgfmt -o lang.po

That’s one of the things I love about Linux: You got that many things already onboard to make your life easy.


6 thoughts on “Compile PO files to MO files”

Leave a Reply

Your email address will not be published. Required fields are marked *