234 qt4TransDir = Preferences.getQt4TranslationsDir() |
234 qt4TransDir = Preferences.getQt4TranslationsDir() |
235 if not qt4TransDir: |
235 if not qt4TransDir: |
236 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
236 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
237 loadTranslators(qt4TransDir, app) |
237 loadTranslators(qt4TransDir, app) |
238 |
238 |
239 QTextCodec.setCodecForCStrings( |
|
240 QTextCodec.codecForName(Preferences.getSystem("StringEncoding")) |
|
241 ) |
|
242 |
|
243 w = mwFactory(argv) |
239 w = mwFactory(argv) |
244 if quitOnLastWindowClosed: |
240 if quitOnLastWindowClosed: |
245 app.lastWindowClosed.connect(app.quit) |
241 app.lastWindowClosed.connect(app.quit) |
246 w.show() |
242 w.show() |
247 if raiseIt: |
243 if raiseIt: |