Remove Pot translator
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
#include "translations.h"
|
||||
#include "core/logging.h"
|
||||
#include "core/potranslator.h"
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
@@ -45,7 +44,7 @@ Translations::~Translations() {
|
||||
void Translations::LoadTranslation(const QString &prefix, const QString &path, const QString &language) {
|
||||
|
||||
const QString basefilename = prefix + u'_' + language;
|
||||
QTranslator *t = new PoTranslator;
|
||||
QTranslator *t = new QTranslator;
|
||||
if (t->load(basefilename, path)) {
|
||||
qLog(Debug) << "Tranlations loaded from" << basefilename;
|
||||
QCoreApplication::installTranslator(t);
|
||||
|
||||
Reference in New Issue
Block a user