Skip to content

Commit

Permalink
Editor: Fixed language mismatch in Extra Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Feb 15, 2024
1 parent 25c44a3 commit 6639898
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Editor/common_features/json_settings_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,9 @@ QWidget *JsonSettingsWidget::loadLayoutDetail(JsonSettingsWidget::SetupStack &st

void JsonSettingsWidget::valTrInitLang()
{
QLocale loc = m_browser ? m_browser->locale() : QLocale::system();
QWidget *w = qobject_cast<QWidget*>(parent());
QLocale loc = w ? w->locale() : QLocale::system();

m_langFull = loc.name().toLower().replace('_', '-');
m_langShort.clear();

Expand Down

0 comments on commit 6639898

Please sign in to comment.