aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-config/main.cpp12
-rw-r--r--lumina-fm/main.cpp3
2 files changed, 2 insertions, 13 deletions
diff --git a/lumina-config/main.cpp b/lumina-config/main.cpp
index 91fbc88d..115e793a 100644
--- a/lumina-config/main.cpp
+++ b/lumina-config/main.cpp
@@ -12,20 +12,10 @@
int main(int argc, char ** argv)
{
- LSingleApplication a(argc, argv);
+ LSingleApplication a(argc, argv, "lumina-config"); //loads translations inside constructor
if(!a.isPrimaryProcess()){ return 0; }
LuminaThemeEngine theme(&a);
- LUtils::LoadTranslation(&a, "lumina-config");
- /*QTranslator translator;
- QLocale mylocale;
- QString langCode = mylocale.name();
-
- 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;*/
-
MainUI w;
QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(slotSingleInstance()) );
diff --git a/lumina-fm/main.cpp b/lumina-fm/main.cpp
index 1682dbb3..e3b475f1 100644
--- a/lumina-fm/main.cpp
+++ b/lumina-fm/main.cpp
@@ -24,12 +24,11 @@ int main(int argc, char ** argv)
}
if(in.isEmpty()){ in << QDir::homePath(); }*/
- LSingleApplication a(argc, argv);
+ LSingleApplication a(argc, argv, "lumina-fm"); //loads translations inside constructor
if( !a.isPrimaryProcess()){ return 0; }
qDebug() << "Loaded QApplication";
a.setApplicationName("Insight File Manager");
LuminaThemeEngine themes(&a);
- LUtils::LoadTranslation(&a, "lumina-fm");
//Get the list of inputs for the initial load
QStringList in = a.inputlist; //has fixes for relative paths and such
bgstack15