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 |
320 # get the Qt4 translations directory |
321 # get the Qt4 translations directory |
321 qt4TransDir = Preferences.getQt4TranslationsDir() |
322 qt4TransDir = Preferences.getQt4TranslationsDir() |
322 if not qt4TransDir: |
323 if not qt4TransDir: |
323 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
324 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
324 |
325 |