Oracle CRM On Demand Desktop Administration Guide > Customizing Oracle CRM On Demand Desktop > Performing Typical Customization Work >

Localizing Values


You can modify a single file to do the following work:

  • Support different languages.
  • Change a label value that is included in multiple locations in the user interface.

To localize values

  1. Use an XML editor to open the package_res.xml file.

    For more information, see Files in the Customization Package.

  2. To define a localizable string, add the following code to the package_res.xml file:

    <str key="string_id">localizable_string</str>

    where:

    • string_id is the Id of the localizable string
    • localizable_string is the localizable string
  3. Use the localizable string Id in every location where Oracle CRM On Demand Desktop must display the string.

    You must use different formats to define the string in different types of files. Use values from the following table.

    File Type
    Description

    Any XML file except for the views.xml file.

    Use the following format:

    #string_id

    For example:

    <cell size="22">
      <static id="account_label" tab_order="6">
        <text>#lbl_account</text>
      </static>
    </cell>

    The views.xml file.

    Use the following format:

    $string_id$

    For example:

    <str key="all_accounts">
    <![CDATA[
    <?xml version="1.0"?> <view
       type="table"> <viewname>$view_siebel_accounts$</viewname>
       ................................. </view>
    ]]>
    </str

    Any JavaScript file.

    Use the following format:

    session.res_string("string_id")

    For example:

    ui.message_box(0, session.res_string("msg_general_error"), session.res_string("msg_general_error_caption"), 0x40);

Oracle CRM On Demand Desktop Administration Guide, Version 5.1, Rev A Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.