Archive: HOWTO use strings from *.nlf files?


HOWTO use strings from *.nlf files?
Hi,

How can I read defined language strings that are inside *.nlf files?

Another problem:

When I use for example $(MUI_TEXT_CONTINUE_NEXT) the compiler generate the following warning "LangString "MUI_TEXT_CONTINUE_NEXT" is not present in all language tables!". It's possible to force this strings to be present?

TIA,
Ramon


I'm not sure what the content of a nlf file looks like.
Show me, maybe I can help you :)

-Stu


Maybe if you read the doc:
${NSISDIR}\Examples\languages.nsi
You'll get what you need.


I will try to explain better,

What I need is to get strings at runtime that are in *.nlf files,
Example:
I want to pass to my plugin the string "Browse..."
than I call MyPlugin.Dialog /text $(BROWSE_TEXT)

offcorse $(BROWSE_TEXT) doesn't exist but if you look in "...Contrib\Language files\English.nlf" you find at line 24 the follwing text "B&rowse..."

so, what !defines can I use to get pointers to those strings at runtime?

BR,
Ramon


The strings in the NLF are not accessible to the user. You can read the NLF file using FileRead if you want or make another installer that convert the NLF file to a NSIS header file with defines in it and include that file in your script.

As for MUI_TEXT_CONTINUE_NEXT, the MUI probably didn't need it so it didn't define it. Joost would probably know better how to make the MUI define it.