diff options
Diffstat (limited to 'lumina-screenshot/main.cpp')
-rw-r--r-- | lumina-screenshot/main.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lumina-screenshot/main.cpp b/lumina-screenshot/main.cpp index 12258548..40d7242d 100644 --- a/lumina-screenshot/main.cpp +++ b/lumina-screenshot/main.cpp @@ -4,10 +4,7 @@ #include <QFile> #include "MainUI.h" - -#ifndef PREFIX -#define PREFIX QString("/usr/local") -#endif +#include "../global.h" int main(int argc, char ** argv) { @@ -16,12 +13,12 @@ int main(int argc, char ** argv) QTranslator translator; QLocale mylocale; QString langCode = mylocale.name(); - + if ( ! QFile::exists(PREFIX + "/share/Lumina-DE/i18n/lumina-screenshot_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_")); translator.load( QString("lumina-screenshot_") + langCode, PREFIX + "/share/i18n/Lumina-DE/" ); a.installTranslator( &translator ); qDebug() << "Locale:" << langCode; - + MainUI w; w.show(); |