Defining Information Behaviors in Multiple Languages

You can use Information behaviors to configure web client labels and field level tool tips (called hints in Design Studio) in multiple languages. The configuration that you complete in Design Studio can enable a web client to display field labels and hints in a preferred language when a web client detects changes to Internet browser language preferences.

The following example demonstrates how to define labels in a preferred language. The steps for defining hints are identical, except that you define the language and XPath expression in the Information Properties view Hints tab.

To create labels and hints in multiple languages:

  1. From the Window menu, select Preferences.

    The Preferences dialog box is displayed.

  2. In the Preferences dialog box, click Oracle Design Studio.

    The Design Studio Language Preferences options are displayed.

  3. Add the language to the group of languages with which you intend to work.

    See "Defining OSM Preferences" for more information about adding languages to the Preferences dialog box.

  4. Click OK.

    Design Studio closes the Preference dialog box.

  5. Determine at which level you will create the Information behavior.

    You can create behaviors at the data, order, and task levels. For example, behaviors defined at the data level apply to the data node in all orders and tasks; behaviors applied at the order level apply to all tasks in the order; and behaviors defined at the task level apply to a single task in the order.

  6. In the Data Schema, Order, or Task editor, select a data node and create the Information behavior.

  7. Right-click the Information behavior icon and select Open Properties View.

    The Information Properties view Labels tab is displayed.

  8. In the Information Properties view Labels tab Language field, select the language for which you want to define a label.

    No changes to Language field are necessary if you are defining labels in the default language.

    Note:

    By default, the system uses the Display Name defined for the data node and the default language defined in the Design Studio Preferences dialog box when labeling fields in the web client.

  9. In the XPath Expression field, enter the text for the new label.

    Use single quotes to wrap the text when entering literals in an XPath expression. See "Information Behavior Properties View Labels Tab" for more information about entering XPath expressions.

  10. Click Save.

  11. Clean, build, and deploy your cartridge to the run-time environment.

    See "Packaging and Deploying OSM Cartridges" for more information and cleaning, building, and deploying cartridges.

  12. In the web client, navigate to the browser language preferences to select the language in which you defined your labels and hints.

    For example, in Internet Explorer:

    1. Select Tools, Internet Options.

    2. Click Language.

      The Language Preferences dialog box is displayed.

    3. Click Add.

      The Add Language dialog box is displayed.

    4. Select the language in which you created new field labels or hints in Design Studio.

    5. Click OK.

    6. Select the language, and click Move Up to move the language to the first position.

    7. Click OK.

      The system displays the new labels in the web client.