Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 12th March 2012, 12:21   #1
jlg29387
Junior Member
 
Join Date: Mar 2012
Posts: 2
How to rename a section automatically depending on the language chosen

Greetings,

I don't know do this,

-How to rename a section automatically depending on the language chosen to start the installer?

-And how a section install a some files or other depending on the language chosen in the installer.

I don't know if this in another post said the same thing but I hope you can help me. Thanks
jlg29387 is offline   Reply With Quote
Old 12th March 2012, 13:19   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
${If} $LANGUAGE == "1033"
; English
File "English\YourFile.ext"
${ElseIf} $LANGUAGE == "something else"
; Some other language
File "OtherLang\YourFile.ext"
${ElseIf} etc etc
${EndIf}


Use SectionSetText to rename sections. http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.13.3
MSG is offline   Reply With Quote
Old 13th March 2012, 08:21   #3
jlg29387
Junior Member
 
Join Date: Mar 2012
Posts: 2
Great. Thanks ^_^
jlg29387 is offline   Reply With Quote
Old 13th March 2012, 16:35   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You can just use a language string for the section name. No need to set the text using SectionSetText.

Stu
Afrow UK 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