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

Looks like your i18N plugin for Norwegian com.snc.i18n.norwegian is broken on the other instance. Hence the translations are not loading correctly. 

 

Try the following steps to fix it.

 

Search for your plugin in plugin manager.

Screenshot 2023-04-03 at 3.28.50 PM.png

 

Select com.snc.i18n.norwegian and open the record.

 

Screenshot 2023-04-03 at 3.29.23 PM.png

Click on Activate/Repair link, this will trigger the process of repairing the plugin. Once completed, clear the cache using https://<your instance>/cache.do and check if this fixes your translation issue.

Hi Sandeep. Thank you so much for your continuous efforts in solving my problem. But let me try once more as I attempted all steps you mentioned, though I already implemented few of the steps before you told.

Let me put it this way that I have a custom table( ex. u_OT_FLOC) created and I need to translate the field values which are strings and no choice option.(ex. Technical ,Operations,Cell A etc. are the values)  So how can I translate each of these values such that on changing language thru preference these values gets translated globally.

For your knowledge, I also tried the option on System Localization-Translated Name/fields by adding new but it is also not working.

Thanks.

 

 

Hello @RSSG,

Will it be possible for you to share the screen shots of your table and fields. Also share the screenshot of Label related list where translation for different fields are added.

Sure. Here are the screen shots 

Table with field(cmdb table)

RSSG_2-1680548200538.png

 

Label - Capability: Values 

RSSG_1-1680548134283.png

FYI, capability label refers to other table to fetch field values ( customised table) and through configure dictionary  I have already entered under new "label" a desired language as you also mentioned to do thu past messages.

Hope this information gets useful to you.

 

@RSSG If I am not wrong, you are fetching the field values for Capability field from a different table (a custom table). In this example, the values Process, Software, Hardware they must be coming from a different table? Please confirm this assumption. If this is correct, then you need to provide translation for these values inside the custom table itself. 

 

In the custom table, make sure the field which is providing values for the capabilities field is a translated text field. If it is already a translated text field than you just need to provide the translated text by changing language from the preference and entering the value (The way I have demonstrated with Record Producer example.)