diff -r fc7b30ed2058 -r 05bc53fe583b cmmanager/cmmgr/cmmserver/src/cmmanagertextresolver.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmmanager/cmmgr/cmmserver/src/cmmanagertextresolver.cpp Tue Aug 31 15:35:44 2010 +0300 @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Provides functionality for text resolving +* +*/ + +#include +#include "cmmanagertextresolver.h" + +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "cmmanagertextresolverTraces.h" +#endif + + +HBufC* CCmManagerTextResolver::ResolveTextL( const TDesC& aTextId ) + { + _LIT(KCMManagerTranslationFile, "cmmanager_"); + _LIT(KTranslationPath, "\\resource\\qt\\translations"); + + TBool result = HbTextResolverSymbian::Init( KCMManagerTranslationFile, + KTranslationPath ); + if ( result ) + { + OstTrace0( TRACE_ERROR, CCMMANAGERTEXTRESOLVER_RESOLVETEXTL, "CCmManagerTextResolver::ResolveTextL" ); + } + + return HbTextResolverSymbian::LoadL( aTextId ); + } + +