diff options
author | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-10-31 09:51:24 -0300 |
---|---|---|
committer | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-10-31 09:52:04 -0300 |
commit | c2c0192561bc50c4c774e42642074e11bee1b1b6 (patch) | |
tree | 1412a59f2966aa4125c9022c12596904f8bd7c89 /kodereviewer/app.py | |
parent | 10d04e65085712fe9206c08ac9600109a4bcfc8e (diff) | |
download | kodereviewer-c2c0192561bc50c4c774e42642074e11bee1b1b6.tar.gz |
Add translations
Diffstat (limited to 'kodereviewer/app.py')
-rw-r--r-- | kodereviewer/app.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kodereviewer/app.py b/kodereviewer/app.py index eb196d1..bb1080f 100644 --- a/kodereviewer/app.py +++ b/kodereviewer/app.py @@ -3,6 +3,7 @@ import os import sys import signal +import gettext from KI18n import KLocalizedContext, KLocalizedString from PySide6.QtGui import QGuiApplication @@ -25,14 +26,18 @@ logging.basicConfig( level="INFO", format=FORMAT, datefmt="[%X]", handlers=[RichHandler()] ) +logger = logging.getLogger(__name__) + def main(): """Initializes and manages the application execution""" app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() # KLocalizedString::setApplicationDomain("tutorial"); + KLocalizedString.setApplicationDomain(QByteArray(b"kodereviewer")) + app.setOrganizationName("Deprecated") app.setOrganizationDomain("deprecated.org") app.setApplicationName("Kode Reviewer") |