diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-06-20 08:14:20 +0200 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2018-06-26 10:41:01 +0200 |
commit | eff395c2d2a3026d9d65121e273af336fb0cfb19 (patch) | |
tree | ecfed2e0992b450ceb872f4e0623e9aaeb0b5169 /linguistic/source/misc.cxx | |
parent | 96c43a21da48e9ef50f199b9418e089da42a8ebb (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 'linguistic/source/misc.cxx')
-rw-r--r-- | linguistic/source/misc.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index ac0f508751d3..6582c91db586 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -38,6 +38,8 @@ #include <comphelper/processfactory.hxx> #include <unotools/localedatawrapper.hxx> #include <unotools/syslocale.hxx> +#include <svtools/strings.hrc> +#include <unotools/resmgr.hxx> #include <rtl/instance.hxx> @@ -741,7 +743,10 @@ uno::Reference< XDictionary > GetIgnoreAllList() uno::Reference< XDictionary > xRes; uno::Reference< XSearchableDictionaryList > xDL( GetDictionaryList() ); if (xDL.is()) - xRes = xDL->getDictionaryByName( "IgnoreAllList" ); + { + std::locale loc(Translate::Create("svt")); + xRes = xDL->getDictionaryByName( Translate::get(STR_DESCRIPTION_IGNOREALLLIST, loc) ); + } return xRes; } |