Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st July 2009, 14:02   #1
FelixG
Junior Member
 
Join Date: Jul 2009
Posts: 2
Question Displaying the language selection dialog in the operating system's ui language

Hi!
Since I'm utterly stuck and haven't found anything that applies, I decided to post this here in the hopes that someone might have a clue.
I have created a setup using the modern ui 2.
One of the first things I do in .onInit is:
!insertmacro MUI_LANGDLL_DISPLAY
to display a dialog in which the user can select the install language.
This dialog is always displayed in English. However, I have the requirement that it be displayed in the operating system's ui language if possible, and in English otherwise.
Could anyone please offer some advice?
Greetings from Germany,
Felix
FelixG is offline   Reply With Quote
Old 21st July 2009, 14:49   #2
ryanpager
Junior Member
 
Join Date: Jun 2009
Posts: 45
Write an If/Else statement for the languages section which reads the registry for the default language, something like this

Function .oninit
Search Registry Key
Read/Parse string

${If} Registry string == sdfjlskdf
!insertmacro MUI_LANGUAGE "English"
${Else}
!insertmacro MUI_LANGUAGE "whatever else"
${endif}

FunctionEnd


Something like that.
ryanpager is offline   Reply With Quote
Old 22nd July 2009, 07:26   #3
FelixG
Junior Member
 
Join Date: Jul 2009
Posts: 2
Thank you for your reply!
I'm sorry that I may not have provided enough detail about my problem. There is a macro called MUI_LANGDLL_DISPLAY which displays a dialog that lets the user select the setup language. My question concerns the language of this dialog itself. I would like it to be displayed in the operating system's ui language.
The language selection dialog is the first thing a user will se when running my setup. So, this dialog should greet the user in her/his own language.
Greetings,
FelixG
FelixG is offline   Reply With Quote
Old 10th February 2010, 00:36   #4
jdt2oo7
Member
 
Join Date: Oct 2009
Posts: 72
Have anyone found a solution for this yet? (display the message in user operating system's language for the language selection dialog). Thanks!
jdt2oo7 is offline   Reply With Quote
Old 10th March 2010, 15:20   #5
ssssss
Junior Member
 
Join Date: Mar 2010
Posts: 4
It's simple. Put this code on script:
code:
!define MUI_LANGDLL_WINDOWTITLE $(msgLangChoiceTitle)
!define MUI_LANGDLL_INFO $(msgLangChoice)

and define language strings:
code:
LangString msgLangChoice ${LANG_ENGLISH} "English Text"
LangString msgLangChoice ${LANG_UKRAINIAN} "Ukrainian Text"

LangString msgLangChoiceTitle ${LANG_ENGLISH} "English Text"
LangString msgLangChoiceTitle ${LANG_UKRAINIAN} "Ukrainian Text"

ssssss 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