Changeset 4cc94b19ad in tspsg for src


Ignore:
Timestamp:
Oct 13, 2012, 10:23:57 PM (11 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
2d4659ddfe
Parents:
b96b44b6b7
git-author:
Oleksii Serdiuk <contacts@…> (10/13/12 22:23:57)
git-committer:
Oleksii Serdiuk <contacts@…> (10/13/12 22:58:57)
Message:

Also add Qt translations when installing on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    rb96b44b6b7 r4cc94b19ad  
    15671567    qtTranslator = new QTranslator(this);
    15681568    if (qtTranslator->load("qt_" + lng, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
     1569        // Trying from QT_INSTALL_TRANSLATIONS directory
     1570        qApp->installTranslator(qtTranslator);
     1571    } else if (qtTranslator->load("qt_" + lng, PATH_L10N)) {
     1572        // Than from l10n directory bundled with TSPSG
    15691573        qApp->installTranslator(qtTranslator);
    15701574    } else {
Note: See TracChangeset for help on using the changeset viewer.