2002-08-26 15:07:25 +00:00
|
|
|
OutFile languages.exe
|
|
|
|
|
|
|
|
XPStyle on
|
|
|
|
|
|
|
|
; First is default
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
|
|
|
|
Name English
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Dutch.nlf"
|
|
|
|
Name Dutch
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\French.nlf"
|
|
|
|
Name French
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf"
|
|
|
|
Name German
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Korean.nlf"
|
|
|
|
Name Korean
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Russian.nlf"
|
|
|
|
Name Russian
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Spanish.nlf"
|
|
|
|
Name Spanish
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Swedish.nlf"
|
|
|
|
Name Swedish
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\TradChinese.nlf"
|
|
|
|
Name "Traditional Chinese"
|
2002-09-10 15:09:15 +00:00
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\SimpChinese.nlf"
|
|
|
|
Name "Simplified Chinese"
|
2002-08-26 15:07:25 +00:00
|
|
|
|
|
|
|
; The language can be the last used language like above, but it can be defined using /LANG
|
2002-09-13 14:58:07 +00:00
|
|
|
ComponentText /LANG=${LANG_ENGLISH} "English component page"
|
|
|
|
ComponentText /LANG=${LANG_DUTCH} "Dutch component page"
|
|
|
|
ComponentText /LANG=${LANG_FRENCH} "French component page"
|
|
|
|
ComponentText /LANG=${LANG_GERMAN} "German component page"
|
|
|
|
ComponentText /LANG=${LANG_KOREAN} "Korean component page"
|
|
|
|
ComponentText /LANG=${LANG_RUSSIAN} "Russian component page"
|
|
|
|
ComponentText /LANG=${LANG_SPANISH} "Spanish component page"
|
|
|
|
ComponentText /LANG=${LANG_SWEDISH} "Swedish component page"
|
|
|
|
ComponentText /LANG=${LANG_TRADCHINESE} "Traditional Chinese component page"
|
|
|
|
ComponentText /LANG=${LANG_SIMPCHINESE} "Simplified Chinese component page"
|
2002-08-26 15:07:25 +00:00
|
|
|
|
|
|
|
; scetion names will be given in .onInit to match the language choosen by the user
|
|
|
|
Section " " sec1
|
|
|
|
; $0 is already set from .onInit
|
|
|
|
MessageBox MB_OK "$0 section"
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section " " sec2
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing English stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_DUTCH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing Dutch stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_FRENCH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing French stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_GERMAN} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing German stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_KOREAN} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing Korean stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_RUSSIAN} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing Russian stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_SPANISH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing Spanish stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_SWEDISH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing Swedish stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_TRADCHINESE} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
MessageBox MB_OK "Installing Traditional Chinese stuff"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +2
|
2002-09-10 15:09:15 +00:00
|
|
|
MessageBox MB_OK "Installing Simplified Chinese stuff"
|
2002-08-26 15:07:25 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Function .onInit
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_ENGLISH}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push English
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_DUTCH}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push Dutch
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_FRENCH}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push French
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_GERMAN}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push German
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_KOREAN}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push Korean
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_RUSSIAN}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push Russian
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_SPANISH}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push Spanish
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_SWEDISH}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push Swedish
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_TRADCHINESE}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push "Traditional Chinese"
|
2002-09-13 14:58:07 +00:00
|
|
|
Push ${LANG_SIMPCHINESE}
|
2002-09-22 10:28:38 +00:00
|
|
|
Push "Simplified Chinese"
|
|
|
|
Push 10 ; 10 is the number of languages
|
|
|
|
LangDLL::LangDialog "Installer Language" "Please select the language of the installer"
|
2002-08-26 15:07:25 +00:00
|
|
|
|
2002-08-28 22:45:37 +00:00
|
|
|
Pop $LANGUAGE
|
|
|
|
StrCmp $LANGUAGE "cancel" 0 +2
|
|
|
|
Abort
|
2002-08-26 15:07:25 +00:00
|
|
|
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "English"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_DUTCH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "Dutch"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_FRENCH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "French"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_GERMAN} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "German"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_KOREAN} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "Korean"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_RUSSIAN} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "Russian"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_SPANISH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "Spanish"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_SWEDISH} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "Swedish"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_TRADCHINESE} 0 +2
|
2002-08-26 15:07:25 +00:00
|
|
|
StrCpy $0 "Traditional Chinese"
|
2002-09-13 14:58:07 +00:00
|
|
|
StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +2
|
2002-09-10 15:09:15 +00:00
|
|
|
StrCpy $0 "Simplified Chinese"
|
2002-08-26 15:07:25 +00:00
|
|
|
|
|
|
|
; Set the section name to something localized
|
|
|
|
SectionSetText ${sec1} "!$0 section #1"
|
|
|
|
SectionSetText ${sec2} "$0 section #2"
|
|
|
|
FunctionEnd
|