aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fm/main.cpp')
-rw-r--r--lumina-fm/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-fm/main.cpp b/lumina-fm/main.cpp
index 267e6e68..bc48d0db 100644
--- a/lumina-fm/main.cpp
+++ b/lumina-fm/main.cpp
@@ -8,7 +8,7 @@
#include <QTextCodec>
#include "MainUI.h"
-#include "../global.h"
+#include <LuminaOS.h>
int main(int argc, char ** argv)
{
@@ -31,8 +31,8 @@ int main(int argc, char ** argv)
QLocale mylocale;
QString langCode = mylocale.name();
- if ( ! QFile::exists(PREFIX + "/share/Lumina-DE/i18n/lumina-fm_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_"));
- translator.load( QString("lumina-fm_") + langCode, PREFIX + "/share/i18n/Lumina-DE/" );
+ if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-fm_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_"));
+ translator.load( QString("lumina-fm_") + langCode, LOS::LuminaShare()+"i18n/" );
a.installTranslator( &translator );
qDebug() << "Locale:" << langCode;
bgstack15