[dist] update translations from transifex (#2569)

Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2569
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
crueter 2025-10-18 19:29:19 +02:00
parent d24db9c3cb
commit b330117a14
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
55 changed files with 79162 additions and 82999 deletions

View file

@ -19,3 +19,7 @@ Tools for Eden and other subprojects.
- `lanczos_gen.c`
- `clang-format.sh`: Runs `clang-format` on the entire codebase.
* Requires: clang
## Translations
- [Translation Scripts](./translations)

View file

@ -0,0 +1,6 @@
# Translation Scripts
- `qt-source.sh`: Regenerate the English source file for Qt.
* After doing this, ensure to `tx push -s`.
* You must have `lupdate` in your PATH, e.g. `export PATH="/usr/lib64/qt6/bin:$PATH"` (requires `qttools`)
- `update-translations.sh`: Update and commit translation files.

11
tools/translations/lupdate.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
for i in dist/languages/*.ts; do
SRC=en_US
TARGET=`head -n1 $i | awk -F 'language="' '{split($2, a, "\""); print a[1]}'`
# requires fd
SOURCES=`fd . src/yuzu src/qt_common -tf -e ui -e cpp -e h -e plist`
lupdate -source-language $SRC -target-language $TARGET $SOURCES -ts /data/code/eden/$i
done

View file

@ -0,0 +1,9 @@
#!/bin/sh
SRC=en_US
TARGET=en_US
# requires fd
SOURCES=`fd . src/yuzu src/qt_common -tf -e ui -e cpp -e h -e plist`
lupdate -source-language $SRC -target-language $TARGET $SOURCES -ts dist/languages/en.ts

View file

@ -0,0 +1,10 @@
#!/bin/sh
command -v tx-cli && COMMAND=tx-cli
command -v tx && COMMAND=tx
$COMMAND pull -t -f
git add dist/languages/*.ts src/android/app/src/main/res/values*/strings.xml
git commit -m "[dist] update translations from Transifex" -sS