File tree 8 files changed +59
-6
lines changed
8 files changed +59
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Translate
2
+ on : [push]
3
+
4
+ jobs :
5
+ update :
6
+ runs-on : windows-latest
7
+ permissions :
8
+ contents : write
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
12
+
13
+ - uses : actions/setup-java@v4
14
+ with :
15
+ distribution : ' temurin'
16
+ java-version : ' 21'
17
+
18
+ - name : Generate template
19
+ run : |
20
+ git clone https://github.com/x64dbg/translations --branch translations
21
+ git clone --depth 1 https://github.com/x64dbg/x64dbg
22
+ cd x64dbg
23
+ mkdir bin\translations
24
+ git ls-files *.java *.jui *.ui *.c *.c++ *.cc *.cpp *.cxx *.ch *.h *.h++ *.hh *.hpp *.hxx *.js *.qs *.qml *.qrc > bin\translations\files.lst
25
+ ..\lupdate.exe @bin\translations\files.lst -locations absolute -ts x64dbg.ts
26
+ Copy-Item ".\x64dbg.ts" -Destination "..\translations\x64dbg.ts" -Force
27
+ Copy-Item ".\x64dbg.ts" -Destination "..\x64dbg.ts" -Force
28
+
29
+ - name : Crowdin sync
30
+ env :
31
+ CROWDIN_API_KEY : ${{ secrets.CROWDIN_API_KEY }}
32
+ run : |
33
+ .\crowdin-sync.bat
34
+
35
+ - name : Push translations
36
+ shell : bash
37
+ run :
38
+ cd translations
39
+ ./update.sh
40
+
41
+ - name : Upload Qt translations
42
+ uses : actions/upload-artifact@v4
43
+ with :
44
+ name : translations-qm
45
+ path : translations/*.qm
46
+
47
+ - name : Upload crowdin translations
48
+ uses : actions/upload-artifact@v4
49
+ with :
50
+ name : translations-ts
51
+ path : translations/*.ts
52
+
53
+
54
+
55
+
Original file line number Diff line number Diff line change 1
1
* .ts
2
2
* .qm
3
- * .jar
4
3
* .zip
5
4
* .log
6
5
translations /
6
+ x64dbg /
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
3
echo Uploading English sources to Crowdin...
4
- java -jar crowdin-cli.jar upload sources --no-colors --no-progress > upload.log 2 >& 1
4
+ java -jar crowdin-cli.jar upload sources --no-colors --no-progress
5
5
if not %ERRORLEVEL% == 0 (
6
- type upload.log
7
6
exit /b 1
8
7
)
9
8
10
9
echo Downloading translations from Crowdin...
11
10
rmdir /S /Q translations > nul 2 >& 1
12
- java -jar crowdin-cli.jar download --no-colors --no-progress > download.log 2 >& 1
11
+ java -jar crowdin-cli.jar download --no-colors --no-progress
13
12
if not %ERRORLEVEL% == 0 (
14
- type download.log
15
13
exit /b 1
16
14
)
17
15
18
16
echo Checking translations...
19
- TranslationChecker.exe translations --fix
17
+ TranslationChecker.exe translations
20
18
set CHECKER_ERRORLEVEL = %ERRORLEVEL%
21
19
22
20
echo Generating Qt translations...
You can’t perform that action at this time.
0 commit comments