File tree 9 files changed +49
-4
lines changed
9 files changed +49
-4
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
+ steps :
8
+ - name : Checkout
9
+ uses : actions/checkout@v4
10
+
11
+ - name : Generate template
12
+ run : |
13
+ git clone https://github.com/x64dbg/translations --branch translations
14
+ git clone --depth 1 https://github.com/x64dbg/x64dbg
15
+ cd x64dbg
16
+ mkdir bin/translations
17
+ 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
18
+ ..\lupdate.exe @bin\translations\files.lst -locations absolute -ts ..\translations\x64dbg.ts
19
+
20
+ - name : Crowdin sync
21
+ run : |
22
+ curl -O https://github.com/crowdin/crowdin-cli/releases/download/4.6.1/crowdin.exe
23
+ .\crowdin-sync.bat
24
+
25
+ - name : Push translations
26
+ run : |
27
+ cd translations
28
+ git status
29
+
30
+ - name : Upload Qt translations
31
+ uses : actions/upload-artifact@v4
32
+ with :
33
+ name : translations-qm
34
+ path : translations/*.qm
35
+
36
+ - name : Upload crowdin translations
37
+ uses : actions/upload-artifact@v4
38
+ with :
39
+ name : translations-ts
40
+ path : translations/*.ts
41
+
42
+
43
+
44
+
Original file line number Diff line number Diff line change 4
4
* .zip
5
5
* .log
6
6
translations /
7
+ 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
+ crowdin upload sources
5
5
if not %ERRORLEVEL% == 0 (
6
6
type upload.log
7
7
exit /b 1
8
8
)
9
9
10
10
echo Downloading translations from Crowdin...
11
11
rmdir /S /Q translations > nul 2 >& 1
12
- java -jar crowdin-cli.jar download --no-colors --no-progress > download.log 2 >& 1
12
+ crowdin download
13
13
if not %ERRORLEVEL% == 0 (
14
14
type download.log
15
15
exit /b 1
16
16
)
17
17
18
18
echo Checking translations...
19
- TranslationChecker.exe translations --fix
19
+ TranslationChecker.exe translations
20
20
set CHECKER_ERRORLEVEL = %ERRORLEVEL%
21
21
22
22
echo Generating Qt translations...
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ files: [
21
21
# Source files filter
22
22
# e.g. "/resources/en/*.json"
23
23
#
24
- " source " : " /x64dbg.ts" ,
24
+ " source " : " /translations/ x64dbg.ts" ,
25
25
26
26
#
27
27
# Where translations will be placed
You can’t perform that action at this time.
0 commit comments