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:
parent
804c3c3336
commit
5bdbc3d6d0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user