Archive: LangString and CompletedText


LangString and CompletedText
Hi you specialists,

if I use LangString in combination with CompletedText, it leaves the default content in the variable. I just used the delivered example "Languages.nsi" and reduced it to two languages. Then I did the following replacement:

;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; THIS WAS ORIGINAL, NOW AS COMMENT:
; Set one text for all languages (simply don't use a LangString)
;CompletedText "Languages example completed"
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; NOW I TRY TO TRANSLATE IT ALSO:
LangString CompletedText ${LANG_ENGLISH} "Languages example completed"
LangString CompletedText ${LANG_GERMAN} "Sprachbeispiel beendet"
;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I also used ^CompletedText instead of CompletedText, but it didn't work too. What does the preceding "^" mean? When all action is ready, on top of the 100% progress bar the standard content of the variable CompletedText is used. I appended my test NSI file.

Thanks for any comment, best regards

Harald Friedrich


LangString CompletedText ${LANG_ENGLISH} "Languages example completed"
LangString CompletedText ${LANG_GERMAN} "Sprachbeispiel beendet"

CompletedText $(CompletedText)

Function and variable
Hi,

thanks Red Wine! It works fine. That means in your example the first two "CompletedText" are variables used by the function "LangString". The third "CompletedText" is a function call and the last "$(CompletedText)" is my variable again, seen as a string using $(...). Is that correct?

Do you know what the preceding "^" means in "^ComponentText" in the delivered example?

Thanks again for your precious help!

Best regards

Harald Friedrich


I noticed that you were using the "Languages.nsi" example.
Well, things that you're asking, there are all there :-)
See also NSIS manual about ComponentText and CompletedText.

Happy New Year


Thanks again, Red Wine! I'm already having a look. Best wishes from Germany to Greece too. Might 2007 be more peaceful than 2006 was.

Harald


How to "ComponentText text [subtext] [subtext2]]" in MUI?
I`ve found only MUI_DESCRIPTION_TEXT. But what about others two texts?

And how to insert hyperlink in component description?


See included example languages.nsi, affects mui as well.


languages.nsi doesn`t help to answer my question at all.

I need to set three (3) texts for each component in MUI.
And add a link to each component description for user to click (...launching browser...) and see screenshot of the component.


There is an example in manual:

LangString DESC_Section1 ${LANG_ENGLISH} "Description of section 1."
LangString DESC_Section2 ${LANG_ENGLISH} "Description of section 2."

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
!insertmacro MUI_FUNCTION_DESCRIPTION_END

But what about MUI_DESCRIPTION_SUBTEXT or MUI_DESCRIPTION_SUBTEXT2 or something like that? How this options called in MUI?


copied from languages.nsi,

; Directly change the inner lang strings (Same as ComponentText)
LangString ^ComponentsText ${LANG_ENGLISH} "English component page"

same goes for ComponentsSubText1 and ComponentsSubText2_NoInstTypes and ComponentsSubText2.

Don't know how to add hyperlink in description.

ComponentsText set a caption for a components block but not their DESCRIPTION.

ComponentsSubText1 and ComponentsSubText2 don`t work. I cannot see them in GUI whatever I click, mouseover or else.

It`s unbelievable! Nobody knows how to implement core feature of components page - component description. I saw dozens of NSIS installers with this feature. But how they do it?


See mui documentation,

http://nsis.sourceforge.net/Docs/Mod...UI/Readme.html

expand Page Settings and expand Components Page Settings.

Unbelievable is that I'm trying to help you here.


>>Unbelievable is that I'm trying to help you here.
And I appreciate it very much.

But I`ve already saw this page and tried those commands.
And it doesn`t work.
For example, MUI_COMPONENTSPAGE_TEXT_COMPLIST. What is it?
When I set it in section block compiler says that there is no such command.
When I insert it as macro it says no such macro.


A! I`ve googled it. It a variable I need to set before
!insertmacro MUI_PAGE_COMPONENTS

I should read manual carefully and not to hurry to get result faster.

Thanks for help, Red Vine.


My suggestion is (for everyone) read the documentation, examine the provided examples, search the forum and try solutions provided in related with your query threads, and finally post your query.

Because sometimes this doesn't happen, (plus none says "man I don't like to read documentation and examine examples either, just give me the code I need") I always get confused to believe that all it needs is a couple of hints.


I don`t know how many scripting languages do you know but for me each time it takes several days and developed applications to feel the taste of it and to evolve from idiot to homo sapiens sapiens.

PS
Moreover when you don`t know what is this language or technology about you are always trying to get more info in the fastest way to find out what it can do and decide if it worth learning.


I don`t know how many scripting languages do you know but for me each time it takes several days and developed applications to feel the taste of it and to evolve from idiot to homo sapiens sapiens.
NSIS is the only scripting lang I'm about to know.

Moreover when you don`t know what is this language or technology about you are always trying to get more info in the fastest way to find out what it can do and decide if it worth learning.
Talking about nsis is an amazing lang, just stay around for a while and you'll see what I mean.