jlg29387
12th March 2012 14:21 UTC
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
MSG
12th March 2012 15:19 UTC
${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
jlg29387
13th March 2012 10:21 UTC
Great. Thanks ^_^
Afrow UK
13th March 2012 18:35 UTC
You can just use a language string for the section name. No need to set the text using SectionSetText.
Stu