Add a workflow, to update placeholder.ts automatically
- Update french translation - add ts2qm.py script
This commit is contained in:
parent
bcfc4fb94e
commit
18a04c1911
30
.github/workflows/push_tr_file.yml
vendored
Normal file
30
.github/workflows/push_tr_file.yml
vendored
Normal 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
10
.tx/config
Normal 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.
2438
rare/languages/fr.ts
2438
rare/languages/fr.ts
File diff suppressed because it is too large
Load diff
5
scripts/ts2qm.py
Normal file
5
scripts/ts2qm.py
Normal 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)
|
Loading…
Reference in a new issue