phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.cpp
changeset 78 baacf668fe89
parent 76 cfea66083b62
--- a/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.cpp	Mon Oct 04 16:06:10 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.cpp	Fri Oct 15 12:58:46 2010 +0300
@@ -16,6 +16,7 @@
  */
 #include <cpsettingformentryitemdataimpl.h>
 #include <cpitemdatahelper.h>
+
 #include "cptelephonyplugin.h"
 #include "cptelephonypluginview.h"
 #include "cppluginlogging.h"
@@ -26,23 +27,13 @@
 */
 CpTelephonyPlugin::CpTelephonyPlugin() : 
     QObject(0),
-    m_localisation(0)
+    m_translator(NULL)
 {
     // Install plugin specific msg handler
     INSTALL_TRACE_MSG_HANDLER;  
     DPRINT << ": IN";
-    
-    // Set scoped pointer 
-    m_localisation.reset(new PhoneLocalisation(this)); 
-    
-    // Install required translations
-    m_localisation->installTranslator(
-            PhoneLocalisation::
-            TranslationFileCommon);
-    m_localisation->installTranslator(
-            PhoneLocalisation::
-            TranslationFileTelephoneCp);
-
+    m_translator.reset(new HbTranslator(QString("telephone_cp"))); 
+    m_translator->loadCommon();
     DPRINT << ": OUT"; 
 }