diff -r 84d9eb65b26f -r 518b245aa84c messagingapp/msgnotifications/msgerrornotifier/src/main.cpp --- a/messagingapp/msgnotifications/msgerrornotifier/src/main.cpp Mon May 03 12:29:07 2010 +0300 +++ b/messagingapp/msgnotifications/msgerrornotifier/src/main.cpp Fri Jun 25 15:47:40 2010 +0530 @@ -14,14 +14,30 @@ * Description: * */ +#include +#include +#include +#include #include "msgerrornotifier.h" -#include +#define LOC_TITLE hbTrId("") int main(int argc, char *argv[]) { - HbApplication a(argc, argv); + HbApplication app(argc, argv); + QString locale = QLocale::system().name(); + QString path = "z:/resource/qt/translations/"; + QTranslator translator; + QTranslator translator_comm; + translator.load(path + QString("messaging_") + locale); + translator_comm.load(path + QString("common_") + locale); + //translator.load( "messaging_en_GB", ":/translations" ); + app.installTranslator(&translator); + app.installTranslator(&translator_comm); + + app.setApplicationName(LOC_TITLE); + MsgErrorNotifier w; - return a.exec(); + return app.exec(); }