gs.getMessage Returns English only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 04:44 AM
Hi All,
I'm having my first go at an instance with multiple languages set up and having an issue with gs.getMessage returning only English messages in notifications even though I have translated messages. I have tried logging in selecting other language and having other language set on a user record but still all I see is English messages.
I am testing in with out of the box Incident opened for me notification which has this line:
template.print(gs.getMessage('An incident has been opened on your behalf.'));
I have a record in sys_ui_message table:
but notification still comes like that:
All other messages are set up the same but all is displayed in English.
Would you guys give me a hint of what I can be missing?
Maybe some additional plugin or setting that needs to be done before gs.Message actually picks up other records from sys_ui_message table?
Cheers
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 04:54 AM
i guess in subject line you have mentioned this comment and hence it is showing.
Kindly check once the subject line of the notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 06:35 AM
Hi,
Sorry for not being clear. Subject line is not an issue here as it is hard-coded - that's fine I know it will display in English. The email body is not which consists of gs.getMessages but still showing in English.
When you look at OOB code you have:
- script:incident_has_been_opened, template.print(gs.getMessage('An incident has been opened on your behalf.'));
- script:incident_take_me_to_the_incident, template.print(gs.getMessage('You can view all the details of the incident by following the link below') + ':');
With those records set - I had to create a second message as OOB it's not there - I would expect the translated text to show up in the email body but it's not.
Cheers
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2017 09:14 AM
Did you ever get this working? I am also using the OOB mail script ${mail_script:incident_assigned_to_you} I changed the users language that the email was sending to from english to French CAN validated that there is a msg and checked in the logs but the email is still in English.