diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-23 13:27:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-25 11:09:16 +0200 |
commit | 57f649dc9a72e043901582a6e3da916da18ca4ed (patch) | |
tree | 3cb0e04e4226ee9db0e0359c58f4d7e6764fbefe /lingucomponent/source/spellcheck | |
parent | loplugin:constmethod in tools,sax,UnoControls (diff) | |
download | core-57f649dc9a72e043901582a6e3da916da18ca4ed.tar.gz core-57f649dc9a72e043901582a6e3da916da18ca4ed.zip |
Related: tdf#80713 allow translation of linguistic service display names
Change-Id: I23309dde1520e20e66d72fe9780454632d5f75b6
Reviewed-on: https://gerrit.libreoffice.org/43718
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lingucomponent/source/spellcheck')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 0f363d7d35ad..a4b2a7c197f2 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -35,8 +35,10 @@ #include <linguistic/lngprops.hxx> #include <linguistic/spelldta.hxx> #include <i18nlangtag/languagetag.hxx> +#include <svtools/strings.hrc> #include <unotools/pathoptions.hxx> #include <unotools/lingucfg.hxx> +#include <unotools/resmgr.hxx> #include <unotools/useroptions.hxx> #include <osl/file.hxx> #include <rtl/ustrbuf.hxx> @@ -579,9 +581,10 @@ sal_Bool SAL_CALL SpellChecker::removeLinguServiceEventListener( return bRes; } -OUString SAL_CALL SpellChecker::getServiceDisplayName( const Locale& /*rLocale*/ ) +OUString SAL_CALL SpellChecker::getServiceDisplayName(const Locale& rLocale) { - return OUString( "Hunspell SpellChecker" ); + std::locale loc(Translate::Create("svt", LanguageTag(rLocale))); + return Translate::get(STR_DESCRIPTION_HUNSPELL, loc); } void SAL_CALL SpellChecker::initialize( const Sequence< Any >& rArguments ) |