~mzanetti/unity8/fix-1648251

« back to all changes in this revision

Viewing changes to src/Dash/main.cpp

  • Committer: Michael Zanetti
  • Date: 2016-12-01 12:20:34 UTC
  • mfrom: (2525.1.179 unity8)
  • Revision ID: michael.zanetti@canonical.com-20161201122034-cpvbf7webbhg2wph
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2014 Canonical, Ltd.
 
2
 * Copyright (C) 2014-2016 Canonical, Ltd.
3
3
 *
4
4
 * Authors:
5
5
 *  Michael Zanetti <michael.zanetti@canonical.com>
26
26
#include <QLibrary>
27
27
#include <libintl.h>
28
28
#include <QQmlApplicationEngine>
 
29
#include <QTranslator>
 
30
#include <QLibraryInfo>
 
31
#include <QLocale>
29
32
 
30
33
#include <paths.h>
31
34
#include "../qmldebuggerutils.h"
81
84
        }
82
85
    }
83
86
 
 
87
    QTranslator qtTranslator;
 
88
    if (qtTranslator.load(QLocale(), QStringLiteral("qt_"), qgetenv("SNAP"), QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
 
89
        application->installTranslator(&qtTranslator);
 
90
    }
 
91
 
84
92
    bindtextdomain("unity8", translationDirectory().toUtf8().data());
85
93
    textdomain("unity8");
86
94