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

Sandeep Rajput
Tera Patron
Tera Patron

Please follow these steps to provide a translated value in a field.

 

Here I have considered the example of the name field on a Record Producer. I have a record producer with General Inquiry name. I would like to translate this name in German. This can be done by using following steps.

 

Screenshot 2023-04-03 at 9.44.51 AM.png

Now change the language from User preference and select German

Screenshot 2023-04-03 at 9.45.50 AM.pngScreenshot 2023-04-03 at 9.46.34 AM.png

Go back to the record producer and update the name field with translated text and make sure to Save.

 

Now the name of the record producer would be shown in German for those users who have set their preferred language as German. 

Hi. Thanks for responding.  I have created a table under All OT assets and when go to "configure dictionary" for column label 'Patch' I did followed steps given by you. The word Patch did converted to selected preferred language but after going back to English it did not change. Please see given screen shot. what could be the reason.

 

Also this was for Label Name translation i.e Patch in my case, now suppose I have different field values ( 50 or 100) under Patch in my All OT asset table, then how can I translate all those field values ?

 

 

RSSG_0-1680501006235.png

 

For the table fields the procedure is bit different. Please refer to the following steps to change the label for the table fields.

 

This procedure beings with your table's List view

Screenshot 2023-04-03 at 12.54.34 PM.png

On Table dictionary, select the column whose label you would to translate.

Screenshot 2023-04-03 at 12.54.46 PM.png

 

Screenshot 2023-04-03 at 12.55.44 PM.png

On the Field detail page scroll to the bottom and find Label related list

Screenshot 2023-04-03 at 1.09.48 PM.png

Make sure to click on New button to add a translated text in a new language

 

Add translated label and language code and save.

Screenshot 2023-04-03 at 12.56.23 PM.png

Hope this helps.

I did it exactly the same way. It works on my personal (dev) instance but not on other dev instance. Can you help with troubleshooting process, why it is not changing language on other dev instance but successful on personal instance? Is there any other source table where we should check etc.

RSSG_0-1680513617584.png