Changeset b26801b000 in tspsg for src


Ignore:
Timestamp:
Jul 10, 2012, 5:44:43 PM (12 years ago)
Author:
Oleksii Serdiuk
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)
Message:

Added a rule to run lrelease before running build.

qt_*.qm translations are no longer included into the resources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    r1299ea5b49 rb26801b000  
    14021402    // Trying to load system Qt library translation...
    14031403    qtTranslator = new QTranslator(this);
    1404     if (qtTranslator->load("qt_" + lng, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
     1404    if (qtTranslator->load("qt_" + lng, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
    14051405        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;
    14191410    }
    14201411
Note: See TracChangeset for help on using the changeset viewer.