ukui-notification/notification-server/main.cpp

24 lines
675 B
C++

#include <QCoreApplication>
#include <QLocale>
#include <QTranslator>
#include "notification-server-application.h"
int main(int argc, char *argv[])
{
// QTranslator translator;
// const QStringList uiLanguages = QLocale::system().uiLanguages();
// for (const QString &locale : uiLanguages) {
// const QString baseName = "ukui-notification_" + QLocale(locale).name();
// if (translator.load(":/i18n/" + baseName)) {
// a.installTranslator(&translator);
// break;
// }
// }
NotificationServer::NotificationServerApplication app(argc, argv);
if(app.isRunning()) {
return 0;
}
return app.exec();
}