/[qspeakers]/main.cpp
ViewVC logotype

Diff of /main.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 74 by ben, Sat Oct 25 23:40:13 2014 UTC revision 75 by ben, Sun Oct 26 01:24:10 2014 UTC
# Line 1  Line 1 
1  #include "mainwindow.h"  #include "mainwindow.h"
2  #include "importexport.h"  #include "importexport.h"
3  #include <QApplication>  #include <QApplication>
4    #include <QTranslator>
5    #include <QLibraryInfo>
6    #include <QLocale>
7    
8  int main(int argc, char *argv[])  int main(int argc, char *argv[])
9  {  {
# Line 9  int main(int argc, char *argv[]) Line 12  int main(int argc, char *argv[])
12      a.setOrganizationDomain("herewe");      a.setOrganizationDomain("herewe");
13      a.setApplicationName("QSpeakers");      a.setApplicationName("QSpeakers");
14    
15    
16        QTranslator qtTranslator;
17        qtTranslator.load("qt_" + QLocale::system().name(),
18                QLibraryInfo::location(QLibraryInfo::TranslationsPath));
19        a.installTranslator(&qtTranslator);
20    
21        QTranslator qspeakersTranslator;
22        qspeakersTranslator.load("qspeakers_" + QLocale::system().name());
23        a.installTranslator(&qspeakersTranslator);
24    
25      if (argc > 1)      if (argc > 1)
26          ImportExport::setSavePath(argv[argc - 1]);          ImportExport::setSavePath(argv[argc - 1]);
27    

Legend:
Removed from v.74  
changed lines
  Added in v.75

  ViewVC Help
Powered by ViewVC 1.1.26