Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 22nd May 2006, 06:31   #1
baskaran.vishnu
Junior Member
 
Join Date: Apr 2006
Posts: 41
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.
baskaran.vishnu is offline   Reply With Quote
Old 22nd May 2006, 08:25   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
MessageBox buttons always show within default installed windows language e.g. if the default win lang is english will be yes/no/abort etc.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 29th May 2006, 10:36   #3
baskaran.vishnu
Junior Member
 
Join Date: Apr 2006
Posts: 41
Hi,

Sorry for my late reply.

Thanks very much for the info.
baskaran.vishnu is offline   Reply With Quote
Old 29th May 2006, 15:03   #4
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
Quote:
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.
glory_man is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump