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