Globalization attributes specify how the Application Express engine determines the primary language of an application.
To edit globalization attributes:
On the Workspace home page, click the Application Builder icon.
Select an application.
Click Shared Components.
Under Globalization, select Globalization Attributes.
For Application Primary Language, select the language in which the application is being developed.
For Application Language Derived From, specify how the Application Express engine determines (or derives) the application language. The application primary language can be static, derived from the Web browser language, or determined from a user preference or item. Table 21-1 describes available options:
Table 21-1 Application Language Derived From Options
Option | Description |
---|---|
No NLS (Application not translated) |
Select this option if the application will not be translated. |
Application Primary Language |
Determines the application's primary language based on the Application Primary Language attribute. (See step 5.) |
Browser (use browser language preference) |
Determines the application's primary language based on the user's browser language preference. |
Application Preference (use FSP_LANGUAGE_PREFERENCE) |
Determines the application's primary language based on a value defined using the See Also: "SET_PREFERENCE Procedure" in Oracle Application Express API Reference |
Item Preference (use item containing preference) |
Determines the application's primary language based on an application-level item called |
Session |
Determines the translated application language from the session setting. The Application Express session language can be set through either the |
Configure other options as appropriate. To learn more about an attribute, see field-level Help.
Click Apply Changes.
See Also:
"Editing the Application Attributes," "Configuring Security Attributes," and "Understanding Supported Globalization Codes"This section describes how to use format masks for items.
The Application Express engine applies globalization settings for each rendered page. This default behavior can impact the display of certain items such as numbers and dates.
For example, suppose your application determines the application language based on the user's browser language preference. If the Application Express engine determines the users's browser language preference is French, it displays dates and numbers in a format that conforms to French standards. You can override this default behavior and explicitly control how items display by applying a format mask. You apply a format mask by making a selection from the Display As list:
When you create the item.
After you create the item by editing the item attributes.
The following section describes how to edit item attributes for items having the source type of Database Column.
To edit item attributes:
On the Workspace home page, click the Application Builder icon.
Select an application.
Navigate to the appropriate page. See "Viewing a Page in Component View."
Select an item.
The Edit Page Item page appears.
Under Name, make a selection from the Display As list.
Under Source, Format Mask, select or enter a format mask.
If your application must run in several languages simultaneously (such as Chinese and Japanese), consider configuring your database with a character set to support all of the languages. UTF8
and AL32UTF8
are the character sets you can use to support almost all languages around the world.