phonebookui/phonebookapp/src/main.cpp
changeset 54 47627ab5d7a4
parent 53 e6aff7b69165
child 66 554fe4dbbb59
--- a/phonebookui/phonebookapp/src/main.cpp	Fri Jul 23 12:43:48 2010 +0300
+++ b/phonebookui/phonebookapp/src/main.cpp	Thu Aug 05 14:31:09 2010 +0300
@@ -15,8 +15,7 @@
 *
 */
 
-#include <QTranslator>
-#include <QLocale>
+#include <hbtranslator.h>
 #include "cntmainwindow.h"
 #include "cntappservicehandler.h"
 #include "cntglobal.h"
@@ -29,11 +28,9 @@
 
     CntApplication a( argc, argv );
 
-    QTranslator translator;
-    QString lang = QLocale::system().name();
-    QString path = "z:/resource/qt/translations/";
-    translator.load(path + "contacts_" + lang);
-    a.installTranslator(&translator);
+    //For translation, loading and installing translator
+    HbTranslator translator("contacts");
+    translator.loadCommon();
     
     CntAppServiceHandler serviceHandler;
     CntMainWindow mainWindow;