Quick question about the use of the xfa.host.messagebox

Avatar

Avatar

patpai

Avatar

patpai

patpai

15-12-2014

     Good day everyone,

I was wondering if i can modify (programatically) the way the messageBox shows up on the screen to be in a different language.

Right now my issue is that i can put a French message in the messageBox but i still get the Eng versions for the buttons like Yes and No.

Can this be modified to be display "Oui" and "Non" instead? if not, is there perhaps a different approach to solving this little issue.

Thank you very much,


Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
MVP

15-12-2014

Hi,

I don't know how to localise the messageBox, I would have thought you could, but you do have more control when you use a custom dialog, something like;


function dialog()


 


var dialogDescriptor =


 


description:



name: "dailog1",



elements: [


 


type: "static_text",



name: "Something in french",



},



type: "ok_cancel",



ok_name: "Oui",



cancel_name: "Non",



var dialogObject =


 


execDialog: function() { return app.execDialog(dialogDescriptor); },



return dialogObject;


 


var d = dialog();



var result = d.execDialog();


In this case the result variable will be equal to "ok" or "cancel".

Regards

Bruce