Translate a client script message
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Localization
Translate the messages used by client scripts.
Before you begin
Create a client script that contains messages. For information about creating client scripts, see Client scripts.
Role required: admin
About this task
Client scripts include a multi-line Messages field, which is for message strings that the client script can use as a key to look up a localized message alternative from the Message [sys_ui_message] table. Each message key in a client script is on a separate line in the Messages field. The instance looks for a localized message string anytime the client script makes a getMessage(msg) call where the msg string matches a key in the Messages field in the client script.
For example, if you add the string Please populate the Reason
field
to the Messages field in the client script, then the instance will
look for a localized string from the Message [sys_ui_message]
table
any time the client script calls:
getMessage("Please populate the Reason field")
Procedure