equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 //SYSTEM INCLUDES |
18 //SYSTEM INCLUDES |
19 #include <QCoreApplication> |
19 #include <QCoreApplication> |
|
20 #include <QTranslator> |
|
21 #include <QLocale> |
20 #include <QFile> |
22 #include <QFile> |
21 #include <QDateTime> |
23 #include <QDateTime> |
22 #include <QPointer> |
24 #include <QPointer> |
23 |
25 |
24 #include "msgnotifier.h" |
26 #include "msgnotifier.h" |
68 #endif |
70 #endif |
69 |
71 |
70 int main(int argc, char *argv[]) |
72 int main(int argc, char *argv[]) |
71 { |
73 { |
72 QCoreApplication app(argc, argv); |
74 QCoreApplication app(argc, argv); |
73 |
75 QString locale = QLocale::system().name(); |
|
76 QString path = "z:/resource/qt/translations/"; |
|
77 QTranslator translator; |
|
78 QTranslator translator_comm; |
|
79 translator.load(path + QString("messaging_") + locale); |
|
80 translator_comm.load(path + QString("common_") + locale); |
|
81 app.installTranslator(&translator); |
|
82 app.installTranslator(&translator_comm); |
|
83 |
74 #ifdef _DEBUG_TRACES_ |
84 #ifdef _DEBUG_TRACES_ |
75 //Debug Logs |
85 //Debug Logs |
76 QFile ofile; |
86 QFile ofile; |
77 if (ofile.exists(debugFileName)) { |
87 if (ofile.exists(debugFileName)) { |
78 ofile.remove(debugFileName); |
88 ofile.remove(debugFileName); |