1
0
Fork 0
mirror of synced 2024-05-19 20:12:49 +12:00

Add a workflow, to update placeholder.ts automatically

- Update french translation
- add ts2qm.py script
This commit is contained in:
Dummerle 2021-10-24 22:51:38 +02:00
parent bcfc4fb94e
commit 18a04c1911
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
5 changed files with 2025 additions and 458 deletions

30
.github/workflows/push_tr_file.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Translations
on:
push:
branches: [ main ]
paths:
- 'rare/languages/placeholder.ts'
workflow_dispatch:
jobs:
appimage:
runs-on: ubuntu-20.04
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: install Deps
run: |
sudo apt update
sudo apt install python3 python3-pip python3-setuptools
pip install transifex-client
- name: push file
run: tx push -s

10
.tx/config Normal file
View file

@ -0,0 +1,10 @@
[main]
host = https://www.transifex.com
[rare.placeholder-ts]
file_filter = rare/languages/<lang>.ts
minimum_perc = 50
source_file = rare/languages/placeholder.ts
source_lang = en_US
type = QT

Binary file not shown.

File diff suppressed because it is too large Load diff

5
scripts/ts2qm.py Normal file
View file

@ -0,0 +1,5 @@
import os
for f in os.listdir("../rare/languages/"):
if f.endswith(".ts") and f != "placeholder.ts":
os.system("lrelease ../rare/languages/" + f)