Update pot file generation

This commit is contained in:
SSimco
2025-07-26 15:21:25 +03:00
parent a660be1a16
commit 1292463a5b
2 changed files with 15 additions and 3 deletions
+14 -2
View File
@@ -1,6 +1,7 @@
name: Generate translation template
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "*.md"
@@ -33,11 +34,22 @@ jobs:
--keyword="_" --keyword="wxTRANSLATE" --keyword="wxPLURAL:1,2"
--keyword="_tr" --keyword="TR_NOOP"
--check=space-ellipsis --omit-header
-o cemu.pot
-o cemu_cpp.pot
- name: "Generate POT file from the Android App"
run: |
cemu_dir=$(pwd)
cd src/android/app
./gradlew gettext
mv cemu_kt.pot "$cemu_dir"
- name: "Combine the POT files"
run: |
xgettext cemu_cpp.pot cemu_kt.pot --omit-header -o cemu.pot
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: POT file
path: ./cemu.pot
if-no-files-found: error
if-no-files-found: error
+1 -1
View File
@@ -213,7 +213,7 @@ val computeCemuDataFilesHashTask =
tasks.preBuild.dependsOn(computeCemuDataFilesHashTask)
gettext {
potFile.set(File(projectDir, "src/messages.pot"))
potFile.set(File(projectDir, "cemu_kt.pot"))
keywords.set(listOf("tr", "trNoop"))
}