Old 12th June 2012, 14:30   #1
baby123
Junior Member
 
Join Date: Oct 2005
Posts: 8
Custom language select

Hello,

I have the following code:

code:
code:
Function .onInit
;; set getman locale if .....
StrCpy $LANGUAGE ${LANG_GERMAN}

MessageBox MB_OK "A translated message: $(CONTINUE_SETUP_TXT)"




I need to set the language of the installer onInit.
the problem is that,
inside the OnInit function, there is locale messages,
but the current language is changed only after ONINIT finished.
so it is always in ENGLISH....

could u help me with it?
baby123 is offline   Reply With Quote
Old 12th June 2012, 14:32   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,593
Move the messagebox to the next event (.onguiint for normal invocations and section for silent)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast 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