mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-05 14:28:40 +01:00
Use UI language where available instead of system language.
Fixes issue #3175
This commit is contained in:
parent
63365d2587
commit
b6276d53cf
@ -117,8 +117,10 @@ void LoadTranslation(const QString& prefix, const QString& path,
|
||||
return;
|
||||
#endif
|
||||
|
||||
QString system_language = QLocale::system().uiLanguages().empty() ?
|
||||
QLocale::system().name() : QLocale::system().uiLanguages()[0];
|
||||
QString language = override_language.isEmpty() ?
|
||||
QLocale::system().name() : override_language;
|
||||
system_language : override_language;
|
||||
|
||||
QTranslator* t = new PoTranslator;
|
||||
if (t->load(prefix + "_" + language, path))
|
||||
|
Loading…
Reference in New Issue
Block a user