mirror of https://github.com/x64dbg/Translations
21 lines
591 B
Batchfile
21 lines
591 B
Batchfile
@echo off
|
|
|
|
echo Uploading English sources to Crowdin...
|
|
java -jar crowdin-cli.jar --no-colors --no-progress upload sources
|
|
if not %ERRORLEVEL%==0 exit /b
|
|
|
|
echo Downloading translations from Crowdin...
|
|
rmdir /S /Q translations >nul 2>&1
|
|
java -jar crowdin-cli.jar --no-colors --no-progress download
|
|
if not %ERRORLEVEL%==0 exit /b
|
|
|
|
echo Checking translations...
|
|
TranslationChecker.exe translations --fix
|
|
set CHECKER_ERRORLEVEL=%ERRORLEVEL%
|
|
|
|
echo Generating Qt translations...
|
|
for %%f in (translations\*.ts) do (
|
|
lrelease -nounfinished %%f
|
|
)
|
|
exit /b %CHECKER_ERRORLEVEL%
|