Old 22nd April 2006, 17:18   #1
stem07
Junior Member
 
Join Date: Apr 2006
Posts: 1
[MUI] Multilingual custom page

Hi,

I'm using MUI for creating multi-lingual installation files. After the license page (license generally in English) and just before the directory page, I want to display some text in the appropriate language.

!insertmacro MUI_PAGE_LICENSE "license.txt"
Page custom InfoBefore
!insertmacro MUI_PAGE_DIRECTORY

I'm trying to adapt the the example "MultiLanguage.nsi", but I'm not sure how to achieve this. I don't know how to combine the language selection with the choice of the appropriate ini file. Or are there simpler possibilities?

I'm trying this:

LangString TEXT_INFO_BEFORE ${LANG_ENGLISH} "ioA_en.ini"
LangString TEXT_INFO_BEFORE ${LANG_GERMAN} "ioA_de.ini"

!insertmacro MUI_INSTALLOPTIONS_EXTRACT "$(TEXT_INFO_BEFORE)"

This doesn't work: File: "$(TEXT_INFO_BEFORE)" -> no files found.

Thank you.


Stefan
stem07 is offline   Reply With Quote
Old 22nd April 2006, 17:53   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You can't do it like that. LangStrings are run time. The installer can't compress a file at compile time with a name that will be set at run time. This is a logical impossibility

You should extract the same InstallOptions INI file, but write the language strings to the fields with MUI_INSTALLOPTIONS_WRITE before showing the page.

-Stu
Afrow UK is offline   Reply With Quote
Old 3rd May 2006, 13:49   #3
cri_ned
Junior Member
 
Join Date: May 2005
Posts: 22
Send a message via Yahoo to cri_ned
hi, sorry to ask this, but I have the same problem. Do you mean that MUI_INSTALLOPTIONS_WRITE could overwrite the texts from the ini?
cri_ned is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump