ui: Set up translate features.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-03-27 14:55:49 +02:00
1 parent 1d4207a1fb
commit d299576a97
5 files changed
+117 -68

No files matched your search

+83
View File
@@ -0,0 +1,83 @@
# -*- coding: utf-8 -*-
from PyQt5.QtCore import QCoreApplication
_translate = QCoreApplication.translate
# -------------------- A --------------------
# -------------------- B --------------------
# -------------------- C --------------------
# -------------------- D --------------------
# -------------------- E --------------------
# -------------------- F --------------------
# -------------------- G --------------------
# -------------------- H --------------------
# -------------------- I --------------------
# -------------------- J --------------------
# -------------------- K --------------------
# -------------------- L --------------------
# -------------------- M --------------------
# -------------------- N --------------------
# -------------------- O --------------------
# -------------------- P --------------------
# -------------------- Q --------------------
# -------------------- R --------------------
# -------------------- S --------------------
# -------------------- T --------------------
# -------------------- U --------------------
# -------------------- V --------------------
# -------------------- W --------------------
# -------------------- X --------------------
# -------------------- Y --------------------
# -------------------- Z --------------------
+16
View File
@@ -0,0 +1,16 @@
#! /bin/sh
SOURCES=$(find ../ -name "*.py")
FROM=$(find ../ -name "*.ui")
LANG="fr de"
for l in $LANG
do
pylupdate5 $SOURCES $FROM -ts $l.ts
done
for l in $LANG
do
lrelease $l.ts $l.qm
done