diff --git a/Build/Build.bat b/Build/Build.bat index ef587907..6deef1bd 100644 --- a/Build/Build.bat +++ b/Build/Build.bat @@ -102,9 +102,14 @@ for /f "tokens=1,2,3 delims=," %%a in (..\Language\List) do ( >>"..\Language\Language.rc" echo #include "Resource.rc" >>".\Installer\Languages.nsh" echo ${IncludeLanguage} "%%b" "%%a" set LANGUAGES='%%a - ${LANGFILE_%%b_NAME}' '${LANG_%%b}' '${LANG_%%b_CP}' !LANGUAGES! + + "msbuild.exe" /t:Language /p:Configuration=Release;Platform=Win32;TargetName=%%c ..\Rainmeter.sln > "BuildLog.txt" + if not %ERRORLEVEL% == 0 echo ERROR: Building language %%a failed & goto END ) >>".\Installer\Languages.nsh" echo ^^!define LANGUAGES "%LANGUAGES%" +goto :eof + :: Restore English echo #include "English.h"> "..\Language\Language.rc" echo #include "Resource.rc">> "..\Language\Language.rc"