Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

linux

centos

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.

like image 416
Joe Huang Avatar asked Mar 10 '16 10:03

Joe Huang


1 Answers

In deb based distros: apt-get install gettext

I assume there's something similar in centos.

Then can use:

msgfmt messages.po -o messages.mo
like image 147
themullet Avatar answered Oct 04 '22 16:10

themullet