<img src="//bat.bing.com/action/0?ti=5129185&amp;Ver=2" height="0" width="0" style="display: none; visibility: hidden;">

Custom Translation - IBM WCM

Exporting and importing content for translation in multilingual websites using IBM WCM

Building multilingual websites in IBM WCM where the content in translated from the base site involves the exporting of content (typically English) and importing the translated content (typically non-English) back into WCM.

This process typically involves creating a content feed that complies with the Really Simple Syndication (RSS) 2.0 and is made possible through the use of Web Content Integrator in WebSphere Portal. The solution discussed here provides a custom implementation for exporting content by bulk and importing it back into IBM WCM.

Step 1: Exporting Content

Content in a WCM library can be exported by bulk using a menu component. A menu component is able to filter content based on a specified siteareas, authoring templates, categories and keywords. There is a limitation with this approach where the elements in a content page can only be rendered for a single authoring template. To overcome this limitation a custom JSP can be referenced in the menu component, that renders the elements in a content based on any authoring template as well as the required content xml for the RSS

The menu component in WCM can be configured as follows:

Insert the following code in the Header:

Insert the following reference to the JSP in the Design for each menu search result:

Insert the following code in the Footer:

JSP code required to generate the RSS feed

1. Retrieve the current content result id from the menu result

2. Retrieve the authoring template of the content

3. Build the content XML for the RSS feed

4. Add the content element data to the content XML based on the authoring template using a switch statement.

5. Preview the menu component, the RSS feed can be found by viewing the source on the previewed page. A sample feed is provided below for two content items.

Step 2: Importing Content

Typically the translation of the content in the XML above will involve translating the content into a language other than the source and stored back into the same XML format. The Web Content Integrator in WebSphere Portal needs to be configured in order to consume the translated content stored in an XML file. The RSS feed (XML file) can be placed onto the Portal server in a location that is easily accessible such as:


The Web Content Integrator feed configuration can be found under Portal Administration → Portal Content → Feed Configurations and can be configured as below:

Upon “Save and Consume”, the content will be imported back into the library that has been selected above.