mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
ui: Set up translate features.
This commit is contained in:
1 parent
1d4207a1fb
commit
d299576a97
5 files changed
+117
-68
No files matched your search
@@ -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 --------------------
|
||||
Executable
+16
@@ -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
|
||||
Reference in new issue
Block a user