I have created two variables in catalog item, when i am changing the language from english to french, only out of the box variables are changing. which i have created the variables and types are not changing to french language. where will be these va

Mandhula Haris1
Giga Contributor

I have created two variables in catalog item, when i am changing the language from english to french, only out of the box variables are changing. which i have created the variables and types are not changing to french language.

 

where will be these values get stored

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to do it from your end

check this link where I shared the steps

Translation of Catalog Name and It's variables & help texts

Sharing here again

There are basically 2 tables where the translations are stored. Translated Text [sys_translated_text] & Translated Name/Fields [sys_translated]

sharing few links for help

https://community.servicenow.com/community?id=community_question&sys_id=bffecba1dbdcdbc01dcaf3231f96...

For example purpose I have used French language and shared for catalog item name, short description, variable label.

You can similarly give for the question choices as well for Select box variable

I hope this will help you get started on your requirement.

Steps:

1) Visit to "System Localization" -> "Translated Name / Fields". Create new record.

2) For translating catalog item name and short description use this table Translated Name / Fields:

a) Translation of the catalog item "Name"

  • Label -  the catalog item name
  • Element - the field name which holds this value i.e. name
  • Table - The catalog item table i.e. sc_cat_item
  • Value -  french value of that catalog item name

find_real_file.png

b) Translation of the catalog item "Short Description"

  • Label -  the catalog item short description
  • Element - the field name which holds this value short_description
  • Table - The catalog item table i.e. sc_cat_item
  • Value -  french value of that catalog item short description

find_real_file.png

c) Translating questions/variables use this:

  • Give the label same as "Question" on the variable
  • Select the element as "question_text" which holds the value
  • Table - Variable which holds the variable information in instance
  • Value - french value for the label you want

find_real_file.png

Regarding Testing: For example purpose I have used French language; so you need to impersonate as User whose language is French in user profile and check whether all these are coming in french or not from portal etc.

a) catalog item name

b) catalog item short description

c) catalog variable names

d) catalog variable drop down choices etc

Screenshot:

find_real_file.png

Note: Remember to clear instance cache using cache.do and then test so that you can validate. Or you can also logout and login again to perform the testing

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Michael Jones -
Giga Sage

User defined fields, variables and values are not automatically translated - you will need to create the translations in the system - so you would need to have the translations available to you. 

One of the easiest ways to do this is, once you have the translations, switch to the language and then navigate to the record and update the records with the values for the translation - for example, in a select-box, open the choices and change the labels to be the value you want to see when "french" is selected. That will create a translated text record for that choice. 

You can do the same with the item itself, such as name, description, short-description, etc. 

When you switch back to English you will see the English values, switch to French, you will see the values you saved while French was selected. 

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!