i18n for php

Good example can be found. http://www.onlamp.com/pub/a/php/2002/06/13/php.html Install homebrew download the tools execute them /usr/local/opt/gettext/bin/msgfmt messages.po