09-06-2022 12:59 AM
We are creating an enum attribute with two values: External and Subcontractor in the request user form and we would like to internationalize these values. We would like to use a token in place of the name and have Savyint override that token depending on the browser language. For example, in English we want to display "Internal and Subcontractor" to the user, in French we want to display: "interne and externe".
Solved! Go to Solution.
09-08-2022 03:33 AM
@barbaste
This functionality is not directly built into the product as of now.
We can try the solutioning the same via SQL query type list Dynamic attribute.
Keep the dynamic attribute value sql query as below:
select case when locale='en' then 'Internal' when locale is null then 'Internal' when locale='fr' then 'interne' end as ID from users where userkey=${requestee}
union
select case when locale='en' then 'External' when locale is null then 'External' when locale='fr' then 'externe' end as ID from users where userkey=${requestee};
For each value of a dynamic attribute, you need to have a case statement to evaluate the locale . If its a new user creation and locale value is not available, you need to have an initial dynamic attribute for language selection and then use that dynamic in the SQL query that i provided above for locale comparison.
The above statement looks like below on the form :
09-08-2022 07:21 AM
Thanks
11-22-2022 07:09 AM
Sorry but your solution doesn't work. the locale variable does not exist. My version is 2021.0
11-22-2022 10:32 AM
Please work with support team using freshdesk