User Tools

Site Tools


newdevs:i18n

This is an old revision of the document!


New Developers Working Group

Internationalization

Evergreen translation files are stored in Launchpad.

Evergreen manages translation files through POEditor.

Angular Internationalization

Example of a patch that adds new strings:

How to Enable Evergreen Language Selector

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"

Language Selector Tips

  • When selecting a language on one screen, it affects other areas of Evergreen. Ex: Changing the selector to Spanish in the OPAC will also cause the staff side to show Spanish.
  • When changing languages, it's best to refresh your browser and clear your browser cache.

Things to add to this page:

newdevs/i18n.1694189590.txt.gz · Last modified: 2023/09/08 12:13 by tmccanna

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.