Skip to content

Commit

Permalink
Use PySide translations for native elements
Browse files Browse the repository at this point in the history
  • Loading branch information
panther7 committed Dec 30, 2022
1 parent 53bdd64 commit d8f8dd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wingetui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,10 @@ def updateIfPossible(self):
if "--daemon" in sys.argv:
if getSettings("DisableAutostart"):
sys.exit(0)
translator = QTranslator()
translator.load(f"qtbase_{langName}.qm", QLibraryInfo.location(QLibraryInfo.TranslationsPath))
a = MainApplication()
a.installTranslator(translator)
a.exec()
a.running = False
sys.exit(0)
Expand Down

0 comments on commit d8f8dd3

Please sign in to comment.