I understand, English is de-facto language of the web, and clients rarely need multilingual web apps, but not including gettext in the stock php installed on mac is just silly.

(don’t have wget? brew install wget, don’t have brew? install it!)

We start by downloading latest gettext source, and php source matching stock php version installed on your machine (in terminal type php -v).

Lets make gettext first:

Now lets go to php source:

Don’t make install php, instead copy .so file to your stock php installation:

And inside php.ini enable gettext:

Restart apache:

And you are done!

Leave a Reply

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