Record Producer translations for question choice - what's the flow?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2024 11:20 AM
When we have translations for question_choice in a record producer, what language is the 'answer' in at various steps?
Here's the scenario: customer has record producers that collect information from the user and create incidents. I have written a script that collects the answers from the producer object (producer.variable) and concatenates them into a string which gets added to the work notes.
When a user fills out the RP in a foreign language, say Korean, their answers for the choice fields show up in Korean - not surprising. My fulfillers don't speak Korean, though, so they need to see the English. I've learned that the translations for these choices live in the 'sys_translated' table, so I thought "I'll just look up the Korean string in that table, and replace the variable with the English". According to the log statements I added to my script include, though, these choices are being handled by the Record Producer script in English.
So, I'm wondering, what is the process that converts these back to Korean for the incident, and can I just add some code to my script to say "don't do that"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2024 01:28 PM
For choice fields/variables, if the choices are properly translated, your agents should see them in their language (based on their personal settings) without any extra magic from your side.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 04:03 PM
You would think, but that's not happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 11:27 AM - edited ‎07-31-2024 11:28 AM
There are no choice fields in your screenshot, but rather a work note that consists of the values of the individual fields. As such, it is a string to which translations of the choice fields have no relevance. Either let your agents view the actual fields and their (translated) values or automate translation of work notes with dynamic translation.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 11:41 AM
This is indeed a work note. The third sentence of my original post says:
I have written a script that collects the answers from the producer object (producer.variable) and concatenates them into a string which gets added to the work notes.
The issue is that for some of these variables, producer.variable displays the response, and for other types, I needed to us producer.variable.getDisplayValue() to not have a human-readable answer in the notes. I've figuresd out that every time I use getDisplayValue() I get the response in the user's language, not English.
I'm working with dynamic translation now to see if I can just translate the foreign language responses.
Thanks for your replies!