mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Update pot file generation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user