mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Use first uiLanguage as lang
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
befc8bff78
commit
81bd390820
@ -968,7 +968,7 @@ QString substLang(const QString &lang)
|
||||
void Application::setupTranslations()
|
||||
{
|
||||
const auto enforcedLocale = Theme::instance()->enforcedLocale();
|
||||
const auto lang = substLang(!enforcedLocale.isEmpty() ? enforcedLocale : QLocale::system().name());
|
||||
const auto lang = substLang(!enforcedLocale.isEmpty() ? enforcedLocale : QLocale::system().uiLanguages(QLocale::TagSeparator::Underscore).first());
|
||||
|
||||
auto *translator = new QTranslator(this);
|
||||
auto *qtTranslator = new QTranslator(this);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user