Need error message in Japanese language.

Yasin Shaik11
Tera Contributor

Hi All,

 

 var DamagedDepart = g_form.getValue('u_damaged_system_user_department');
    if (newValue != DamagedDepart) {
        g_form.addInfoMessage('User and manager information is different');
    } else if (DamagedDepart == newValue) {
        g_form.clearMessages();
        if (g_form.getValue('u_company') != '' && g_form.getValue('u_organization_company')!='') {
            if (g_form.getValue('u_company') != g_form.getValue('u_organization_company')) {
                g_form.addInfoMessage('User and manager information is different');
            }
        }
    }

 

The above client script error message is coming for the English users and if the user language is japanese then the error message should be japanese.

How we can do this configuration.

1 ACCEPTED SOLUTION

It's not quite correct. Change it into this:

g_form.addInfoMessage(getMessage('Admin_error_message'));

 

Then create two (or more) messages to translate/use this message, like screenshots below, :
I don't understand Japanese, so I've created messages in english, and in my native language (swedish)

english-message.png

 

not-english-message.png

View solution in original post

8 REPLIES 8

@Community Alums 

 

Thanks for your response. 

Tried with this but not working. 

It's not quite correct. Change it into this:

g_form.addInfoMessage(getMessage('Admin_error_message'));

 

Then create two (or more) messages to translate/use this message, like screenshots below, :
I don't understand Japanese, so I've created messages in english, and in my native language (swedish)

english-message.png

 

not-english-message.png

@OlaN 

I have created two language messages in sys_ui_message as you given above and same called in client script but not showing on the form level. 

Make sure that the key phrase used in the client script is EXACTLY the same as the Key value of the messages.

If no message is showing at all, then there is something else that's wrong, like conditions on the client script or something else.

Can you share the entire client script config ? (screen shot)