Show TOC

Resource Bundle HoldersLocate this document in the navigation structure

Use

The transformation service inserts a resource bundle object with the right language to every transformer as a parameter before transforming. The parameter name of the transformer is ResourceBundle . When no resource bundle is defined the default transformation service resource bundle will be used.

Implementation

Content developers must create their own class inherited from the TransformersProvider class and overwrite the method getResourceBundle(Locale locale) . This method will be called at run-time before the transformation process is started. The result class must be PropertyResourceBundle . The overwritten method must be in the core section of the PAR. The creation of the localization files/resource bundles is the same as for other PARs using localization

Portalapp.xml file

The only changes from the settings for a simple provider is the class name of the service and the property ResourceBundleName in the service-config section.