equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <QTranslator> |
18 #include <hbtranslator.h> |
19 #include <QLocale> |
|
20 #include "cntmainwindow.h" |
19 #include "cntmainwindow.h" |
21 #include "cntappservicehandler.h" |
20 #include "cntappservicehandler.h" |
22 #include "cntglobal.h" |
21 #include "cntglobal.h" |
23 #include "cntdebug.h" |
22 #include "cntdebug.h" |
24 #include "cntapplication.h" |
23 #include "cntapplication.h" |
27 { |
26 { |
28 qInstallMsgHandler(MSG_HANDLER); |
27 qInstallMsgHandler(MSG_HANDLER); |
29 |
28 |
30 CntApplication a( argc, argv ); |
29 CntApplication a( argc, argv ); |
31 |
30 |
32 QTranslator translator; |
31 //For translation, loading and installing translator |
33 QString lang = QLocale::system().name(); |
32 HbTranslator translator("contacts"); |
34 QString path = "z:/resource/qt/translations/"; |
33 translator.loadCommon(); |
35 translator.load(path + "contacts_" + lang); |
|
36 a.installTranslator(&translator); |
|
37 |
34 |
38 CntAppServiceHandler serviceHandler; |
35 CntAppServiceHandler serviceHandler; |
39 CntMainWindow mainWindow; |
36 CntMainWindow mainWindow; |
40 |
37 |
41 mainWindow.show(); |
38 mainWindow.show(); |