OILSWebLocale adds support for a specific language. Add this variable to the Virtual Host section in /etc/apache2/eg_vhost.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 |
---|---|---|
Arabic - Jordan | ar_jo | /openils/var/data/locale/opac/ar-JO.po |
Armenian | hy_am | /openils/var/data/locale/opac/hy-AM.po |
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 |
Spanish | es_es | /openils/var/data/locale/opac/es-ES.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