225 qt4TransDir = Preferences.getQt4TranslationsDir() |
225 qt4TransDir = Preferences.getQt4TranslationsDir() |
226 if not qt4TransDir: |
226 if not qt4TransDir: |
227 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
227 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
228 loadTranslators(qt4TransDir, app) |
228 loadTranslators(qt4TransDir, app) |
229 |
229 |
230 QTextCodec.setCodecForCStrings(\ |
230 QTextCodec.setCodecForCStrings( |
231 QTextCodec.codecForName(Preferences.getSystem("StringEncoding")) |
231 QTextCodec.codecForName(Preferences.getSystem("StringEncoding")) |
232 ) |
232 ) |
233 |
233 |
234 w = mwFactory(argv) |
234 w = mwFactory(argv) |
235 app.lastWindowClosed.connect(app.quit) |
235 app.lastWindowClosed.connect(app.quit) |