aboutsummaryrefslogtreecommitdiff
path: root/lumina-config/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-config/main.cpp')
-rw-r--r--lumina-config/main.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lumina-config/main.cpp b/lumina-config/main.cpp
index d1cb2004..65f2bf08 100644
--- a/lumina-config/main.cpp
+++ b/lumina-config/main.cpp
@@ -8,10 +8,7 @@
#include <QFile>
#include "mainUI.h"
-
-#ifndef PREFIX
-#define PREFIX QString("/usr/local")
-#endif
+#include "../global.h"
int main(int argc, char ** argv)
{
@@ -25,12 +22,12 @@ int main(int argc, char ** argv)
QTranslator translator;
QLocale mylocale;
QString langCode = mylocale.name();
-
+
if ( ! QFile::exists(PREFIX + "/share/Lumina-DE/i18n/lumina-config_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_"));
translator.load( QString("lumina-config_") + langCode, PREFIX + "/share/i18n/Lumina-DE/" );
a.installTranslator( &translator );
qDebug() << "Locale:" << langCode;
-
+
MainUI w;
QObject::connect(&a, SIGNAL(messageReceived(const QString&)), &w, SLOT(slotSingleInstance()) );
bgstack15