~ci-train-bot/unity8/unity8-ubuntu-zesty-2404

« back to all changes in this revision

Viewing changes to src/Dash/main.cpp

  • Committer: Nick Dedekind
  • Date: 2016-11-28 13:46:55 UTC
  • mfrom: (2704 unity8)
  • mto: This revision was merged to the branch mainline in revision 2752.
  • Revision ID: nick.dedekind@canonical.com-20161128134655-vd70a64pbci1b4oc
merged with 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