how to install ubuntu php-gettext
PHP Gettext on Ubuntu. Leave a reply. Gettext, is a set of GNU tools to help packages manage multi-lingual messages in their applications. The Gettext PHP extension translates a natural language message into the userâs language, by looking up the translation in a message catalog.This post will provide a tutorial on how to install the gettext extension and a working example under Ubuntu.Preparing the environment. We are going to consider that PHP and Apache are already installed. 1  Install the PHP Gettext extension.2  Restart the Apache server: 3  Install PoEdit. 4  PoEdit is a tool needed for creating and maintaining the language catalogues.isting the installed locales: which will produce something like: Is important to use the locale in the php script exactly as listed, for example if we need en US, then based on the above output, we are going to use in the php script: âen_US.utf8â. Open PoEdit and create the messages catalogue bye choosing.