15.9.2 Struts framework internationalization support

You also need to create a new resources file to be used by the Struts framework for internationalization of your portlet preferences such as the portlet title and so on. Execute the following steps:

1. Expand Dynamic Web Projects | MyFirstJSR168Struts | Java Resources | JavaSource | myfirstjsr168struts.nl.

2. Right-click MyFirstJSR168StrutsPortletResource.properties.

3. Select Copy.

4. Right-click the myfirstjsr168struts.nl package.

5. Select Paste.

6. Enter MyFirstJSR168StrutsPortletResource_pt_BR.properties as the new name for the file.

7. Click OK.

8. You do not have to add or change anything in this file, unless you want to change the portlet title for example.

9. Save the file and close the editor.

Redbooks
ibm.com/redbooks