From 3f2923f3256d563f3be3678fd732bfd47a786e04 Mon Sep 17 00:00:00 2001 From: mrexodia Date: Wed, 13 Jul 2016 08:19:13 +0200 Subject: [PATCH] goddamn --- crowdin-sync.bat | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 crowdin-sync.bat diff --git a/crowdin-sync.bat b/crowdin-sync.bat new file mode 100644 index 0000000..fb60078 --- /dev/null +++ b/crowdin-sync.bat @@ -0,0 +1,16 @@ +@echo off +SET PATH=%PATH%;c:\Qt\qt-5.6.0-x64-msvc2013\5.6\msvc2013_64\bin;c:\Program Files (x86)\7-Zip +del /S /Q *.qm +curl -k https://api.crowdin.com/api/project/x64dbg/export?key=%CROWDIN_API_KEY% +curl -k -o translations.zip https://api.crowdin.com/api/project/x64dbg/download/all.zip?key=%CROWDIN_API_KEY% +rmdir /S /Q translations +7z x -otranslations translations.zip +cd translations +for /D %%a in (*) do (set fname=%%a) & call :rename +move *.qm ..\ +cd .. +goto :eof +:rename +set trname=x64dbg_%fname:-=_%.ts +copy %fname%\x64dbg.ts %trname% +lrelease -nounfinished %trname% \ No newline at end of file