mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +03:00
Use first uiLanguage as lang
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
befc8bff78
commit
81bd390820
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ QString substLang(const QString &lang)
|
||||||
void Application::setupTranslations()
|
void Application::setupTranslations()
|
||||||
{
|
{
|
||||||
const auto enforcedLocale = Theme::instance()->enforcedLocale();
|
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 *translator = new QTranslator(this);
|
||||||
auto *qtTranslator = new QTranslator(this);
|
auto *qtTranslator = new QTranslator(this);
|
||||||
|
|
Loading…
Reference in a new issue