Translation Issue

mouradhadj-
Tera Contributor

Hi,

I'm having trouble translating a message inside a Business Rule. I used gs.getMessage() along with the sys_ui_message table to store the translations, but the message is still not being translated in french.

this is my BR: 

 var ritmGrp = new GlideRecord('sc_req_item');
    ritmGrp.addQuery('sys_id', current.parent);
    ritmGrp.query();
    if (ritmGrp.next()) {
      var reqMessage = gs.getMessage(
            "Your request is waiting for approval by '{0}'",
            [' ' + current.assignment_group.name + ' ' + ' (' + current.assignment_group.u_short_description + ')']
        );
        ritmGrp.comments.setJournalEntry(reqMessage);


did some one know why ?

Thankx!!!!!
10 REPLIES 10

Shivalika
Mega Sage

Hello @mouradhadj- 

 

Please create records in sys_translated_text table with your key and translated value in particular language. 

 

It will automatically be translated wherever being used. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY