Prev Previous Post   Next Post Next
Old 1st February 2006, 00:03   #1
oborstad
Junior Member
 
Join Date: Jan 2006
Location: A Game company in Edmonton
Posts: 11
ifdef and langstrings

Hi All,

Is there a way to tell if a string has been defined for a language? I'm trying to to something like:


test.nsh:
code:
!ifndef $(error_message)
LangString error_message ${LANG_ENGLISH} "My generic error message"
!endif

function test
MessageBox MB_OK ${error_message
functionend


main.nsi
code:
!include test.nsh
LangString error_message ${LANG_ENGLISH} "Override message"
...
call test


but anything I've come up with so far only results in either a warning message in the compiler of:
LangString "..." set multiple times for 1033, wasting space (...)

when I test it out, it seems to work as long as I put the message I want before the include (since it ignores the second one)... but I would rather not see the warning. I've looked through the source for NSIS and through the examples, and plugins, etc... but haven't really found anything like this...

Thanks!

Owen Borstad

(long time lurker and quite adept, but currently stumped on this)
oborstad is offline   Reply With Quote
 
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