Old 11th September 2015, 19:39   #1
ccaron2
Junior Member
 
Join Date: Sep 2015
Posts: 2
Define MUI_FINISHPAGE_SHOWREADME_TEXT based on language

Hello,

In our *.nsis file we have the following:

!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut"

The problem is that no matter which installation language is selected by the user, the text "Create Desktop Shortcut" is always displayed in English. For example if the user selects Spanish as the installation language, the installer screens are all displayed in Spanish excepts for the "Create Desktop Shortcut" label (near the checkbox on the last screen, see the example.png attache file).

Is it possible to define (or re-define) MUI_FINISHPAGE_SHOWREADME_TEXT based on the language selected by the user?

Thanks!
Attached Thumbnails
Click image for larger version

Name:	example.png
Views:	137
Size:	27.1 KB
ID:	51985  
ccaron2 is offline   Reply With Quote
Old 11th September 2015, 21:54   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Use langstrings:

Quote:
!include MUI.nsh
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_SHOWREADME "$windir\Explorer.exe"
!define MUI_FINISHPAGE_SHOWREADME_TEXT "$(FINISH_READMETXT)"
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE "Portuguese"
!insertmacro MUI_LANGUAGE "Spanish"
LangString FINISH_READMETXT ${LANG_PORTUGUESE} "Foo"
LangString FINISH_READMETXT ${LANG_SPANISH} "Bar"

Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 14th September 2015, 12:25   #3
ccaron2
Junior Member
 
Join Date: Sep 2015
Posts: 2
Thanks Anders!
ccaron2 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