eric6/Toolbox/Startup.py

changeset 8143
2c730d5fd177
parent 7960
e8fc383322f7
child 8176
31965986ecd1
child 8707
05749c827c77
--- a/eric6/Toolbox/Startup.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Toolbox/Startup.py	Tue Mar 02 17:17:09 2021 +0100
@@ -265,7 +265,8 @@
     
     qtTransDir = Preferences.getQtTranslationsDir()
     if not qtTransDir:
-        qtTransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
+        qtTransDir = QLibraryInfo.location(
+            QLibraryInfo.LibraryLocation.TranslationsPath)
     loadTranslators(qtTransDir, app, ("qscintilla",))
     # qscintilla needed for web browser
     

eric ide

mercurial