cmmanager/cmmgr/cmmserver/src/cmmanagertextresolver.cpp
changeset 20 9c97ad6591ae
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Provides functionality for text resolving
       
    15 *
       
    16 */
       
    17 
       
    18 #include <hb/hbcore/hbtextresolversymbian.h>
       
    19 #include "cmmanagertextresolver.h"
       
    20 
       
    21 #include "OstTraceDefinitions.h"
       
    22 #ifdef OST_TRACE_COMPILER_IN_USE
       
    23 #include "cmmanagertextresolverTraces.h"
       
    24 #endif
       
    25 
       
    26 
       
    27 HBufC* CCmManagerTextResolver::ResolveTextL( const TDesC& aTextId )
       
    28     {
       
    29     _LIT(KCMManagerTranslationFile, "cmmanager_");
       
    30     _LIT(KTranslationPath, "\\resource\\qt\\translations");
       
    31     
       
    32     TBool result = HbTextResolverSymbian::Init( KCMManagerTranslationFile,
       
    33                                                 KTranslationPath );
       
    34     if ( result )
       
    35         {
       
    36         OstTrace0( TRACE_ERROR, CCMMANAGERTEXTRESOLVER_RESOLVETEXTL, "CCmManagerTextResolver::ResolveTextL" );
       
    37         }
       
    38     
       
    39     return HbTextResolverSymbian::LoadL( aTextId );        
       
    40     }
       
    41 
       
    42