Action buttons are not translated

katarina27
Tera Contributor

Hi guys, I have a requirement to create an UI action on which when user click pop-up window with confirmation will appear. Message on confirmation should be in English when user's language is set to English and in case that user's language is German this message should be in German (message is stored in Messages and it is translated to German). Everything is working fine except action buttons "OK" and "Cancel" - they are not translated to German (especially "Cancel" should be "Abbrechen"). I have activated I18N: Internationalization plugin. Do you have an idea how I could solve it? I'm on Utah. I'm attaching part of UI action script which is responsible for confirmation popup and popup window when I'm user with German language.

1 ACCEPTED SOLUTION

Jace Benson
Mega Sage

You're using `confirm` which is the javascript confirm (mozilla), it should detect the browser's language.

To control the buttons you'd need to change the code to use either a ServiceNow Modal (great article about them here) or you could try to the dialog feature in html thats supported everywhere but that may be weird.

View solution in original post

1 REPLY 1

Jace Benson
Mega Sage

You're using `confirm` which is the javascript confirm (mozilla), it should detect the browser's language.

To control the buttons you'd need to change the code to use either a ServiceNow Modal (great article about them here) or you could try to the dialog feature in html thats supported everywhere but that may be weird.