mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
No more PRs shall be merged until the new_api branch in my repo is merged. Contributions are welcome.
This commit fixes some minor style issues with #1406
This commit is contained in:
parent
72e78ff6cd
commit
885dc0638a
|
@ -59,7 +59,7 @@
|
|||
#include <QList>
|
||||
#include <QDesktopServices>
|
||||
#include <QProcess>
|
||||
#include <qlibraryinfo.h>
|
||||
#include <QLibraryInfo>
|
||||
#include <tox/tox.h>
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
|
@ -225,16 +225,20 @@ void Widget::setTranslation()
|
|||
// system menu translation
|
||||
QTranslator *qtTranslator = new QTranslator();
|
||||
QString s_locale = "qt_"+locale;
|
||||
if ( qtTranslator->load(s_locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath)) )
|
||||
if (qtTranslator->load(s_locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
|
||||
{
|
||||
QApplication::installTranslator(qtTranslator);
|
||||
qDebug() << "System translation loaded" << locale;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "System translation not loaded" << locale;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "Error loading translation" << locale;
|
||||
}
|
||||
QCoreApplication::installTranslator(translator);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user