~lubuntu-dev/juffed/trunk

« back to all changes in this revision

Viewing changes to src/app/main.cpp

  • Committer: Mezomish
  • Date: 2014-07-22 00:05:57 UTC
  • mfrom: (1054.1.3)
  • Revision ID: git-v1:5902d3e8b6037d54decec7dec15be6bb2b4f1eed
Merge pull request #66 from volkov0aa/fix-translations

Make more strings translatable and load Qt's translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include <QFile>
8
8
#include <QFileInfo>
9
9
#include <QTranslator>
 
10
#include <QLibraryInfo>
10
11
#include <qtsingleapplication.h>
11
12
 
12
13
#include <iostream>
82
83
                }
83
84
        }
84
85
        
 
86
        QTranslator* qtTranslator = new QTranslator;
 
87
        qtTranslator->load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
 
88
        app.installTranslator(qtTranslator);
85
89
        // TODO : load plugins translations
86
90
}
87
91