language macro

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1590 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2002-11-04 16:40:35 +00:00
parent 5b94358f2b
commit c0333978c2
5 changed files with 27 additions and 17 deletions

View file

@ -145,7 +145,7 @@ defines and define them again before you insert a language file.</p>
!define MUI_CUSTOMPAGECOMMANDS ;Use customized pages</pre> !define MUI_CUSTOMPAGECOMMANDS ;Use customized pages</pre>
<p class="subheader">4. Insert language files</span></p> <p class="subheader">4. Insert language files</span></p>
<p class="text">Insert the Modern UI language files for the languages you are using:</p> <p class="text">Insert the Modern UI language files for the languages you are using:</p>
<pre class="margin">!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh"</pre> <pre class="margin">!insertmacro MUI_LANGUAGE "English"</pre>
<p class="text">Note: The Modern UI language files load the NLF language files, <p class="text">Note: The Modern UI language files load the NLF language files,
so you should not use LoadLanguageFile.</p> so you should not use LoadLanguageFile.</p>
<p class="subheader">5. Define interface settings (optional)</span></p> <p class="subheader">5. Define interface settings (optional)</span></p>

View file

@ -317,6 +317,16 @@
!macroend !macroend
!macro MUI_LANGUAGE LANGUAGE
!verbose 3
!include "${NSISDIR}\Contrib\Modern UI\Language files\${LANGUAGE}.nsh"
!verbose 4
!macroend
;-------------------------------- ;--------------------------------
;INSTALL OPTIONS ;INSTALL OPTIONS

View file

@ -19,7 +19,7 @@
!define MUI_UNINSTALLER !define MUI_UNINSTALLER
;Language ;Language
!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh" !insertmacro MUI_LANGUAGE "English"
;General ;General
OutFile "Basic.exe" OutFile "Basic.exe"

View file

@ -26,7 +26,7 @@
!define TEMP2 $R1 !define TEMP2 $R1
;Language ;Language
!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh" !insertmacro MUI_LANGUAGE "English"
;General ;General
OutFile "InstallOptions.exe" OutFile "InstallOptions.exe"

View file

@ -19,20 +19,20 @@
!define MUI_UNINSTALLER !define MUI_UNINSTALLER
;Languages ;Languages
!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh" !insertmacro MUI_LANGUAGE "English"
!include "${NSISDIR}\Contrib\Modern UI\Language files\French.nsh" !insertmacro MUI_LANGUAGE "French"
!include "${NSISDIR}\Contrib\Modern UI\Language files\German.nsh" !insertmacro MUI_LANGUAGE "German"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Spanish.nsh" !insertmacro MUI_LANGUAGE "Spanish"
!include "${NSISDIR}\Contrib\Modern UI\Language files\SimpChinese.nsh" !insertmacro MUI_LANGUAGE "SimpChinese"
!include "${NSISDIR}\Contrib\Modern UI\Language files\TradChinese.nsh" !insertmacro MUI_LANGUAGE "TradChinese"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Japanese.nsh" !insertmacro MUI_LANGUAGE "Japanese"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Italian.nsh" !insertmacro MUI_LANGUAGE "Italian"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Dutch.nsh" !insertmacro MUI_LANGUAGE "Dutch"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Polish.nsh" !insertmacro MUI_LANGUAGE "Polish"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Greek.nsh" !insertmacro MUI_LANGUAGE "Greek"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Russian.nsh" !insertmacro MUI_LANGUAGE "Russian"
!include "${NSISDIR}\Contrib\Modern UI\Language files\PortugueseBR.nsh" !insertmacro MUI_LANGUAGE "PortugueseBR"
!include "${NSISDIR}\Contrib\Modern UI\Language files\Ukrainian.nsh" !insertmacro MUI_LANGUAGE "Ukrainian"
OutFile "MultiLanguage.exe" OutFile "MultiLanguage.exe"