cancel
Showing results for 
Search instead for 
Did you mean: 

Message box prompt action not displaying in chinese language

former_member345883
Discoverer
0 Kudos

I have attached a screen shot of the error what I'm facing in Chinese language.

i have used

pip_ns.changePIPDocStatus = function()

{

  jQuery.sap.require("sap.ui.commons.MessageBox");

  sap.ui.commons.MessageBox.show(

  myPathContext.i18nModel.getProperty("CONFIRM_ACTION"),

  sap.ui.commons.MessageBox.Icon.WARNING,

  "",

  [sap.ui.commons.MessageBox.Action.YES, sap.ui.commons.MessageBox.Action.NO ],

  pip_ns.fnCallbackMessageBoxpop1,

  sap.ui.commons.MessageBox.Action.YES);

  hideBusy()

},

in the prompt the YES OR NO button language is change for Spanish,French and portuguese but not in chinese when i change to chinese language the yes or no is displaying in english language,please help on the issue

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

On

MessageBox - SAPUI5 Demo Kit

if I add

// open a fully configured message box

sap.ui.getCore().getConfiguration().setLanguage("zh-Hans");

and apply it appears to work.  How you are setting it?

Regards,

Jamie

SAP - Technology RIG

former_member345883
Discoverer
0 Kudos

Hi Jamie Cawley thanks for your answer. it is working.

former_member345883
Discoverer
0 Kudos

im using ZH insted of ZH-hans. when i use sap.ui.getCore().getConfiguration().setLanguage("ZH-hans");  other data are not displaying but the yes or no text is changing into chinese. when is use sap.ui.getCore().getConfiguration().setLanguage("ZH") other data are displaying but the prompt Yes or No is not changing

is there something to do in the backend?

jamie_cawley
Advisor
Advisor
0 Kudos

Did you try zh-CN?  This is what fiori apps seem to be using.

Regards,

Jamie

SAP - Technology RIG

daniel_ruiz2
Active Contributor
0 Kudos

Hi,

It would appear the .zh message properties could be missing two keys & values for these elements? - Have you checked the files in the library? - Perhaps open then from Chrome and check if the correct keys are there?

Cheers,

Dan.

Answers (0)