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 10:41:01 +0200
commiteff395c2d2a3026d9d65121e273af336fb0cfb19 (patch)
treeecfed2e0992b450ceb872f4e0623e9aaeb0b5169 /editeng
parent96c43a21da48e9ef50f199b9418e089da42a8ebb (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>
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;
}