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-05-17 16:04:24 +08:00
|
|
|
java -jar crowdin-cli.jar --no-colors --no-progress upload sources
|
2024-03-08 23:00:33 +08:00
|
|
|
if not %ERRORLEVEL%==0 exit /b
|
|
|
|
|
|
|
|
echo Downloading translations from Crowdin...
|
2022-07-06 08:09:10 +08:00
|
|
|
rmdir /S /Q translations >nul 2>&1
|
2024-08-23 02:23:56 +08:00
|
|
|
java -jar crowdin-cli.jar --no-colors --no-progress download
|
2024-03-08 23:00:33 +08:00
|
|
|
if not %ERRORLEVEL%==0 exit /b
|
|
|
|
|
|
|
|
echo Checking translations...
|
2024-05-17 15:59:49 +08:00
|
|
|
TranslationChecker.exe translations --fix
|
2022-07-06 08:09:10 +08:00
|
|
|
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%
|