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:
kichik 2002-08-28 22:45:37 +00:00
parent ff72155e94
commit df997ad3d9

View file

@ -61,56 +61,33 @@ Section " " sec2
SectionEnd SectionEnd
Function .onInit Function .onInit
StrCmp $LANGUAGE 1033 0 +2 Push "Installer Language" ; caption
StrCpy $0 "English" Push "Please select the language of the isntaller" ; text
StrCmp $LANGUAGE 1043 0 +2 Push English
StrCpy $0 "Dutch" Push 1033
StrCmp $LANGUAGE 1036 0 +2 Push Dutch
StrCpy $0 "French" Push 1043
StrCmp $LANGUAGE 1031 0 +2 Push French
StrCpy $0 "German" Push 1036
StrCmp $LANGUAGE 1042 0 +2 Push German
StrCpy $0 "Korean" Push 1031
StrCmp $LANGUAGE 1049 0 +2 Push Korean
StrCpy $0 "Russian" Push 1042
StrCmp $LANGUAGE 1034 0 +2 Push Russian
StrCpy $0 "Spanish" Push 1049
StrCmp $LANGUAGE 1053 0 +2 Push Spanish
StrCpy $0 "Swedish" Push 1034
StrCmp $LANGUAGE 1028 0 +2 Push Swedish
StrCpy $0 "Traditional Chinese" 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 Pop $LANGUAGE
StrCpy $LANGUAGE 1033 ; English code is 1033 StrCmp $LANGUAGE "cancel" 0 +2
Goto langSelected Abort
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
langSelected:
StrCmp $LANGUAGE 1033 0 +2 StrCmp $LANGUAGE 1033 0 +2
StrCpy $0 "English" StrCpy $0 "English"
StrCmp $LANGUAGE 1043 0 +2 StrCmp $LANGUAGE 1043 0 +2