messagingapp/msgnotifications/msgnotifier/src/main.cpp
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
--- a/messagingapp/msgnotifications/msgnotifier/src/main.cpp	Mon May 03 12:29:07 2010 +0300
+++ b/messagingapp/msgnotifications/msgnotifier/src/main.cpp	Fri Jun 25 15:47:40 2010 +0530
@@ -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;