Archive: Multi Lingual questions 2


Multi Lingual questions 2
  I have several of these discreptions for sections in the installer, these are english translations and I want to be able to specofy other lines that have a german translation of the same thing.


insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN

>!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} "PROGRAM_1(ENGLISH)"
>!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy2} "PROGRAM_2(ENGLISH)"
>!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy3} "PROGRAM_3(ENGLISH)"
>!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy4} "PROGRAM_4(ENGLISH)"
>!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy5} "PROGRAM_5(ENGLISH)"
>!insertmacro MUI_FUNCTION_DESCRIPTION_END
>
How do I display a custom page in english and when you select German, it will display a different custom user page


Page custom CustomPageB 

>
and how do I start the messenger service on the install computer?

Use:


LangString Descript1 ${LANG_ENGLISH} "Eng desc"
LangString Descript1 ${LANG_GERMAN} "Germ desc"
...
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} "$(Descript1)"


When you will choose English language - the description will be shown with the English text, in the same way for German language.
Also use LangString to set labels for elements of custom page.
If you want to use different custom pages for different languages than check language in creator functions of custom pages.

nsExec::Exec 'net.exe START "Messenger"'


Originally posted by glory_man
Use:

LangString Descript1 ${LANG_ENGLISH} "Eng desc"
LangString Descript1 ${LANG_GERMAN} "Germ desc"
...
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} "$(Descript1)"


When you will choose English language - the description will be shown with the English text, in the same way for German language.
Also use LangString to set labels for elements of custom page.
If you want to use different custom pages for different languages than check language in creator functions of custom pages.
but the custom page things are all links, can they be lang at the same time?

Why not? You should change "Text" value ("State" value hold link [address]). So define strings with LangString and use it where it needed.



***93;

>Type=Link
LangString Text${LANG_ENGLISH}=Many thanks to the guys at WinPcap for donating to us a Silent Installer for WinPcap.
>State=http://winpcap.polito.it/misc/wlist.htm
>Left=0
Right
=-1
Top=60
Bottom=70
>

is that right, i was trying it and it didnt work?

No. You should declare a variable in a script somewhere after the announcement of languages. For example:


!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"

LangString link ${LANG_ENGLISH} "Eng Text"
LangString link ${LANG_GERMAN} "Germ Text"

After that write this value in to the text-value of ini-file inside creator function of custom page.

Function CustomPageA
...
!insertmacro MUI_INSTALLOPTIONS_WRITE "io.ini" "Field 4" "Text" "$(link)"
...
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "io.ini"
...
FunctionEnd

ini-file content by default can be:
[Field 4]
Type=Link
Text=txt -----> this line even can be removed
State=http://winpcap.polito.it/misc/wlist.htm
Left=0
Right=-1
Top=60
Bottom=70

beautiful, worked like a charm, now I got to do the same thing with 9 more pages, thank you.

ok, now how do I specify one .txt file to be displayed in the license page of the english version and a different .txt in german?



!insertmacro MUI_PAGE_LICENSE "$(LICENSETXT)"
...
LicenseLangString LICENSETXT ${LANG_ENGLISH} "license_eng.txt"
LicenseLangString LICENSETXT ${LANG_GERMAN} "license_germ.txt"

thank you, now I need to get 2 phrases translated so we can release and I can get money for my new laptop (YESS!!!!)