Setup:Language
From Wiki Centreon
This section explains how to add a language to your Centreon's interface. The procedure is based on a Debian installation, so make sure to download the specific packages of your distribution.
Contents |
Prerequist installation
First of all, you would need the gettext tool:
Installing gettext on a Debian (Ubuntu...) distribution:
$> apt-get install gettext
Installing gettext on a Red Hat (Fedora...) distribution:
$> yum install gettext
Then, get the precompiled local data for your system, this installation isn't necessary for Red Hat distributions (Fedora for example):
$> apt-get install locales
Installing a translation file
Languages files are available on our website, you can install them directly (see the following part "How to install a *.mo file"). If you want to install a svn version of a language file, you must compile them (see "How to compile a *.po file" chapter).
How to compile a *.po file
Before you start installing your language, you must know the encoding type: UTF-8, ISO-8859-1, that is used on your system.... In order to do that, type:
$> locale
Keep value for LC_MESSAGES, in our case it is fr_FR.UTF-8.
Now, you can start compiling your file messages.po. This is what you have to do assuming that you want to install French on Centreon: Create a new directory in /www/locale/ :
$> mkdir /usr/local/centreon/www/locale/fr_FR.UTF-8/ $> mkdir /usr/local/centreon/www/locale/fr_FR.UTF-8/LC_MESSAGES/
The name of the directory is very important, it has to be the language_country code. For French it's fr_FR.UTF-8, for Spanish it would be es_ES. It may also be necessary on some systems (Ubuntu) to add the charset code like fr_FR.UTF-8 or fr_FR.ISO-8859-1.
Compile the messages.po file :
$> msgfmt messages.po -o /usr/local/centreon/www/locale/fr_FR.UTF-8/LC_MESSAGES/messages.mo
How to install a *.mo file
Move your *.mo file on the following path (you must create the directory of the language if it doesn't exist).
$> mv messages.mo /usr/local/centreon/www/locale/fr_FR.UTF-8/LC_MESSAGES/messages.mo
Restart your Apache server after your messages.mo file is generated:
$> /etc/init.d/apache2 reload
User configuration in Centreon
Now, in the user configuration page of Centreon, you should be able to choose fr_FR.


