summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-06-20 08:14:20 +0200
committerHeiko Tietze <tietze.heiko@gmail.com>2018-06-26 20:02:21 +0200
commitef32eff2fb9b4c00a1518b8cf4cae8433d564c61 (patch)
tree40dd4242368f16904457e2477716530e1e53dab3 /editeng
parent9b3f18ceda930f8e80149a850397ff3040b575f0 (diff)
tdf#117620 Localize the temporary IgnoreAllList dictionarys name
Also give it a human readable original name Change-Id: I86060badac145e7b60cf7dc2e67e16e7c84c2837 Reviewed-on: https://gerrit.libreoffice.org/56143 Tested-by: Jenkins Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> Tested-by: Heiko Tietze <tietze.heiko@gmail.com> (cherry picked from commit eff395c2d2a3026d9d65121e273af336fb0cfb19) Reviewed-on: https://gerrit.libreoffice.org/56446
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/unolingu.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx
index 6263a0db5398..25e7268a93e0 100644
--- a/editeng/source/misc/unolingu.cxx
+++ b/editeng/source/misc/unolingu.cxx
@@ -49,6 +49,8 @@
#include <linguistic/misc.hxx>
#include <editeng/eerdll.hxx>
#include <editeng/editrids.hrc>
+#include <svtools/strings.hrc>
+#include <unotools/resmgr.hxx>
using namespace ::comphelper;
using namespace ::linguistic;
@@ -594,7 +596,10 @@ uno::Reference< XDictionary > LinguMgr::GetIgnoreAll()
uno::Reference< XSearchableDictionaryList > xTmpDicList( GetDictionaryList() );
if (xTmpDicList.is())
{
- xIgnoreAll.set( xTmpDicList->getDictionaryByName( "IgnoreAllList" ), UNO_QUERY );
+ std::locale loc(Translate::Create("svt"));
+ xIgnoreAll.set( xTmpDicList->getDictionaryByName(
+ Translate::get(STR_DESCRIPTION_IGNOREALLLIST, loc) ),
+ UNO_QUERY );
}
return xIgnoreAll;
}