Service Catalog Localization: where are the translated values stored?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 07:47 AM
Client is a multilingual corporation with languages in English, French, Spanish, and Italian. While trying to diagnose an issue, we noticed a reference to a Catalog Item in a customized form. We also noticed the following code snippet:
var cat_item_name = cat_item.getDisplayValue ();
where cat_item is a GlideRecord for the Catalog Item (sc_cat_item).
cat_item_name is used in a switch statement to determine what to do depending on the Catalog item being referenced in the customized form, so it is heavily dependant on the Name field for the Catalog item, but I suspect that the localized values are the root cause as getDisplayValue () may be returning the localized language value instead of the Name field of the catalog item.
1) Can anyone confirm if this is the case with getDisplayValue () that it will return localized values?
2) Can anyone inform me where these localized values are stored? I want to alter this piece of code to return only the english value of the Catalog item so that it can be used in the switch statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 06:51 AM
Hi @tahnalos
the localized values for catalog items store in different translation tables.
values like names, shore descriptions, meta will be stored on sys_translated_text table. you can filter it by catalog item table there.
you can also refer https://www.servicenow.com/community/international-localization/everything-you-ever-wanted-to-know-a...
Regards,
Ravi Chandra.