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:
parent
5b94358f2b
commit
c0333978c2
5 changed files with 27 additions and 17 deletions
|
@ -145,7 +145,7 @@ defines and define them again before you insert a language file.</p>
|
|||
!define MUI_CUSTOMPAGECOMMANDS ;Use customized pages</pre>
|
||||
<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>
|
||||
<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,
|
||||
so you should not use LoadLanguageFile.</p>
|
||||
<p class="subheader">5. Define interface settings (optional)</span></p>
|
||||
|
|
|
@ -317,6 +317,16 @@
|
|||
|
||||
!macroend
|
||||
|
||||
!macro MUI_LANGUAGE LANGUAGE
|
||||
|
||||
!verbose 3
|
||||
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\${LANGUAGE}.nsh"
|
||||
|
||||
!verbose 4
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;INSTALL OPTIONS
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
!define MUI_UNINSTALLER
|
||||
|
||||
;Language
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh"
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
;General
|
||||
OutFile "Basic.exe"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
!define TEMP2 $R1
|
||||
|
||||
;Language
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh"
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
;General
|
||||
OutFile "InstallOptions.exe"
|
||||
|
|
|
@ -19,20 +19,20 @@
|
|||
!define MUI_UNINSTALLER
|
||||
|
||||
;Languages
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\French.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\German.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Spanish.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\SimpChinese.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\TradChinese.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Japanese.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Italian.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Dutch.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Polish.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Greek.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Russian.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\PortugueseBR.nsh"
|
||||
!include "${NSISDIR}\Contrib\Modern UI\Language files\Ukrainian.nsh"
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
!insertmacro MUI_LANGUAGE "French"
|
||||
!insertmacro MUI_LANGUAGE "German"
|
||||
!insertmacro MUI_LANGUAGE "Spanish"
|
||||
!insertmacro MUI_LANGUAGE "SimpChinese"
|
||||
!insertmacro MUI_LANGUAGE "TradChinese"
|
||||
!insertmacro MUI_LANGUAGE "Japanese"
|
||||
!insertmacro MUI_LANGUAGE "Italian"
|
||||
!insertmacro MUI_LANGUAGE "Dutch"
|
||||
!insertmacro MUI_LANGUAGE "Polish"
|
||||
!insertmacro MUI_LANGUAGE "Greek"
|
||||
!insertmacro MUI_LANGUAGE "Russian"
|
||||
!insertmacro MUI_LANGUAGE "PortugueseBR"
|
||||
!insertmacro MUI_LANGUAGE "Ukrainian"
|
||||
|
||||
OutFile "MultiLanguage.exe"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue