cmmanager/cmmgr/cmmpluginbase/src/ccmpluginbaseengtextresolver.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     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 "ccmpluginbaseengtextresolver.h"
       
    20 #include "OstTraceDefinitions.h"
       
    21 #ifdef OST_TRACE_COMPILER_IN_USE
       
    22 #include "ccmpluginbaseengtextresolverTraces.h"
       
    23 #endif
       
    24 
       
    25 
       
    26 HBufC* CCmPluginBaseEngTextResolver::ResolveTextL( const TDesC& aTextId )
       
    27     {
       
    28     _LIT(KCMManagerTranslationFile, "cmmanager_");
       
    29     _LIT(KTranslationPath, "\\resource\\qt\\translations");
       
    30 
       
    31     TBool result = HbTextResolverSymbian::Init(
       
    32             KCMManagerTranslationFile,
       
    33             KTranslationPath );
       
    34     if ( result )
       
    35         {
       
    36         OstTrace0( TRACE_ERROR, CCMPLUGINBASEENGTEXTRESOLVER_RESOLVETEXTL, "CCmPluginBaseEngTextResolver::ResolveTextL" );
       
    37         }
       
    38 
       
    39     return HbTextResolverSymbian::LoadL( aTextId );
       
    40     }
       
    41 
       
    42 // End of file