Skip to content

Commit 2e1d36c

Browse files
committed
Switch to GitHub actions
1 parent f196f36 commit 2e1d36c

9 files changed

+49
-4
lines changed

.github/workflows/translate.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
*.zip
55
*.log
66
translations/
7+
x64dbg/

Qt5Core.dll

5.7 MB
Binary file not shown.

Qt5Xml.dll

198 KB
Binary file not shown.

crowdin-sync.bat

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
@echo off
22

33
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
55
if not %ERRORLEVEL%==0 (
66
type upload.log
77
exit /b 1
88
)
99

1010
echo Downloading translations from Crowdin...
1111
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
1313
if not %ERRORLEVEL%==0 (
1414
type download.log
1515
exit /b 1
1616
)
1717

1818
echo Checking translations...
19-
TranslationChecker.exe translations --fix
19+
TranslationChecker.exe translations
2020
set CHECKER_ERRORLEVEL=%ERRORLEVEL%
2121

2222
echo Generating Qt translations...

crowdin.exe

Whitespace-only changes.

crowdin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ files: [
2121
# Source files filter
2222
# e.g. "/resources/en/*.json"
2323
#
24-
"source": "/x64dbg.ts",
24+
"source": "/translations/x64dbg.ts",
2525

2626
#
2727
# Where translations will be placed

lrelease.exe

377 KB
Binary file not shown.

lupdate.exe

730 KB
Binary file not shown.

0 commit comments

Comments
 (0)