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