O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required