rsyncui/main.cpp

28 lines
614 B
C++
Raw Normal View History

2023-01-07 12:44:45 +01:00
#include "mainwindow.h"
#include <QApplication>
2023-01-12 09:23:45 +01:00
#include <QSettings>
#include <KAboutData>
#include <KDBusService>
#include <QCommandLineParser>
2023-01-22 14:33:23 +01:00
#include <QTranslator>
#include <QDialog>
2023-01-07 12:44:45 +01:00
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
2023-01-18 23:12:21 +01:00
QTranslator myappTranslator;
2023-01-22 14:33:23 +01:00
2023-01-18 23:12:21 +01:00
QLocale localeName = QLocale::system();
2023-01-22 14:33:23 +01:00
QString localeFile = "usr/share/locale/" + localeName.name() + "LC_MESSAGES/RsyncUI_" + localeName.name() + ".qm";
2023-01-18 23:12:21 +01:00
if (myappTranslator.load(localeFile))
{
a.installTranslator(&myappTranslator);
}
2023-01-07 12:44:45 +01:00
MainWindow w;
2023-01-22 14:33:23 +01:00
2023-01-07 12:44:45 +01:00
w.show();
return a.exec();
}