Translating Notification Name

Don Conley
Tera Contributor

In this article by @Mark Roethof we learn how to set up and use the new Multi-lingual notification support. I've got a need to be able to translate the Name of the notification in addition to the subject, body, etc. of the notification. Is there any guidance available on how you can have a localized version of that Name so that when someone looks at Notification Preferences, they can see the Name of the notification in their preferred language?

1 ACCEPTED SOLUTION

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

@Don Conley,

So ootb, indeed the notification names are not translatable, as can be seen when I look at the preferences modal you'll see there's no prefix:

AlexCoopeSN_0-1673598937766.png

 

 This is indeed because as @Mark Roethof states, it's a string field:

AlexCoopeSN_1-1673599541367.png


But.... that doesn't mean it can't be translated. To make it so, you would need to change the field type - which yes would be a type of customization but one we're unlikely to do ootb (for various reasons),

You can change any "string" type field to "translated_text", which is another type of string field but has the benefit of being translatable. The translations for these would reside in the [sys_translated_text] table.
- To learn more about the 5 tables, check out my blog post here on them.

When done correctly, the field should look like this:

AlexCoopeSN_2-1673601976966.png

^ Note the attribute - this should be auto-applied if you save the change of the field type change.

If we now check back on the notifications preference, we can now see that they are translatable:

AlexCoopeSN_3-1673602811157.png



Many thanks,
kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

The name of a Notification is just a string field. It's not translatable. So I would say no go at this moment.

 

You could try raising a Support case for this to get an official answer, though most likely you will get a response like you can raise an enhancement request / idea on the idea portal.

 

Kind regards,
Mark 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

@Don Conley,

So ootb, indeed the notification names are not translatable, as can be seen when I look at the preferences modal you'll see there's no prefix:

AlexCoopeSN_0-1673598937766.png

 

 This is indeed because as @Mark Roethof states, it's a string field:

AlexCoopeSN_1-1673599541367.png


But.... that doesn't mean it can't be translated. To make it so, you would need to change the field type - which yes would be a type of customization but one we're unlikely to do ootb (for various reasons),

You can change any "string" type field to "translated_text", which is another type of string field but has the benefit of being translatable. The translations for these would reside in the [sys_translated_text] table.
- To learn more about the 5 tables, check out my blog post here on them.

When done correctly, the field should look like this:

AlexCoopeSN_2-1673601976966.png

^ Note the attribute - this should be auto-applied if you save the change of the field type change.

If we now check back on the notifications preference, we can now see that they are translatable:

AlexCoopeSN_3-1673602811157.png



Many thanks,
kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

Don Conley
Tera Contributor

Great information! Thank you @Alex Coope - SN