Internationalization

Prepare server by installing additinal packages:

yum install -y perl-Locale-PO


Update locale files

- run from root
/opt/sarch/conf/bin/locale/make_locale

- commit all files (*.po, *.mo, *.json) from:
/opt/sarch/conf/etc/locale/*
/opt/sarch/sdi/html/locale/*


Add new language
- in api/lib/php/i18n.php add new language to return of getLanguageList() method
ex:
"en_US" => array(
	"name" => "English",
    "direction" => "ltr"
)
- in /opt/sarch/conf/bin/locale/make_locale add new language
ex: createLocale "en_US" "admin"
- run steps from "Update locale files"


Edit language
- for editing .po language files you can use Poedit http://poedit.net/
- run steps from "Update locale files"


detailed instruction for the customers may be found here: https://docs.google.com/document/d/1HqouJO7Ry5bxUTmJY9e8N2cTQpYEGEN0PUf4-vO1cG8/edit#
