Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To extend the EDS for an additional language add the language to the langBundles variable in idpselect_config.js by adding an entry for the appropriate language (for instance "gd" or "fr-ca").   You can modify the language bundle that is shipped with the EDS in the same way.

...

From then on all language lookup is done

  1. First from the entire supplied language. (e.g. "fr-ca").  The search is done first in your configured bundles and then the provided bundles.

  2. Then from the 'major language' ("fr")

  3. Then from the default language as configured into the EDS.

This mechanism is used:

  • For the language bundle which describes the static text displayed in the browser. If a required message doesn't exist having followed all three of these options then an error is displayed; this is a configuration error since the language bundles must contain all the messages for the default language.

  • For the IdP Display Name. If an IdP does not have a display name in any of these languages then its entityID is used.

  • For the IdP Logo. If an IdP does not have a logo in the browser language or 'major language' then a logo with no language is chosen. If none of these is present then a logo with the default language is chosen. If there is still no logo, then the defaultLogo is used. Note that the size of the logo is used to determine choice, but this is secondary to the language-driven choice.