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 29, 2022
1 parent 74a8edf commit 441f1df
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 441f1df

Please sign in to comment.