Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

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

Avatar

Level 4

     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,


1 Reply

Avatar

Level 10

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