In this recipe, we will modify the portlet to use property files for user interface text and create a German language version of them so that we can switch to the German locale and see the appropriate text displayed in the portlet.
The following are required for this recipe:
HelloWorldPortletproject from the Creating a portlet with the Portlet 2.0 Specification recipe
To recognize the locale being used in the portal, and to support internationalized messages, do the following:
<supported-locale>en</supported-locale> <supported-locale>de</supported-locale> <resource-bundle>gatein.cookbook.chapter6.HelloWorldPortlet</resource-bundle> ...