equal
deleted
inserted
replaced
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
|
17 #include <QTranslator> |
|
18 #include <QLocale> |
|
19 #include <QFile> |
|
20 #include <hbapplication.h> |
17 |
21 |
18 #include "msgerrornotifier.h" |
22 #include "msgerrornotifier.h" |
19 |
23 |
20 #include <hbapplication.h> |
24 #define LOC_TITLE hbTrId("") |
21 |
25 |
22 int main(int argc, char *argv[]) |
26 int main(int argc, char *argv[]) |
23 { |
27 { |
24 HbApplication a(argc, argv); |
28 HbApplication app(argc, argv); |
|
29 QString locale = QLocale::system().name(); |
|
30 QString path = "z:/resource/qt/translations/"; |
|
31 QTranslator translator; |
|
32 QTranslator translator_comm; |
|
33 translator.load(path + QString("messaging_") + locale); |
|
34 translator_comm.load(path + QString("common_") + locale); |
|
35 //translator.load( "messaging_en_GB", ":/translations" ); |
|
36 app.installTranslator(&translator); |
|
37 app.installTranslator(&translator_comm); |
|
38 |
|
39 app.setApplicationName(LOC_TITLE); |
|
40 |
25 MsgErrorNotifier w; |
41 MsgErrorNotifier w; |
26 return a.exec(); |
42 return app.exec(); |
27 } |
43 } |