How does Optiva determine which language to use?

The language in which the object description is displayed is determined by the Session Language.

Example

The browser culture, FR-FR, is in the Optiva Language form. Therefore, the Session Language is the browser culture and the object description is displayed in FR-FR if it is configured; else it defaults object description in the system Default Language.

Browser Culture Language Form Optiva Session Language
FR-FR FR-FR FR-FR

What happens if the browser culture is not in the Optiva Language form? Then, the Session Language is the language that most closely matches the browser culture. In this example, FR-CA is the first language that is closest to the browser language FR. Therefore, the object description is displayed in FR-CA if it is configured; else it defaults object description in the system Default Language.

Browser Culture Language Form Optiva Session Language
FR-BE FR-CA FR-CA

Suppose the browser culture (e.g., IT-IT) and browser language (e.g., IT) are not in the Optiva Language form. Then, the next language in the browser is compared to the Language form.

If the prior steps fail to determine the Session Language, then the default language is used. The default language is specified by the DEFAULTLANGUAGE profile attribute. If you change the profile value, you must include the language code and the region.

To summarize, here is how the default for the language description is determined by Optiva:

  1. Retrieve the description for the Session Language.
  2. Retrieve the description for the default language, if there is no description for the Session Language. The default language is specified by the DEFAULTLANGUAGE profile attribute.