aboutsummaryrefslogtreecommitdiff
path: root/lumina-screenshot
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-screenshot
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-screenshot')
-rw-r--r--lumina-screenshot/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-screenshot/main.cpp b/lumina-screenshot/main.cpp
index 9561430d..02f6ae79 100644
--- a/lumina-screenshot/main.cpp
+++ b/lumina-screenshot/main.cpp
@@ -6,20 +6,22 @@
#include "MainUI.h"
#include <LuminaOS.h>
#include <LuminaThemes.h>
+#include <LuminaUtils.h>
int main(int argc, char ** argv)
{
QApplication a(argc, argv);
LuminaThemeEngine theme(&a);
a.setApplicationName("Take Screenshot");
- QTranslator translator;
+ LUtils::LoadTranslation(&a, "lumina-screenshot");
+ /*QTranslator translator;
QLocale mylocale;
QString langCode = mylocale.name();
if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-screenshot_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_"));
translator.load( QString("lumina-screenshot_") + langCode, LOS::LuminaShare()+"i18n/" );
a.installTranslator( &translator );
- qDebug() << "Locale:" << langCode;
+ qDebug() << "Locale:" << langCode;*/
MainUI w;
QObject::connect(&theme,SIGNAL(updateIcons()), &w, SLOT(setupIcons()) );
bgstack15