315 # is there a set of filenames or options on the command line, |
315 # is there a set of filenames or options on the command line, |
316 # if so, pass them to the UI |
316 # if so, pass them to the UI |
317 if len(sys.argv) > 1: |
317 if len(sys.argv) > 1: |
318 args = sys.argv[1:] |
318 args = sys.argv[1:] |
319 |
319 |
320 # TODO: this code is misleading - it applies to Qt5 as well |
|
321 # get the Qt4 translations directory |
320 # get the Qt4 translations directory |
322 qt4TransDir = Preferences.getQt4TranslationsDir() |
321 qtTransDir = Preferences.getQtTranslationsDir() |
323 if not qt4TransDir: |
322 if not qtTransDir: |
324 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
323 qtTransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
325 |
324 |
326 # Load translation files and install them |
325 # Load translation files and install them |
327 loc = Startup.loadTranslators(qt4TransDir, app, ("qscintilla",)) |
326 loc = Startup.loadTranslators(qtTransDir, app, ("qscintilla",)) |
328 |
327 |
329 # Initialize SSL stuff |
328 # Initialize SSL stuff |
330 from E5Network.E5SslUtilities import initSSL |
329 from E5Network.E5SslUtilities import initSSL |
331 initSSL() |
330 initSSL() |
332 |
331 |