PDA

View Full Version : language files for centreon 2.x / how to implement?


Wolfgang
06-13-2008, 02:55 PM
On www.centreon.com (http://www.centreon.com/Translations.html) it is possible to download .po files and adapt them to different languages. Is there any documentation how to implement the changed files into centreon (i.e. what has to be done with the .po files: is there a tool to convert and load them into the database , etc.)?

Sylvester
06-13-2008, 07:18 PM
As far as I know, there isn't any documentation yet.
This is what you can do though (examples based on debian using the French messages.po file):
download your messages.po
apt-get install gettext
apt-get install locales-all

mkdir /usr/local/centreon/www/locale/fr_FR/LC_MESSAGES/
cp messages.po /usr/local/centreon/www/locale/fr_FR/LC_MESSAGES/.

msgfmt /usr/local/centreon/www/locale/fr_FR/LC_MESSAGES/messages.po -o /usr/local/centreon/www/locale/fr_FR/LC_MESSAGES/messages.mo

If everything is alright, a messages.mo file should have been generated.
/etc/init.d/apache2 restart

Now, go to the web interface and change your language there. Relog and the text should be displayed in the chosen language, otherwise try to clear your web browser's cache.

Wolfgang
06-15-2008, 01:18 PM
It seems as if something went wrong. I installed gettext but got an error with locales-all (not available but referenced by another package...).
Then I created the directories, copied the file, converted it and restarted apache. After changing the language setting in Administration->My Account I relogged into centreon but I still get the english language instead of german.
Clearing the firefox cache didn't change anything.
I tried with french but no changes there, too.
No messages in the apache logs.

Do I need locales-all?
Any suggestions?

(Ubuntu 8.04, Centreon-SVN)

dom64121
07-03-2008, 08:11 PM
I have follow this indication ( and installed gettext.i386 (0.14.6-4.el5), perl-Locale-gettext.i386 ( 1.05-1.el5.rf), on centos 5 whith yum and its working.

Thanks