[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:
parent
d24db9c3cb
commit
b330117a14
55 changed files with 79162 additions and 82999 deletions
|
|
@ -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)
|
||||
6
tools/translations/README.md
Normal file
6
tools/translations/README.md
Normal 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
11
tools/translations/lupdate.sh
Executable 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
|
||||
9
tools/translations/qt-source.sh
Executable file
9
tools/translations/qt-source.sh
Executable 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
|
||||
10
tools/translations/update-translations.sh
Executable file
10
tools/translations/update-translations.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue