messagingapp/msgnotifications/msgnotifier/src/main.cpp
changeset 34 84197e66a4bd
parent 31 ebfee66fde93
child 47 5b14749788d7
--- a/messagingapp/msgnotifications/msgnotifier/src/main.cpp	Fri Jun 04 10:25:39 2010 +0100
+++ b/messagingapp/msgnotifications/msgnotifier/src/main.cpp	Fri Jun 11 13:35:48 2010 +0300
@@ -17,6 +17,8 @@
 
 //SYSTEM INCLUDES
 #include <QCoreApplication>
+#include <QTranslator>
+#include <QLocale>
 #include <QFile>
 #include <QDateTime>
 #include <QPointer>
@@ -70,7 +72,15 @@
 int main(int argc, char *argv[])
 {
     QCoreApplication app(argc, argv);
-
+    QString locale = QLocale::system().name();
+    QString path = "z:/resource/qt/translations/";
+    QTranslator translator;
+    QTranslator translator_comm;
+    translator.load(path + QString("messaging_") + locale);
+    translator_comm.load(path + QString("common_") + locale);
+    app.installTranslator(&translator);
+    app.installTranslator(&translator_comm);
+    
 #ifdef _DEBUG_TRACES_
     //Debug Logs
     QFile ofile;