aboutsummaryrefslogtreecommitdiff
path: root/lumina-search/main.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-12-30 11:20:57 -0500
committerKen Moore <ken@pcbsd.org>2014-12-30 11:20:57 -0500
commit3cee91a627ecced62f7eefdc38850ea5499f761c (patch)
tree93f59249f318a34ad5d9789bac1d155596eb7ff5 /lumina-search/main.cpp
parentCommit some more XLib->XCB conversions (everything for the task manager), and... (diff)
downloadlumina-3cee91a627ecced62f7eefdc38850ea5499f761c.tar.gz
lumina-3cee91a627ecced62f7eefdc38850ea5499f761c.tar.bz2
lumina-3cee91a627ecced62f7eefdc38850ea5499f761c.zip
Clean up how translations are loaded for all the Lumina utilities, and also apply the relative path fixes to all LSingleApplication's forwarded inputs.
Diffstat (limited to 'lumina-search/main.cpp')
-rw-r--r--lumina-search/main.cpp6
1 files changed, 4 insertions, 2 deletions
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 <LuminaOS.h>
#include <LuminaThemes.h>
+#include <LuminaUtils.h>
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()) );
bgstack15