Enabling Translations

From IHRIS Wiki

Main Languages

As of version 4.0.6 translations for French, Swahili, Portuguese, and Italian are automatically available to the system. These are called locales..

A locale is a language and country/location. The main locales are:

  • French fr_FR
  • Italian it_IT
  • Portuguese pt_PT
  • Brazilian Portuguese pt_BR
  • Swahili sw

Enabling the Locale Selector Module

  • Go to "Configure System"
  • Go to "Configure Modules"
  • Scroll down to "Pages" and click the "Sub-Modules" link
  • Check the checkbox next to "Locale Selector"
  • Scroll to the bottom of the screen and click the "Enable" button

Adding A Locale

  • Go to "Configure System"
  • Go to "Manage Locales"
  • "Add" the locale you want. For example fr_FR or it_IT

Other Languages

Some other languages have only been partially translated. In order to add them to the system, you will need to open a termnial on the server and:

cd /var/lib/iHRIS/lib/4.0/6/I2CE 'path may vary
php ../I2CE/tools/translate_templates.php  --locales=pt_BR
cd ../ihris-common
php ../I2CE/tools/translate_templates.php  --locales=pt_BR
cd ../ihris-manage if you are using iHRIS Manage
php ../I2CE/tools/translate_templates.php  --locales=pt_BR
cd ../ihris-qualify if you are using iHRIS Qualify
php ../I2CE/tools/translate_templates.php  --locales=pt_BR