Archive: Message Box (MB_YESNO) 'Yes' and 'No' button language translation HELP!


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.


MessageBox buttons always show within default installed windows language e.g. if the default win lang is english will be yes/no/abort etc.


Hi,

Sorry for my late reply.

Thanks very much for the info.


MessageBox buttons always show within default installed windows language e.g. if the default win lang is english will be yes/no/abort etc.
But if you realy want to tanslate MB buttons you can use Messageboxplugin.