Skip to content
⌘ NSIS Forum Archive

HOWTO use strings from *.nlf files?

5 posts

ramon18#

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
Afrow UK#
I'm not sure what the content of a nlf file looks like.
Show me, maybe I can help you 🙂

-Stu
ramon18#
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
kichik#
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.