Old 21st March 2005, 17:20   #1
Innov-art
Junior Member
 
Join Date: Mar 2005
Posts: 5
Question Multilingual Section Naming in MUI

Hi!

I am desperately trying to figure out how to make a Section name multilingual (English and French). This is a section that allows the user to put or not to put a shortcut on the Desktop. Here's what I have:

;--------------------------------
;Desktop Shortcut Section

LangString SecDeskShortcut ${LANG_ENGLISH} "Desktop Shortcut"
LangString SecDeskShortcut ${LANG_FRENCH} "Raccourci bureau"

SectionIn 1 2 3
CreateShortCut "$DESKTOP\ReserveIT.lnk" "$INSTDIR\ReserveIT.exe"

SectionEnd

;--------------------------------


And here's the error:

Error: command LangString not valid in section
Error in script "C:\Program Files\NSIS\Examples\Modern UI\ReserveIT.nsi" on line 134 -- aborting creation process


Is there a macro that I should be using instead of a direct LangString call to name a section?


Version: NSIS 2.06
Type: MUI

Thanks,

Ian
Innov-art is offline   Reply With Quote
Old 21st March 2005, 17:52   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Shouldn't it be like this...?
code:

LangString SecDeskShortcutName ${LANG_ENGLISH} "Desktop Shortcut"
LangString SecDeskShortcutName ${LANG_FRENCH} "Raccourci bureau"

Section "$(SecDeskShortcutName)" SecDeskShortcut
SectionIn 1 2 3
CreateShortCut "$DESKTOP\ReserveIT.lnk" \
"$INSTDIR\ReserveIT.exe"
SectionEnd



-Stu
Afrow UK is offline   Reply With Quote
Old 21st March 2005, 18:50   #3
Innov-art
Junior Member
 
Join Date: Mar 2005
Posts: 5
Wow! It actually worked!

Great stuff! Thanks so much!

Sincerely,

Ian
Innov-art 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