Translations/crowdin-sync.bat

27 lines
697 B
Batchfile
Raw Normal View History

2016-07-13 14:19:13 +08:00
@echo off
2024-03-08 23:00:33 +08:00
echo Uploading English sources to Crowdin...
2024-08-23 02:39:01 +08:00
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
)
2024-03-08 23:00:33 +08:00
echo Downloading translations from Crowdin...
rmdir /S /Q translations >nul 2>&1
2024-08-23 02:39:01 +08:00
java -jar crowdin-cli.jar download --no-colors --no-progress > download.log 2>&1
if not %ERRORLEVEL%==0 (
type download.log
exit /b 1
)
2024-03-08 23:00:33 +08:00
echo Checking translations...
TranslationChecker.exe translations --fix
set CHECKER_ERRORLEVEL=%ERRORLEVEL%
2024-03-08 23:00:33 +08:00
echo Generating Qt translations...
for %%f in (translations\*.ts) do (
lrelease -nounfinished %%f
)
exit /b %CHECKER_ERRORLEVEL%