- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:00 PM
Hi All,
The above client script error message is coming for the English users and if the user language is japanese then the error message should be japanese.
How we can do this configuration.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 12:00 AM
It's not quite correct. Change it into this:
g_form.addInfoMessage(getMessage('Admin_error_message'));
Then create two (or more) messages to translate/use this message, like screenshots below, :
I don't understand Japanese, so I've created messages in english, and in my native language (swedish)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:38 PM
Hi,
To translate the information message, you'll need to create a translation [sys_ui_message], and then call the message like the following:
g_form.addInfoMessage(getMessage('some_message_key_here'));
If the user has set their language to english, then the english message will appear,
and if the user has set their language to any other language, then that message (if it exists) will appear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:50 PM
Thanks for your response.
I have written like this, but it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:55 PM
what's the error you're getting ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:56 PM
It should be ("XYZ"+getMessage('Admin_error_message'));