diff -r a32b19fb291e -r 5b14749788d7 messagingapp/msgnotifications/msgerrornotifier/src/main.cpp --- a/messagingapp/msgnotifications/msgerrornotifier/src/main.cpp Thu Jun 17 09:57:06 2010 +0100 +++ b/messagingapp/msgnotifications/msgerrornotifier/src/main.cpp Thu Jul 22 16:32:06 2010 +0100 @@ -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(); }