gs.getMessage Returns English only

Greg42
Mega Guru

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:

sys_ui_table PL.png

but notification still comes like that:

Notification.png

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

3 REPLIES 3

shristy2
Giga Expert

i guess in subject line you have mentioned this comment and hence it is showing.



Kindly check once the subject line of the notification.


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


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.



find_real_file.png



find_real_file.png