Using the new DLL
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@804 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ff72155e94
commit
df997ad3d9
1 changed files with 24 additions and 47 deletions
|
@ -61,56 +61,33 @@ Section " " sec2
|
|||
SectionEnd
|
||||
|
||||
Function .onInit
|
||||
StrCmp $LANGUAGE 1033 0 +2
|
||||
StrCpy $0 "English"
|
||||
StrCmp $LANGUAGE 1043 0 +2
|
||||
StrCpy $0 "Dutch"
|
||||
StrCmp $LANGUAGE 1036 0 +2
|
||||
StrCpy $0 "French"
|
||||
StrCmp $LANGUAGE 1031 0 +2
|
||||
StrCpy $0 "German"
|
||||
StrCmp $LANGUAGE 1042 0 +2
|
||||
StrCpy $0 "Korean"
|
||||
StrCmp $LANGUAGE 1049 0 +2
|
||||
StrCpy $0 "Russian"
|
||||
StrCmp $LANGUAGE 1034 0 +2
|
||||
StrCpy $0 "Spanish"
|
||||
StrCmp $LANGUAGE 1053 0 +2
|
||||
StrCpy $0 "Swedish"
|
||||
StrCmp $LANGUAGE 1028 0 +2
|
||||
StrCpy $0 "Traditional Chinese"
|
||||
Push "Installer Language" ; caption
|
||||
Push "Please select the language of the isntaller" ; text
|
||||
Push English
|
||||
Push 1033
|
||||
Push Dutch
|
||||
Push 1043
|
||||
Push French
|
||||
Push 1036
|
||||
Push German
|
||||
Push 1031
|
||||
Push Korean
|
||||
Push 1042
|
||||
Push Russian
|
||||
Push 1049
|
||||
Push Spanish
|
||||
Push 1034
|
||||
Push Swedish
|
||||
Push 1053
|
||||
Push "Traditional Chinese"
|
||||
Push 1028
|
||||
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "The closest match for your default language is $0.$\nIf no close match was found (identical primary language) the installer default was selected.$\nDo you want to use it?" IDYES langSelected
|
||||
LangDialog 9 ; 9 is the number of languages
|
||||
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use English?" IDNO +3
|
||||
StrCpy $LANGUAGE 1033 ; English code is 1033
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use Dutch?" IDNO +3
|
||||
StrCpy $LANGUAGE 1043 ; Dutch? code is 1043
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use French?" IDNO +3
|
||||
StrCpy $LANGUAGE 1036 ; French? code is 1036
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use German?" IDNO +3
|
||||
StrCpy $LANGUAGE 1031 ; German code is 1031
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use Korean?" IDNO +3
|
||||
StrCpy $LANGUAGE 1042 ; Korean code is 1042
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use Russian?" IDNO +3
|
||||
StrCpy $LANGUAGE 1049 ; Russian code is 1049
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use Spanish?" IDNO +3
|
||||
StrCpy $LANGUAGE 1034 ; Spanish code is 1034
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use Swedish?" IDNO +3
|
||||
StrCpy $LANGUAGE 1053 ; Swedish code is 1053
|
||||
Goto langSelected
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to use Traditional Chinese" IDNO +3
|
||||
StrCpy $LANGUAGE 1028 ; Traditional Chines code is 1028
|
||||
Goto langSelected
|
||||
Pop $LANGUAGE
|
||||
StrCmp $LANGUAGE "cancel" 0 +2
|
||||
Abort
|
||||
|
||||
langSelected:
|
||||
StrCmp $LANGUAGE 1033 0 +2
|
||||
StrCpy $0 "English"
|
||||
StrCmp $LANGUAGE 1043 0 +2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue