Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Where does LANG_ENGLISH get defined (http://forums.winamp.com/showthread.php?t=266753)

chjfth 28th February 2007 00:27

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 04:55

!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 12:27

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:

code:

!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:

code:
!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 13:02

\NSIS\Contrib\Language files

chjfth 1st March 2007 04:09

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 10:59

I don't think NSIS install dir is the right place to search for Anders signature ;)

kichik 1st March 2007 18:35

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 00:42

Thank you, dear NSIS developer. That comes to the point.


All times are GMT. The time now is 04:14.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.