summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-06-05 14:00:32 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-06-05 16:00:15 +0200
commit2c7e2fa0cbf079e659b29a94e5a0a07f94c98a28 (patch)
tree06214d5f67ee970f8ea278d2e223d7033c49ecb1 /cui
parent436c879b355f2cde763b0386df92e0d3708180a7 (diff)
Use UI language for UI list sorting
Change-Id: I1fd4babe3d577d785015f921e5c8ed95ad4e8fec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152610 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index da546d760d05..428a85ab3cbc 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1067,7 +1067,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage(weld::Container* pPage, weld::DialogCon
std::sort(aUILanguages.begin(), aUILanguages.end(), [](const auto& l1, const auto& l2) {
static const auto aSorter = comphelper::string::NaturalStringSorter(
comphelper::getProcessComponentContext(),
- Application::GetSettings().GetLanguageTag().getLocale());
+ Application::GetSettings().GetUILanguageTag().getLocale());
return aSorter.compare(l1.second, l2.second) < 0;
});