--- 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;