- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2017 11:54 AM
In the Service Catalog Variable XYZ values are dependent on the variable ABC values. To populate the values in XYZ dynamically I've used a catalog client script. I did not create any choice in catalog items for XYZ. Now the requirement is the variables need to be translated in different languages. I've translated most of them but the choice list in XYZ is not translated as they are dynamically created using catalog client script. How to translate the values in the catalog client script in different languages?
1) We can do it manually by scripting the translated choice list. But, it is time consuming.
Is there any way to achieve this?
Note: Values in XYZ are visible based on the values selected in ABC. Catalog script is used to display those values.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2017 11:58 AM
This was not working. But I figured out a way to translate the dynamic variables, we can translate it in the messages and use getMessage(); the values can be translated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2017 07:04 AM
Hi Ujwal,
I will recommend values to be moved to a choice table or custom table and then get values dynamically in catalog client script rather than hard coding values in the script. by doing this, you can translate them like choices and easy maintenance going forward. I don't think there is an easy way for translating hard coded values in the script other than writing few extra lines of code.
Thanks,
Sai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2017 11:58 AM
This was not working. But I figured out a way to translate the dynamic variables, we can translate it in the messages and use getMessage(); the values can be translated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2018 10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 05:56 AM
Hi Ujjwal, thanks for that. Just a bit of clarification, did you add the message to be translated in the 'sys_ui_message' table in the 'message' field and passing the key to the getMessage() method?