contentstorage/casoftwareregistry/s60/src/casoftwareregistry_p.cpp
changeset 119 50e220be30d1
parent 116 305818acdca4
child 125 26079c1bb561
--- a/contentstorage/casoftwareregistry/s60/src/casoftwareregistry_p.cpp	Mon Sep 13 13:26:33 2010 +0300
+++ b/contentstorage/casoftwareregistry/s60/src/casoftwareregistry_p.cpp	Mon Sep 20 10:22:22 2010 +0300
@@ -25,6 +25,7 @@
 #include <usif/scr/scr.h>
 #include <xqconversions.h>
 #include <driveinfo.h>
+#include <hbtextresolversymbian.h>
 
 #include "cauninstallnotifier.h"
 #include "cauninstallnotifier_p.h"
@@ -32,6 +33,7 @@
 #include "casoftwareregistry_p.h"
 #include "cadefs.h"
 #include "caarraycleanup.inl"
+#include "cautils.h"
 
 using namespace Usif;
 _LIT(KConfirmMessageKey, "MIDlet-Delete-Confirm");
@@ -231,10 +233,22 @@
                     if (domainProperty &&
                         domainProperty->PropertyType() ==
                             CPropertyEntry::ELocalizedProperty) {
+                        const TDesC& domainPropertyValue = static_cast<CLocalizablePropertyEntry*>(
+                                domainProperty)->StrValue();
+                        TInt splitIndex = domainPropertyValue.Locate(',');
+                        RBuf qmFileName;
+                        qmFileName.CleanupClosePushL();
+                        qmFileName.CreateL(domainPropertyValue.Right(
+                                domainPropertyValue.Length() - splitIndex - 1),
+                                domainPropertyValue.Length() - splitIndex);
+                        qmFileName.Append('_');
+                        MenuUtils::InitTextResolverSymbianL(qmFileName);
+                        HBufC* translatedProtectionDomain = HbTextResolverSymbian::LoadLC(
+                                domainPropertyValue.Left(splitIndex));
                         result[CaSoftwareRegistry::componentProtectionDomainKey()] =
-                            XQConversions::s60DescToQString(
-                                static_cast<CLocalizablePropertyEntry*>(
-                                    domainProperty)->StrValue());
+                                XQConversions::s60DescToQString(*translatedProtectionDomain);
+                        CleanupStack::PopAndDestroy(translatedProtectionDomain);
+                        CleanupStack::PopAndDestroy(&qmFileName);
                     }
 
                     CPropertyEntry *midletDescryption =