|
|
#1 |
|
Junior Member
Join Date: Feb 2007
Posts: 13
|
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. |
|
|
|
|
|
#2 |
|
Forum King
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 |
|
|
|
|
|
#3 |
|
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: So, if some one writes in .nsh: code: "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. |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
\NSIS\Contrib\Language files
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
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. |
|
|
|
|
|
#6 |
|
Forum King
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 |
|
|
|
|
|
#7 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Feb 2007
Posts: 13
|
Thank you, dear NSIS developer. That comes to the point.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|