debug
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
#include "mainwindow.h"
|
||||
#include <QApplication>
|
||||
#include <QSettings>
|
||||
#include <KAboutData>
|
||||
#include <KDBusService>
|
||||
#include <QCommandLineParser>
|
||||
|
||||
#include <QTranslator>
|
||||
#include <QDialog>
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
@@ -14,14 +9,13 @@ int main(int argc, char *argv[])
|
||||
QTranslator myappTranslator;
|
||||
|
||||
QLocale localeName = QLocale::system();
|
||||
QString localeFile = "usr/share/locale/" + localeName.name() + "LC_MESSAGES/RsyncUI_" + localeName.name() + ".qm";
|
||||
QString localeFile = "/usr/share/locale/" + localeName.name() + "/LC_MESSAGES/RsyncUI_" + localeName.name() + ".qm";
|
||||
if (myappTranslator.load(localeFile))
|
||||
{
|
||||
a.installTranslator(&myappTranslator);
|
||||
}
|
||||
|
||||
MainWindow w;
|
||||
|
||||
w.show();
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user