Customizing Presentation Models to Display Control Labels in Different Languages

This topic describes how to customize a presentation model so that it displays a client-side control label in a different language instead of modifying the custom_messages.js file.

To customize presentation models to display control labels in different languages

  1. Use a JavaScript editor to open the presentation model that Siebel Open UI uses to display the control label that you must modify.

    For more information, see About the Presentation Model.

  2. Add the following code to call the ExecuteMethod method that the presentation model uses. You can add this code anywhere in the presentation model file:

    pm.ExecuteMethod("AddLocalString","ID","custom_string");
    

    where:

    AddLocalString is the name of the method that ExecuteMethod calls to add your custom string.

    For more information about how this example uses ID and custom_string, see Displaying Control Labels in Different Languages. For more information about these methods, see AddLocalString Method and ExecuteMethod Method.

    For example, add the following code:

    pm.ExecuteMethod("AddLocalString", "New", "Neu");    
    pm.ExecuteMethod("AddLocalString", "Delete", "Löschen");
    
  3. Test your work:

    1. Navigate to the screen that includes the control that Siebel Open UI uses to display the translated string that you modified in Step 2.

    2. Verify that the control displays the translated string.