21.7 Translating Data That Supports List of Values
You create a dynamic translation to translate dynamic pieces of data. For example, you might use a dynamic translation on a list of values based on a database query.
Dynamic translations differ from messages in that you query a specific string rather than a message name. You define dynamic translations on the Dynamic Translations page. You then use the APEX_LANG
.LANG
API to return the dynamic translation string identified by the p_primary_text_string
parameter.
- Defining a Dynamic Translation
You define dynamic translations on the Dynamic Translations page. A dynamic translation consists of a translate-from language string, a language code, and a translate-to string.
See Also:
APEX_LANG
in Oracle Application Express API Reference
Parent topic: Managing Application Globalization
21.7.1 Defining a Dynamic Translation
You define dynamic translations on the Dynamic Translations page. A dynamic translation consists of a translate-from language string, a language code, and a translate-to string.
To define a dynamic translation:
- Navigate to the Translate Application page:
- On the Workspace home page, click the App Builder icon.
- Select an application.
- Click Shared Components.
- Under Globalization, click Translate Application.
- On the Translate Application page under Translation Utilities, select Dynamic Translations.
- On the Dynamic Translations page, click Create and specify the following:
- Language - Select a target language.
- Translate From Text - Enter the source text to be translated.
- Translate To Text - Enter the translated text.
- Click Create.
Parent topic: Translating Data That Supports List of Values