12.4. Dynamically changing the language

If you want users to be able to dynamically change the language during the session, you can use the following command provided by WebSphere Portal:

Example 12-10. Changing the language during the session
<wps:url command="ChangeLanguage">
   <wps:urlParam name="locale" value="language"/>
</wps:url>

where language is the code representation of the language that you want to be available in your portal. The 12.10, “Dynamically changing the language” on page 411 shows how to add links to the portal theme to change to different languages in one click.

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.