OILSWebLocale adds support for a specific language. Add this variable to the Virtual Host section in /etc/apache2/sites-available/eg.conf.
OILSWebDefaultLocale specifies which locale to display when a user lands on a page in TPAC and has not chosen a different locale from the TPAC locale picker. The following example shows the fr_ca locale being added to the locale picker and being set as the default locale:
PerlAddVar OILSWebLocale "fr_ca" PerlAddVar OILSWebLocale "/openils/var/data/locale/opac/fr-CA.po" PerlAddVar OILSWebDefaultLocale "fr-CA"
Below is a table of the currently supported languages packaged with Evergreen:
Language | Code | PO file |
---|---|---|
Czech | cs_cz | /openils/var/data/locale/opac/cs-CZ.po |
English - Canada | en_ca | /openils/var/data/locale/opac/en-CA.po |
English - Great Britain | en_gb | /openils/var/data/locale/opac/en-GB.po |
*English - United States | en_us | not applicable |
French - Canada | fr_ca | /openils/var/data/locale/opac/fr-CA.po |
Portuguese - Brazil | pt_br | /openils/var/data/locale/opac/pt_BR.po |
Russian | ru_ru | /openils/var/data/locale/opac/ru_RU.po |
*American English is built into Evergreen so you do not need to set up this language and there are no PO files.
Due to Evergreen release workflow/schedule, some language strings may already have been translated in Launchpad, but are not yet packaged with Evergreen. In such cases, it is possible to manually replace the PO file in Evergreen with an up-to-date PO file downloaded from Launchpad.
Analogously, to update the web staff client translations, download the translation template webstaff and copy it to openils/var/template/data/locale/staff.
Changes require web server reload to take effect. As root run the command
service apache2 restart