Hi all,
i am using
FileWrite $0 "LangString CheckDBName {LANG_ENGLISH} $\"Please check DB Name$\""
to create a set of translation files (comes out of a database we use for tracking translations).
In the file the string will look like this:
LangString CheckDBName 1033 "Please check DB Name"
is there a way to prevent the resolution of ${LANG_ENGLISH} to 1033 ?
Thanks a lot
xBarns
Prevent Resolution of Variable
9 posts
You mean define?
You can use this hack:
You can use this hack:
!define dollar $
Foo ${dollar}{LANG_ENGLISH}
That does the trick
Thanks a lot!
Thanks a lot!
what's wrong with $${LANG_ENGLISH}?Originally Posted by Anders View PostYou can use this hack:
I tried that first but it did not work 🙁Originally Posted by Yathosho View Postwhat's wrong with $${LANG_ENGLISH}?
Only works to escape a variable, I think.
i'm pretty sure i got it working with a definition in a script of mine - otherwise my entire installer wouldn't work, but it doesOriginally Posted by MSG View PostOnly works to escape a variable, I think.
!define foo bar
detailprint "$${foo}"
Compiler: unknown variable/constant "bar" detected, ignoring (D:\Projects\MB\Installer\test.nsi:22)
Installer: $bar
detailprint "$$${foo}"
Compiler: no warnings
Installer: $bar
So no, doesn't work.
detailprint "$${foo}"
Compiler: unknown variable/constant "bar" detected, ignoring (D:\Projects\MB\Installer\test.nsi:22)
Installer: $bar
detailprint "$$${foo}"
Compiler: no warnings
Installer: $bar
So no, doesn't work.
Heh, nice trick 🙂Originally Posted by Anders View PostYou mean define?
You can use this hack: