+

Search Tips   |   Advanced Search

Dynamically changing the language during the user session

Allow users to change the language while they are logged in to the portal. If we want the users to be able to change the language during the session, use the following command provided by HCL WebSphere Portal:

where language is the two character code for the required language, such as en, de, or fr. For a list of the available languages and their two character codes read Language support. For users to be able to dynamically change the language for the session, add a link to the portal theme with the following text and link reference:

Users can then click this link to change to the language specified by the locale parameter with the command. If we want to make more than one language available to users, you create a separate link for each language.

Example: To create links for English and German, add the lines shown in the following example to the banner area of the theme:

The banner area can be defined in different files, depending on the different themes. Themes in recent portal versions commonly define the banner area within the Default.jsp, whereas older themes can include a separate JSP, such as banner_toolbar.jsp. For more information about locating the files for the themes refer to the topic about the Location of theme resources.Notes:

Parent topic: Language support

References: