How to convert .po to .mo files via CentOS command line?

Viewed 19030

I have .po and .mo files in my CentOS server. After I use vi to edit the .po file, is there a way that I can convert it to .mo through the command line?

P.S. please consider CentOS, thanks.

2 Answers

In CentOS

sudo yum install gettext

And then

msgfmt messages.po -o messages.mo
Related