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 ...

Get Oracle Siebel CRM 8 Developer's Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.