Warn if MUI_LANGUAGE is inserted before MUI_[UN]PAGE_*

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6572 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2014-12-17 14:38:00 +00:00
parent b9d125c881
commit b43bef1390
2 changed files with 8 additions and 0 deletions

View file

@ -33,6 +33,10 @@ Localization
!verbose push
!verbose ${MUI_VERBOSE}
!ifndef MUI_PAGE_UNINSTALLER_PREFIX
!warning "MUI_LANGUAGE should be inserted after the MUI_[UN]PAGE_* macros"
!endif
!insertmacro MUI_INSERT
LoadLanguageFile "${NSISDIR}\Contrib\Language files\${NLFID}.nlf"

View file

@ -2074,6 +2074,10 @@ Var MUI_TEMP2
!verbose push
!verbose ${MUI_VERBOSE}
!ifndef MUI_PAGE_UNINSTALLER_PREFIX
!warning "MUI_LANGUAGE should be inserted after the MUI_[UN]PAGE_* macros"
!endif
!insertmacro MUI_INSERT
LoadLanguageFile "${NSISDIR}\Contrib\Language files\${NLFID}.nlf"