You can localize portlet title in two ways: 1) add this to portlet.xml:
| <supported-locale>en</supported-locale> | <supported-locale>it</supported-locale> | <resource-bundle>localizationportlet.nl.LocalizationPortletPortletResource</resource-bundle> | You can put any supported locale that you want, and define a ResourceBundle that must be in the classpath of the portlet (tipically deployed with java src of the portlet) Then you have to add these key to the ResourceBundle that you have defined in portlet.xml | javax.portlet.title=LocalizationPortlet portlet | javax.portlet.short-title= | javax.portlet.keywords= | 2) the second way to do this it to add some tag in portlet.xml like this: | <portlet> | <description xml:lang="en">Test for Localization</description> | <portlet-name>LocalizationPortlet</portlet-name> | <display-name>LocalizationPortlet portlet</display-name> | <display-name xml:lang="en">LocalizationPortlet portlet</display-name> | <portlet-class>localizationportlet.LocalizationPortletPortlet</portlet-class> | ... | Hope that helps you! Bye Luca Forni View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922519#3922519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922519 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
