Skip to content

Translations kit for Centreon - Please contribute to translate.centreon.com

Notifications You must be signed in to change notification settings

Itiho/centreon-translations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Centreon translation for Centreon web UI

Introduction

Centreon is one of the most flexible and powerful monitoring softwares on the market; it is absolutely free and Open Souce (released under GNU General Public License version 2, see LICENSE file).

This software requires Centreon Engine and Centreon Broker to be operational.

Quick links

How to participate in the translation of Centreon

  1. First clone this git project on github:
  2. Select your major version of Centreon web:
  3. Use existing language directory or create new one

Create new language directory

  1. Create your language directory based on only chars. for example 'uk', 'fr' for French, 'es' for Spanish, etc.
  2. Create a sub directory 'LC_MESSAGES'
  3. Paste message.pot and help.pot from root directory in this one and rename them as message.po and help.po
  4. Edit file using a PO editor and start translation
  5. Commit your work
  6. Send us a pull request

Start with existing old translation files

You can use an old (Centreon web 2.6 translation in progress).

  1. Checkout files from '2.6' branch
  2. Merge this translation with pot files using commands:
$ msgmerge old_messages.po messages.pot -o /messages.po
$ msgmerge old_help.po help.pot -o  /help.po 

Use existing language directory

If translation files already exist, just continue to translation missing string:

  1. Edit file using a PO editor and start translation
  2. Commit your work
  3. Send us a pull request

Use a translation

If you want to translate your Centreon Web UI you have to donload translation files and install them:

  1. First clone this git repo to your server using command:
$ git clone https://github.com/centreon/centreon-translations.git
  1. And select your major version of Centreon web:
$ git branch -r
$ git checkout -b \
  1. Create the local directory for Centreon Web UI:
$ mkdir -p /usr/share/centreon/www/locale/`locale | grep LC_MESSAGES | cut -d \" -f 2 | cut -d \. -f 1`/LC_MESSAGES

Replace '/usr/share/centreon' by installatino dir of your Centreon Web UI.

  1. Compile and install your language files:
$ msgfmt message.po -o /usr/share/centreon/www/locale/`locale | grep LC_MESSAGES | cut -d \" -f 2 | cut -d \. -f 1`/LC_MESSAGES/message.mo
$ msgfmt help.po -o /usr/share/centreon/www/locale/`locale | grep LC_MESSAGES | cut -d \" -f 2 | cut -d \. -f 1`/LC_MESSAGES/help.mo
  1. Restart Apache:
$ service httpd restart
  1. Edit your profil on Centreon Web UI and select language.

About

Translations kit for Centreon - Please contribute to translate.centreon.com

Resources

Stars

Watchers

Forks

Packages

No packages published