Changeset b26801b000 in tspsg for src/mainwindow.cpp
- Timestamp:
- Jul 10, 2012, 5:44:43 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- 0af510a462
- Parents:
- 1299ea5b49
- git-author:
- Oleksii Serdiuk <contacts@…> (07/10/12 17:44:43)
- git-committer:
- Oleksii Serdiuk <contacts@…> (07/10/12 17:51:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r1299ea5b49 rb26801b000 1402 1402 // Trying to load system Qt library translation... 1403 1403 qtTranslator = new QTranslator(this); 1404 if (qtTranslator->load("qt_" + lng, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) 1404 if (qtTranslator->load("qt_" + lng, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) { 1405 1405 qApp->installTranslator(qtTranslator); 1406 else { 1407 // No luck. Let's try to load a bundled one. 1408 if (qtTranslator->load("qt_" + lng, PATH_L10N)) { 1409 // We have a translation in the localization direcotry. 1410 qApp->installTranslator(qtTranslator); 1411 } else if (qtTranslator->load("qt_" + lng, ":/l10n")) { 1412 // We have a translation "built-in" into application resources. 1413 qApp->installTranslator(qtTranslator); 1414 } else { 1415 // Qt library translation unavailable for this language. 1416 delete qtTranslator; 1417 qtTranslator = NULL; 1418 } 1406 } else { 1407 // Qt library translation unavailable for this language. 1408 delete qtTranslator; 1409 qtTranslator = NULL; 1419 1410 } 1420 1411
Note: See TracChangeset
for help on using the changeset viewer.