Notification translation to English

PyLaRue
Tera Contributor

I have translation issues with a script. 
My company portail/session is in french so everything that is being printed from variables is being printed in french. 

I created a script for my Request notification which work perfectly it translate everything in english (scriptRequest in attached files)

I created the same thing for the Incident notification (scriptIncident)

both script has 

var lang = 'en';
    gs.getSession().setLanguage(lang); // sets the session language to English 
 
and 

var label = gs.getMessage(question.getLabel(), 'en'); // Explicitly set language to English
for some reason the incident version print out french instead of the requested translation to english. 
0 REPLIES 0