Old 28th February 2007, 00:27   #1
chjfth
Junior Member
 
Join Date: Feb 2007
Posts: 13
Question 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.
chjfth is offline   Reply With Quote
Old 28th February 2007, 04:55   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
!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.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 28th February 2007, 12:27   #3
chjfth
Junior Member
 
Join Date: Feb 2007
Posts: 13
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.
chjfth is offline   Reply With Quote
Old 28th February 2007, 13:02   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
\NSIS\Contrib\Language files

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 1st March 2007, 04:09   #5
chjfth
Junior Member
 
Join Date: Feb 2007
Posts: 13
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.
chjfth is offline   Reply With Quote
Old 1st March 2007, 10:59   #6
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
I don't think NSIS install dir is the right place to search for Anders signature

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 1st March 2007, 18:35   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 6th March 2007, 00:42   #8
chjfth
Junior Member
 
Join Date: Feb 2007
Posts: 13
Thank you, dear NSIS developer. That comes to the point.
chjfth is offline   Reply With Quote
Reply
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