[locale] prefer native language and country names when available

This basically means we talk about localization in the respective
localized variant. e.g. "German (Germany)" ➡ "Deutsch (Deutschland)".

If geoip lookup failed or isn't configured for whatever reason it's a
stretch to expect the user to know english enough to find their own
language. Preferring the localized strings resolves this issue.

Additionally this happens to bypass #712 respectively
https://bugreports.qt.io/browse/QTBUG-34287
as the native names are properly spelled. So, as long as Qt has localized
names the names will also be properly spelled.
This commit is contained in:
Harald Sitter 2018-04-05 11:57:23 +02:00 committed by Adriaan de Groot
parent 0b6e1ca488
commit 311af6de5d
3 changed files with 9 additions and 3 deletions

View file

@ -345,4 +345,3 @@ WelcomePage::focusInEvent( QFocusEvent* e )
ui->languageWidget->setFocus();
e->accept();
}