Translate a field value

RSSG
Tera Contributor

I want to change field value language from english to other language. Already installed plugins for language translation i.e Internationalization language pack and individual language pack like Japanese,Swedish.

Tried to follow the procedure given on ServiceNow Product Document-Translate a field value, but it is not clearly understood, Steps are not clear to me.

Can anyone help to explain in simple way?

thanks

2 ACCEPTED SOLUTIONS

@RSSG 

 

Here is my solution. The field Capability on u_ot_floc should be a translated text field instead of string. Also, I am assuming that this is a normal string field and not choice field.

 

RSSG_4-1680635184898.png

 

I tried to replicate the exact same scenario like yours and translation work perfectly in my case.

Here is my table structure.

Screenshot 2023-04-05 at 1.35.21 PM.png

Screenshot 2023-04-05 at 1.27.17 PM.png

This is the sample data in English language. Please note all the capabilities are in English here

 

Screenshot 2023-04-05 at 1.25.12 PM.png

 

 

 

Screenshot 2023-04-05 at 1.24.52 PM.png

 

Now in order to provide translation in Portuguese, I changed the language from preference and moved back to my table. 

Here I initially see Capability in English, here I change the values of each capability field and add their translation in Portuguese

Screenshot 2023-04-05 at 1.24.06 PM.png

 

This is how the entire table looks after providing the translation in Portuguese Language.

Screenshot 2023-04-05 at 1.26.19 PM.png

Now when I change the language again back to English from preference, this is how my table looks in English.

 

Screenshot 2023-04-05 at 1.25.12 PM.png

Hope this helps. In case if the capability is a choice field then the translation would be provided in a different way. Please let me know if your capability field is a choice field or not.

View solution in original post

Glad finally the solution worked 🙂

 

Here is the solution for the choice field. 

In the following example the field is of type choice

 

Screenshot 2023-04-05 at 8.03.42 PM.png

 

Open the dictionary entry, scroll to the bottom and find the choice related list.

 

Screenshot 2023-04-05 at 8.08.35 PM.png

Click New button and add a choice in English first

 

Screenshot 2023-04-05 at 8.04.44 PM.png

Now add the same choice with a different language code and translated label. Please note that value should remain same for both the translation.

Screenshot 2023-04-05 at 8.12.19 PM.png

Finally your choice list should look like the following.

 

Screenshot 2023-04-05 at 8.05.10 PM.png

Hope this helps.

View solution in original post

22 REPLIES 22

Flavia Margaret
Tera Contributor

Hi @Sandeep Rajput, I've tried the methods you mentioned for the string field conversion to translated text field. However, the value is still not updated to the other language even after I changed my preferred language.

 

I tried this in the OOB Users table and I created a custom field with type=translated text. So I wonder if this method will work only for custom table? TIA!

@Flavia Margaret I verified this by creating a custom field on sys_user table on my PDI and the translation on the custom field on the sys_user table is working perfectly fine. Here are the snapshots.

Screenshot 2024-04-02 at 7.19.44 PM.pngScreenshot 2024-04-02 at 7.20.16 PM.png

Hi @Sandeep Rajput , I'm still not able to get it translated even after installing Portuguese language.

 

This is the English version:

FlaviaMargaret_1-1712111865504.png

 

This is the Portuguese version where I thought the "Last name custom" value would be translated to Portuguese. 

FlaviaMargaret_0-1712111796947.png

Also, I checked the sys_translated_text table and I found that there is no record created for the User's record. Could you please advise me what might go wrong? Thank you.