cmake plugin cleanups
This commit is contained in:
1 parent
dda58d464c
commit
747787eae9
2 files changed
+10
-4
No files matched your search
+3
-3
@@ -6,6 +6,8 @@
|
||||
#include <QLocale>
|
||||
#include <QBoxLayout>
|
||||
|
||||
#include "utils/fileutils.h"
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "stripswidget.h"
|
||||
|
||||
@@ -17,9 +19,7 @@ LunchMealPlugin::LunchMealPlugin(QObject *parent) :
|
||||
{
|
||||
qDebug() << "called";
|
||||
|
||||
static auto dir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(QStringLiteral("translations"));
|
||||
|
||||
if(m_translator.load(QLocale(), QStringLiteral("lunchmealplugin"), QStringLiteral("_"), dir))
|
||||
if(m_translator.load(QLocale(), QStringLiteral("lunchmealplugin"), QStringLiteral("_"), translationsDir()))
|
||||
{
|
||||
if(!QCoreApplication::installTranslator(&m_translator))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user