Book Image

Oracle Siebel CRM 8 Developer's Handbook

By : Alexander Hansal
Book Image

Oracle Siebel CRM 8 Developer's Handbook

By: Alexander Hansal

Overview of this book

Table of Contents (33 chapters)
Oracle Siebel CRM 8 Developer's Handbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Using translatable messages


In the script examples in this and the previous chapter we used several techniques of displaying messages to the end user. In all of the examples, the text that should be displayed to the end user is stored as a static string within the script code for the sake of readability.

Using static strings is not a recommended practice, so it is time to discuss the options for storing message texts in a central location outside of the script code. This technique also enables us to use the same code for all user interface languages in multilingual environments.

As we have learned in previous chapters, the Symbolic String definitions serve this purpose. We can create new Symbolic String object definitions to store the language-specific versions of our message texts.

The LookupMessage() and RaiseError() server script methods of the application object allow developers to retrieve translated text and fill placeholders in the text (defined using the percent sign (%) followed...