diff options
Diffstat (limited to 'lumina-screenshot')
-rw-r--r-- | lumina-screenshot/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-screenshot/main.cpp b/lumina-screenshot/main.cpp index 40d7242d..0b564f71 100644 --- a/lumina-screenshot/main.cpp +++ b/lumina-screenshot/main.cpp @@ -4,7 +4,7 @@ #include <QFile> #include "MainUI.h" -#include "../global.h" +#include <LuminaOS.h> int main(int argc, char ** argv) { @@ -14,8 +14,8 @@ int main(int argc, char ** argv) 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/" ); + if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-screenshot_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_")); + translator.load( QString("lumina-screenshot_") + langCode, LOS::LuminaShare()+"i18n/" ); a.installTranslator( &translator ); qDebug() << "Locale:" << langCode; |