Displaying Applications in Different Languages

How to:

You can translate HTML pages within WebFOCUS App Studio to display applications in different languages in the portal. A translation XML file can be an embedded file or a referenced file.

When creating an HTML page in the HTML canvas, you can use the Dynamic Language Sets group on the Properties panel for the DOCUMENT object to:

The Dynamic Language Sets group on the Properties panel for the DOCUMENT object is shown in the following image.


Properties panel showing Dynamic Language Sets group

The Dynamic Language Sets properties are as follows:

You can also set Locale options by right-clicking the document and selecting Locale Sections from the right-click menu, as shown in the following image.


Right-click menu showing Locale Sections

The following options are available:

Procedure: How to Display Applications in Different Languages

  1. Right-click a folder, point to New, and then click HTML/Document to create a new HTML page.

    Notice that the open tab for the HTML file displays the default language in parentheses, as shown in the following image.


    Tab for HTML page in English
  2. Add a report and a heading control to the HTML page, as shown in the following image. Type the text for the heading in English.

    HTML page with heading in English
  3. Save the HTML page.
  4. In the Properties panel, click the Selected drop-down list and select a different language, for example, French, as shown in the following image.

    Notice that the open tab for the HTML file changes to the selected language, as shown in the following image.


    Tab for HTML page in French
  5. Type the text for the heading in French, as shown in the following image.

    HTML page with heading in French
  6. Save the HTML page.
  7. Select English for the Selected property in the Properties panel for the Document.
  8. Run the HTML page. The report heading is in English, as shown in the following image.

    Finished HTML page running in English
  9. Select French for the Selected property in the Properties panel for the Document.
  10. Run the HTML page. The report heading is in French, as shown in the following image.

    Finished HTML page running in French