Changeset 4cc94b19ad in tspsg
- Timestamp:
- Oct 13, 2012, 10:23:57 PM (12 years ago)
- 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)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
install.pri
rb96b44b6b7 r4cc94b19ad 50 50 # This is automatically set by qmake when creating VS Solution file. 51 51 share.sources = $$share.files 52 # l10n.sources = $$l10n.files \ 53 # $$[QT_INSTALL_TRANSLATIONS]/*.qm 52 l10n.sources = $$l10n.files \ 53 $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ 54 $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm 54 55 docs.sources = $$docs.files 55 56 56 DEPLOYMENT += target share docs # l10n57 DEPLOYMENT += target share l10n docs 57 58 DEPLOYMENT_PLUGIN += qjpeg qtiff 58 59 } else:win32 { … … 67 68 share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll 68 69 } 69 # l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm 70 l10n.files += $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ 71 $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm 70 72 win32-g++ { 71 73 share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \ … … 74 76 imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \ 75 77 $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll 76 imageformats.path = $$PREFIX/TSPSG/imageformats 77 INSTALLS += share imageformats 78 INSTALLS += share l10n imageformats 78 79 79 80 target.path = $$PREFIX/TSPSG 80 81 share.path = $$PREFIX/TSPSG 81 # l10n.path = $$PREFIX/TSPSG/l10n 82 l10n.path = $$PREFIX/TSPSG/l10n 83 imageformats.path = $$PREFIX/TSPSG/imageformats 82 84 docs.path = $$PREFIX/TSPSG 83 85 } -
src/mainwindow.cpp
rb96b44b6b7 r4cc94b19ad 1567 1567 qtTranslator = new QTranslator(this); 1568 1568 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 1569 1573 qApp->installTranslator(qtTranslator); 1570 1574 } else {
Note: See TracChangeset
for help on using the changeset viewer.