aboutsummaryrefslogtreecommitdiff
path: root/lumina-screenshot/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-screenshot/main.cpp')
-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