Old 16th January 2009, 22:48   #1
AleksR
Junior Member
 
Join Date: Jan 2009
Posts: 1
Multilingual Readme (again), please help me

Try use Readme Page Based on MUI License Page
http://nsis.sourceforge.net/Readme_P...I_License_Page

My code:

PHP Code:
!define MyReadme "ReadmeEnglish.rtf"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_README "$(MyReadme)"
;!insertmacro MUI_PAGE_README "ReadmeEnglish.rtf"
!insertmacro MUI_PAGE_LICENSE "$(MyLicense)"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

;------------------------------------------------------------------------------
!
insertmacro MUI_LANGUAGE "English"
${ReadmeLanguage'${LANG_ENGLISH}' \
          
'Read Me' \
          
'Please review the following important information.' \
          
'About $(^name):' \
          
'$\n  Click on scrollbar arrows or press Page Down to review the entire text.'
  
${Un.ReadmeLanguage'${LANG_ENGLISH}' \
          
'Read Me' \
          
'Please review the following important Uninstall information.' \
          
'About $(^name) Uninstall:' \
          
'$\n  Click on scrollbar arrows or press Page Down to review the entire text.'
;------------------------------------------------------------------------------
!
insertmacro MUI_LANGUAGE "Russian" 
${ReadmeLanguage'${LANG_RUSSIAN}' \
          
'Read Me' \
          
'Please review the following important information.' \
          
'About $(^name):' \
          
'$\n  Click on scrollbar arrows or press Page Down to review the entire text.'
  
${Un.ReadmeLanguage'${LANG_RUSSIAN}' \
          
'Read Me' \
          
'Please review the following important Uninstall information.' \
          
'About $(^name) Uninstall:' \
          
'$\n  Click on scrollbar arrows or press Page Down to review the entire text.'
;------------------------------------------------------------------------------
!
insertmacro MUI_RESERVEFILE_LANGDLL

LicenseLangString MyLicense 
${LANG_ENGLISH"LicenseEnglish.rtf"
LicenseLangString MyLicense ${LANG_RUSSIAN"LicenseRussian.rtf"
LicenseData $(MyLicense)

LangString $(MyReadme) ${LANG_ENGLISH"ReadmeEnglish.rtf"
LangString $(MyReadme) ${LANG_RUSSIAN"ReadmeRussian.rtf"

....

Function .
onInit
  
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd

.... 
Multilingual License is ok, but Multilingual Readme is empty (text empty). Where an error?

If to make so:
!insertmacro MUI_PAGE_README "ReadmeEnglish.rtf"
instead of:
!insertmacro MUI_PAGE_README "$(MyReadme)"
the page is displayed correctly, but always in English.

Help me, please. How correctly to make multilingual Readme page ?
AleksR is offline   Reply With Quote
Old 17th January 2009, 09:14   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
What is $(MyReadme) anyway? If it's a definition, it has to be defined on your definitions table e.g.
!define MYREADME "local_path_to_text_or_rtf_file"
and use it later as,
!insertmacro MUI_PAGE_README "${MYREADME}"

The way you use it is referring to a lang string which also has to be defined on your lang strings table therefore it represents a specific language string and not the path to a local file.

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
Red Wine 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