1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Don't try to load the 'en' translation

It's the default, not a translation
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-02 14:24:06 +01:00
parent 804c3c3336
commit 5bdbc3d6d0
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -253,6 +253,9 @@ void Widget::setTranslation()
if ((locale = Settings::getInstance().getTranslation()).isEmpty())
locale = QLocale::system().name().section('_', 0, 0);
if (locale == "en")
return;
if (translator->load(locale, ":translations/"))
qDebug() << "Loaded translation" << locale;
else