15.9. Adding internationalization support
As you are already using the Struts tags to show messages, adding support to other languages is a straightforward task.
Note: In this scenario, only View mode will be enabled for internationalization. Edit mode can also be implemented in the same manner but we are not doing it here.
Figure 15-33 on page 503 shows the resource files that you need to add and update to support internalization in your portlet. You will add internationalization support for View mode only and therefore for other modes (such as Edit mode) and the Struts framework will use the default values. That is, keys that are not found in the locale properties files will be taken from the file with no suffix. In this scenario, key values ...
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.