|
|
#1 |
|
Junior Member
Join Date: Jan 2007
Posts: 8
|
language settings on custom page
Hi,
how can I change the language on a customPage? I've coded the texts hard into the installer script. But ho can I change the language with the language dialog? Any ideas? Thanks... here is my code: PHP Code:
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jan 2007
Posts: 8
|
perhaps there is a registry key?
|
|
|
|
|
|
#3 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
There is no need to post your entire script here.
All you need is read the manual at 4.9.15.2 LangString and examine the included examples languages.nsi and MultiLanguage.nsi. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2007
Posts: 8
|
ok I still found the examples and looked at it.
so this has to work, or? : PHP Code:
Thank you |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
The !if statements you're using are suitable for the compiler not for installer, use LogicLib instead.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jan 2007
Posts: 8
|
ok, now I tried this:
LangString Message ${LANG_ENGLISH} "Englisch" LangString Message ${LANG_GERMAN} "Deutsch" ... MessageBox MB_OK $(Message) this does not work. Then I tried it so: ${if} ${LANG_GERMAN} MessageBox MB_OK "DEUTSCH" ${else} ${LANG_ENGLISH} MessageBox MB_OK "ENGLISCH" ${endif} what on hell is going wrong? |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2007
Posts: 8
|
ok, now I have the mistake:
I had to move the instruction call writeini from .onInit to showChecksummary. |
|
|
|
|
|
#8 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Once you have defined all the desired multilingual text, (custom page's header and subheader text must be added into the page's create function) you have to replace all hard coded static text (labels, groupboxes, radios etc) with the corresponding multilingual message.
Be aware when you write to ini e.g. type=groupbox text=$(GroupBox_Txt) The definition must already exist, so this can't be done into .onInit function. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|