Cocoon translations in XSP

Cocoon translations in XSP – java

 
XMLResourceBundle translationBundle = null; 
XMLResourceBundleFactory bf = (XMLResourceBundleFactory)manager.lookup(XMLResourceBundleFactory.ROLE);
 
translationBundle = (XMLResourceBundle)bf.select("/opt/tomcat/webapps/project/translations", "translations", <util:get-sitemap-parameter name="locale"/>);
String translated = translationBundle.getString("Go get the String");