diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-22 13:29:01 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-22 13:28:01 +0100 |
commit | 0de274e62c0b7154222178de234c504dc916ede4 (patch) | |
tree | c512731d9d60a99967f126b6a27b514593a7d4f5 /linguistic/source/misc.cxx | |
parent | 1190623696c5664b13e874e047a96a50ce5bba30 (diff) |
Lok: make Ignore All list name independent on UI language
Fixes not working "Ignore All" context menu entry in e.g. German UI
in Online.
Change-Id: I761c9f65c89fb5c7e929ea20f2db4eff20f7d53d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161170
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r-- | linguistic/source/misc.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index c315ad1270ee..5c50af6f1946 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -34,6 +34,7 @@ #include <com/sun/star/ucb/XCommandEnvironment.hpp> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Reference.h> +#include <comphelper/lok.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/sequence.hxx> #include <unotools/charclass.hxx> @@ -690,7 +691,10 @@ uno::Reference< XDictionary > GetIgnoreAllList() uno::Reference< XSearchableDictionaryList > xDL( GetDictionaryList() ); if (xDL.is()) { - std::locale loc(Translate::Create("svt")); + const LanguageTag tag = comphelper::LibreOfficeKit::isActive() + ? LanguageTag("en-US") + : SvtSysLocale().GetUILanguageTag(); + std::locale loc(Translate::Create("svt", tag)); xRes = xDL->getDictionaryByName( Translate::get(STR_DESCRIPTION_IGNOREALLLIST, loc) ); } return xRes; |