Translating labels

In the Set Parameters actions in Tutorial4 we used entries in the Table of Names and Texts to define the levels of the Product hierarchy. In Application Studio, different languages can be installed so that users can view reports in a language other than English. Any terms to be translated when a user changes language must be combined with the TRANSLATEUNIQUESTRING function in the definition of the report. You may also be prompted to add new terms and their translations to the Table of Names and Texts.

  1. Open the Tutorial5 report.
  2. In Design mode, click B1, which contains the label Earlier Versions.
  3. Replace Earlier Versions with =TRANSLATEUNIQUESTRING("Earlier Versions")
  4. In the Edit Names and Texts dialog box specify a translation of Earlier Versions in your chosen language.
    To display languages other than English, select Select Visible Columns > Show all languages.
  5. In cell B6 replace Measure with =TRANSLATEUNIQUESTRING("Measure").
    Or, click Insert > Function in the toolbar. Scroll down the list of functions and select TRANSLATEUNIQUESTRING. In the formula that is displayed. Replace "unique_string_name" with "Measure".
    Note: If no translation is available, the Edit Names and Texts dialog box is displayed. Locate Measure in the English column and specify a translation in your chosen language.
  6. In View mode, select Extras > Language Settings and select your chosen language as the report language.
    Earlier Versions and Measure are translated.
  7. Return the report language to English.