From 3cee91a627ecced62f7eefdc38850ea5499f761c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 30 Dec 2014 11:20:57 -0500 Subject: Clean up how translations are loaded for all the Lumina utilities, and also apply the relative path fixes to all LSingleApplication's forwarded inputs. --- lumina-search/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lumina-search/main.cpp') diff --git a/lumina-search/main.cpp b/lumina-search/main.cpp index a4d04d4b..3739cf70 100644 --- a/lumina-search/main.cpp +++ b/lumina-search/main.cpp @@ -6,6 +6,7 @@ #include "MainUI.h" #include #include +#include int main(int argc, char ** argv) { @@ -15,14 +16,15 @@ int main(int argc, char ** argv) LuminaThemeEngine theme(&a); //qDebug() << "Load Translations..."; a.setApplicationName("Search for..."); - QTranslator translator; + LUtils::LoadTranslation(&a, "lumina-search"); + /*QTranslator translator; QLocale mylocale; QString langCode = mylocale.name(); if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-search_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_")); translator.load( QString("lumina-search_") + langCode, LOS::LuminaShare()+"i18n/" ); a.installTranslator( &translator ); - qDebug() << "Locale:" << langCode; + qDebug() << "Locale:" << langCode;*/ MainUI w; QObject::connect(&theme,SIGNAL(updateIcons()), &w, SLOT(setupIcons()) ); -- cgit