messagingapp/msgnotifications/msgerrornotifier/src/main.cpp
branchRCL_3
changeset 26 ebe688cedc25
equal deleted inserted replaced
25:fa1df4b99609 26:ebe688cedc25
       
     1 /*
       
     2  * Copyright (c) 2009 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: 
       
    15  *
       
    16  */
       
    17 #include <QTranslator>
       
    18 #include <QLocale>
       
    19 #include <QFile>
       
    20 #include <hbapplication.h>
       
    21 
       
    22 #include "msgerrornotifier.h"
       
    23 
       
    24 #define LOC_TITLE hbTrId("")
       
    25 
       
    26 int main(int argc, char *argv[])
       
    27 {
       
    28     HbApplication app(argc, argv);
       
    29     QString locale = QLocale::system().name();
       
    30     QString path = "z:/resource/qt/translations/";
       
    31     QTranslator translator;
       
    32     QTranslator translator_comm;
       
    33     translator.load(path + QString("messaging_") + locale);
       
    34     translator_comm.load(path + QString("common_") + locale);
       
    35     //translator.load( "messaging_en_GB", ":/translations" );
       
    36     app.installTranslator(&translator);
       
    37     app.installTranslator(&translator_comm);
       
    38 
       
    39     app.setApplicationName(LOC_TITLE);
       
    40     
       
    41     MsgErrorNotifier w;
       
    42     return app.exec();
       
    43 }