Message Box (MB_YESNO) 'Yes' and 'No' button language translation HELP!
Hi everybody,
Good day.
I would like to enquire on the language translation for a Message Box.
At the moment, based on the NSIS web forum references, I am using Switch based statements to display different types of message box language(Yes/No Message box) strings based on the selected language.
A copy of the codes that i am using is as shown below;
${Switch} $LANGUAGE
${Case} ${LANG_ENGLISH}
MessageBox MB_ICONEXCLAMATION|MB_YESNO "${MUI_REMOVEDATA_CONFIRM_EN}" IDYES REMOVEDATAFILE IDNO SETMSGMANUAL
${Break}
${Case} ${LANG_FRENCH}
MessageBox MB_ICONEXCLAMATION|MB_YESNO "${MUI_REMOVEDATA_CONFIRM_FR}" IDYES REMOVEDATAFILE IDNO SETMSGMANUAL
${Break}
${Default} # Default at English language
MessageBox MB_ICONEXCLAMATION|MB_YESNO "${MUI_REMOVEDATA_CONFIRM_EN}" IDYES REMOVEDATAFILE IDNO SETMSGMANUAL
${Break}
${EndSwitch}
The implementation of the codes above has been successful with different language text strings displayed on the message box based on the selected installation language.
However, despite the the varying strings based on varying language selection, the 'Yes' and 'No' buttons still remain in English.
Is it due to the fact that MB_YESNO is fixed for English only? Are there methods to make the 'Yes' and 'No' button displays also change with varying language selection?
For instance, If I were to select the French language at the beginning of the installation process, is there a way that the Message box displays the 'Yes' and 'No' buttons as 'Oui' and 'Non' (French Language)?
Thanks a million for any available assistance.