chjfth
28th February 2007 01:27 UTC
Where does LANG_ENGLISH get defined
I'm using NSIS 2.24 and a novice to it. When I !include "MUI.nsh", I know that I can use the const or variable ${LANG_ENGLISH} whose value is 1033.
But I can't figure out where LANG_ENGLISH is defined, after a full-text search for it in all *.nsh in ${NSISDIR} dir.
Could someone tell me where it is defined? Thanks.
Red Wine
28th February 2007 05:55 UTC
!insertmacro MUI_LANGUAGE "English"
and use the constant $LANGUAGE which now contains 1033.
If installer is multilingual $LANGUAGE contains the selected lang code.
See included MUI examples.
chjfth
28th February 2007 13:27 UTC
Sorry, Red Wine, but I don't think you've made it clear.
I know, the macro MUI_LANGUAGE is defined in "Modern_UI\System.nsh", which appears like this:
!macro MUI_LANGUAGE LANGUAGE
!verbose push
!verbose ${MUI_VERBOSE}
!include "${NSISDIR}\Contrib\Modern UI\Language files\${LANGUAGE}.nsh"
!verbose pop
!macroend
So, if some one writes in .nsh:
!insertmacro MUI_LANGUAGE "English"
"Modern UI\Language files\English.nsh" will be included. But after viewing English.nsh, I still can't see where LANG_ENGLISH is defined.
What's more, I've searched all stock .nsh for the number 1033, and can't find it either(except in a comment section in English.nsh).
Please make it clear for me.
Anders
28th February 2007 14:02 UTC
\NSIS\Contrib\Language files
chjfth
1st March 2007 05:09 UTC
Oops. Please be generous to write it more clearly, Anders.
I searched *.* in my NSIS intall dir for ``$PostCount'', I found nothing. So I don't don't know you meaning.
Red Wine
1st March 2007 11:59 UTC
I don't think NSIS install dir is the right place to search for Anders signature ;)
kichik
1st March 2007 19:35 UTC
LANG_ENGLISH is defined by LoadLanguageFile when you load English.nlf. You won't find it in any language file because it's automatically generated.
chjfth
6th March 2007 01:42 UTC
Thank you, dear NSIS developer. That comes to the point.