A nice simple solution for this:

sudo apt-get install php-gettext