mirror of https://github.com/x64dbg/Translations
script for automatically downloading and building translations
This commit is contained in:
parent
b6bcf2179c
commit
75f7b31591
|
@ -1,3 +1,5 @@
|
||||||
*.qm
|
*.qm
|
||||||
*.jar
|
*.jar
|
||||||
translations/
|
*.zip
|
||||||
|
*.exe
|
||||||
|
translations/
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
@echo off
|
||||||
|
call ..\..\..\setenv.bat x64
|
||||||
|
SET PATH=%PATH%;c:\Program Files (x86)\7-Zip
|
||||||
|
curl https://api.crowdin.com/api/project/x64dbg/export?key=%CROWDIN_API_KEY%
|
||||||
|
curl -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%
|
Loading…
Reference in New Issue