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

Happy to help :). Looking forward to solve more such mysteries for you 🙂

Hi @Sandeep Rajput I Tried translation for choice list as explained above but it seems some bug in my procedure . Out of all given choices , tried changing only for Firewall Change Management.

RSSG_0-1680778296196.png

 

Add choice with different language 

RSSG_1-1680778394922.png

 

And type is Choice only. After changing language thru Preference it remains English .

what could I be missing here?

 

You followed the correct steps, ideally choices should be translated when selecting the Norwegian from preference. Can you check the same issue in an incognito window, if this still doesn't work then try doing this on a PDI and let me know if this still doesn't work.

 

I tried to replicate the same scenario of single choice and it works perfectly for me.

 

Screenshot 2023-04-06 at 4.52.29 PM.png

 

I am working on incognito mode only. And Yes! it is getting translated on PDI but not otherwise. Need to troubleshoot this ðŸ˜….

Also, the only difference I found is the form view which actually adds few more fields but still I saw this difference hence mentioned 😀 , In PDI it is default but in client it is Advance(which is not changeable) 

Try to repair your translation plugin from the plugin manager and see if it fixes this issue. Good luck on the troubleshooting part. Do let me know once you find the root cause of this issue.