diff --git a/.gitignore b/.gitignore index 8168521..d5737c0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *.qm *.jar *.zip +*.log translations/ diff --git a/crowdin-sync.bat b/crowdin-sync.bat index 44f34eb..d69f401 100644 --- a/crowdin-sync.bat +++ b/crowdin-sync.bat @@ -1,13 +1,19 @@ @echo off echo Uploading English sources to Crowdin... -java -jar crowdin-cli.jar upload sources --no-colors --no-progress -if not %ERRORLEVEL%==0 exit /b +java -jar crowdin-cli.jar upload sources --no-colors --no-progress > upload.log 2>&1 +if not %ERRORLEVEL%==0 ( + type upload.log + exit /b 1 +) echo Downloading translations from Crowdin... rmdir /S /Q translations >nul 2>&1 -java -jar crowdin-cli.jar download --no-colors --no-progress -if not %ERRORLEVEL%==0 exit /b +java -jar crowdin-cli.jar download --no-colors --no-progress > download.log 2>&1 +if not %ERRORLEVEL%==0 ( + type download.log + exit /b 1 +) echo Checking translations... TranslationChecker.exe translations --fix