Subversion Repositories Projects

Rev

Rev 674 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 674 Rev 908
Line 16... Line 16...
16
 *   Free Software Foundation, Inc.,                                       *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
18
 ***************************************************************************/
Line 19... Line 19...
19
 
19
 
-
 
20
#include <QtGui/QApplication>
20
#include <QtGui/QApplication>
21
#include <QTranslator>
Line 21... Line 22...
21
#include "Dialogs/dlg_Main.h"
22
#include "Dialogs/dlg_Main.h"
22
 
23
 
23
int main(int argc, char *argv[])
24
int main(int argc, char *argv[])
Line -... Line 25...
-
 
25
{
-
 
26
    QApplication App(argc, argv);
-
 
27
 
-
 
28
    QString locale = QLocale::system().name();
-
 
29
    qDebug() << "QMK-Maps_" << locale;
-
 
30
 
-
 
31
    // Enable translation service
-
 
32
    QTranslator translator;
-
 
33
 
-
 
34
    QDir dir(argv[0]);
-
 
35
    QString appPath = dir.canonicalPath().toAscii().append("_");
-
 
36
 
-
 
37
     if (!translator.load(QString(appPath).append(locale))) {
-
 
38
         qDebug() << "Error loading translation file: " << appPath << locale;
-
 
39
     }
24
{
40
 
Line 25... Line 41...
25
    QApplication App(argc, argv);
41
    App.installTranslator(&translator);
26
 
-
 
27
    dlg_Main *MainApp = new dlg_Main();
42
 
28
 
-
 
29
    MainApp->show();
43
    dlg_Main *MainApp = new dlg_Main();
Line 30... Line 44...
30
 
44
 
Line 31... Line 45...
31
    MainApp->create_Map();
45
    MainApp->show();