Oracle by Example brandingOracle Application Express 18: Translating an App (2 of 2) - Translating Messages and Specifying Primary language

section 0Before You Begin

This 20-minute tutorial shows you how to translate your application. You will later view your translated application by specifying the primary language.

This is the last tutorial in Oracle Application Express 18: Translating an App Series. Read the tutorials in sequence:

Background

You can run applications built in App Builder concurrently in different languages. A single Oracle database instance and Oracle Application Express can support multiple database sessions customized to support different languages.

The Globalization attributes specify how the Application Express engine determines the primary language of an application. To translate an application developed in App Builder, you must map the primary and target language, seed and export text to a translation file, translate the text, apply the translation file, and publish the translated application.

What Do You Need?

To complete this tutorial you need to:

  • Complete the preceding tutorial in this series.

section 1Translate the Create App Wizard

In this section, you translate the Create App Wizard to German. To translate an application developed in App Builder, you must:

  • Map the primary and target language
  • Seed and export text to a translation file
  • Translate the text
  • Apply the translation file
  • Publish the translated application

Perform the following steps:

  1. To map the primary and target language:
  2. The second step is to seed the translation table and then export the translation text to a translation file. Seeding the translation copies all translatable text into the Translation Text repository. To seed translatable text:
    seed
    Description of the illustration seed.png
  3. After you specify the language and seed the Translation Text, you can then generate and export an XLIFF file for translation. The seeding process keeps your primary language application synchronized with the Translation Text repository. You should run the seed process any time your primary language application changes. To export text to a translation file:
  4. After you export a translatable file to XLIFF format, you can translate it into the appropriate languages. To translate the text:
    • Open the exported XLIFF File in a text editor.
    • Press Ctrl+H.
    • For Find what, enter Home.
    • For Replace with, enter Zuhause.
    • Click Replace All.
    • find_replace
      Description of the illustration find_replace.png
    • Repeat the same for other navigation bar and menu items, for example:
      • Create App Wizard - Anwendung erstellen Magier
      • Dashboard - Instrumententafel
      • Milestones - Meilensteine
      • Tasks - Aufgaben Tasks
      • Calendar - Aufgaben Kalender
      • Project Costs - Projektkosten
      • Administration - Verwaltung
      • Sign in - Anmelden
      • Sign Out - Ausloggen
    • Save the changes, and close the file.
  5. After your XLIFF document has been translated, the next step is to upload and then apply it. To upload and apply the translated XLIFF:
  6. Publishing your application creates a copy of the base language application, substituting the translated text strings from your translations table. This published application can then be used to render your application in alternate languages.
    To publish the translated application from the translation repository:
    The translated application is successfully published.
  7. published_app
    Description of the illustration published_app.png

section 2Specify the Primary Language - German

In this section you specify the primary language to see the translated version of the Create App Wizard.

Perform the following steps to view your application in German:

  1. Click the Shared Components breadcrumb.
  2. Under Globalization, click Globalization Attributes.
  3. global_attribute.png
    Description of the illustration global_attribute.png
  4. In the Globalization page, update the following:
    • Application Primary Language: Select German (Germany) (de)
    • Application Language Derived From: Select Application Primary Language
    • Click Apply Changes.
  5. edit_global_attr.png
    Description of the illustration edit_global_attr.png
  6. Click Run Application
  7. create_app_wiz_de.png
    Description of the illustration create_app_wiz_de.png
    Notice that the application appears in German with the message text that you had created in the previous tutorial.

more informationWant to Learn More?