17.10. Implementing internationalization

In this section, you will use the internationalization feature to create JSF portlets to run in multiple languages. You will include the text constants and error messages into a properties file used by the JSF components and the business logic.

However, in order to simply illustrate the concept, you will only implement a few constants. Since you already have a properties file created by the portlet project wizard, you will use this same file to include the key-value pairs for this internationalization scenario.

Execute the following steps:

1.
Open the calculator.nl.CalculatorPortletResource.properties file. Include these lines at the end of the file, then save and close it:
page_comment=* Created using ...

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.