mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-16 04:09:07 +00:00
move script to .ci/generate-qt-ts.sh
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux.sh, gcc, rpcs3/rpcs3-ci-jammy:1.2, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (a1d35836e8d45bfc6f63c26f0a3e5d46ef622fe1, rpcs3/rpcs3-binaries-linux-arm64, /rpcs3/.ci/build-linux-aarch64.sh, clang, rpcs3/rpcs3-ci-jammy-aarch64:1.2, ubuntu-24.04-arm) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (d812f1254a1157c80fd402f94446310560f54e5f, rpcs3/rpcs3-binaries-linux, /rpcs3/.ci/build-linux.sh, clang, rpcs3/rpcs3-ci-jammy:1.2, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux.sh, gcc, rpcs3/rpcs3-ci-jammy:1.2, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (a1d35836e8d45bfc6f63c26f0a3e5d46ef622fe1, rpcs3/rpcs3-binaries-linux-arm64, /rpcs3/.ci/build-linux-aarch64.sh, clang, rpcs3/rpcs3-ci-jammy-aarch64:1.2, ubuntu-24.04-arm) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (d812f1254a1157c80fd402f94446310560f54e5f, rpcs3/rpcs3-binaries-linux, /rpcs3/.ci/build-linux.sh, clang, rpcs3/rpcs3-ci-jammy:1.2, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
This commit is contained in:
parent
100454398c
commit
a3d2e93b14
13
.ci/generate-qt-ts.sh
Executable file
13
.ci/generate-qt-ts.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh -ex
|
||||||
|
|
||||||
|
mkdir -p ../translations
|
||||||
|
|
||||||
|
LUPDATE_PATH=$(find /usr -name lupdate -type f 2>/dev/null | head -n 1)
|
||||||
|
if [ -z "$LUPDATE_PATH" ]; then
|
||||||
|
echo "Error: lupdate not found!"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "lupdate found at: $LUPDATE_PATH"
|
||||||
|
$LUPDATE_PATH -recursive . -ts ../translations/rpcs3_template.ts
|
||||||
|
sed -i 's|filename="\.\./|filename="./|g' ../translations/rpcs3_template.ts
|
||||||
|
fi
|
||||||
13
.github/workflows/qt-ts.yml
vendored
13
.github/workflows/qt-ts.yml
vendored
@ -24,20 +24,11 @@ jobs:
|
|||||||
- name: Generate .ts file using lupdate (Qt)
|
- name: Generate .ts file using lupdate (Qt)
|
||||||
working-directory: rpcs3
|
working-directory: rpcs3
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ../translations
|
../.ci/generate-qt-ts.sh
|
||||||
LUPDATE_PATH=$(find /usr -name lupdate -type f 2>/dev/null | head -n 1)
|
|
||||||
if [ -z "$LUPDATE_PATH" ]; then
|
|
||||||
echo "Error: lupdate not found!"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "lupdate found at: $LUPDATE_PATH"
|
|
||||||
$LUPDATE_PATH -recursive . -ts ../translations/rpcs3_template.ts
|
|
||||||
sed -i 's|filename="\.\./|filename="./|g' ../translations/rpcs3_template.ts
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Upload translation template
|
- name: Upload translation template
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@main
|
||||||
with:
|
with:
|
||||||
name: RPCS3_Translation_Template
|
name: RPCS3_Translation_Template
|
||||||
path: translations/rpcs3_template.ts
|
path: translations/rpcs3_template.ts
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
Loading…
Reference in New Issue
Block a user