Archive: Multi language in Custom pages


Multi language in Custom pages
Hi,
How can I make a customer page, also multi language?

Anybody have an idea?

John


Use language strings definitions (may be in separate file and !include it in nsi script file):

LicenseLangString myLicenseData ${LANG_ENGLISH} license_en.txt
LicenseLangString myLicenseData ${LANG_RUSSIAN} license_ru.txt
LicenseLangString myLicenseData ${LANG_ITALIAN} license_it.txt
LicenseLangString myLicenseData ${LANG_JAPANESE} license_jp.txt
LicenseLangString myLicenseData ${LANG_GERMAN} license_ge.txt
LicenseData $(myLicenseData)

LangString productTitle ${LANG_ENGLISH} "Product selection page"
LangString productTitle ${LANG_RUSSIAN} "Страница выбора продукта"
LangString productTitle ${LANG_ITALIAN} "Selezione del prodotto"
LangString productTitle ${LANG_JAPANESE} "Product selection page"
LangString productTitle ${LANG_GERMAN} "Produktauswahl"

and in page creation

Function nsDialogsProduct
!insertmacro MUI_HEADER_TEXT "$(productTitle)" ""
nsDialogs::Create /NOUNLOAD 1018
Pop $0
${NSD_CreateLabel} 0 0 100% 59 "$(productSubTitle)"
Pop $0
.....

Thanks, this working great:


!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
nsDialogs::Create /NOUNLOAD 1018
Pop $0
${NSD_CreateCheckbox} 0 30 100% 20 "&$(desktopLink)"
Pop $rv_desktop
${NSD_CreateCheckbox} 0 50 100% 20 "&$(autostartLink)"
Pop $rv_autostart

${NSD_CreateLabel} 0 90 100% 20 "$(textLink)"
${NSD_CreateLabel} 0 112 60 20 "&$(userLink)"
${NSD_CreateText} 60 110 50% 20 "Adminitrator"
Pop $rv_user
${NSD_CreateLabel} 0 135 60 20 "&$(passLink)"
${NSD_CreatePassword} 0 153 100% 20 "&$(autostartLink)"
Pop $rv_password

nsDialogs::Show


But now the CreatePassword does not work?

John