tsMuxer/tsMuxerGUI/main.cpp
Daniel Kamil Kozar d9a90f44f3
Enable translation in GUI (#218)
This change brings translation support to the tsMuxeR GUI. We have a Russian translation available so far, thanks to @abakum. The last selected translation is saved in the settings file and restored at the application's next startup. The currently used language is selectable by a combo box in the lower left corner of the window.
2020-03-01 00:35:31 +01:00

17 lines
378 B
C++

#include <QApplication>
#include <QUrl>
#include "tsmuxerwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
TsMuxerWindow win;
win.show();
QList<QUrl> files;
for (int i = 1; i < argc; ++i) files << QUrl::fromLocalFile(QString::fromLocal8Bit(argv[i]));
if (!files.isEmpty())
win.addFiles(files);
return app.exec();
}