--- a/phonebookui/phonebookapp/src/main.cpp Tue Jul 06 14:05:47 2010 +0300
+++ b/phonebookui/phonebookapp/src/main.cpp Wed Aug 18 09:39:00 2010 +0300
@@ -15,23 +15,22 @@
*
*/
-#include <hbapplication.h>
-#include <QTranslator>
-#include <QLocale>
+#include <hbtranslator.h>
#include "cntmainwindow.h"
#include "cntappservicehandler.h"
#include "cntglobal.h"
+#include "cntdebug.h"
+#include "cntapplication.h"
int main(int argc, char **argv)
{
+ qInstallMsgHandler(MSG_HANDLER);
- HbApplication a( argc, argv );
+ 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;