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/thesaurus/libnth/nthesimp.cxx | |
parent | 83fd71e041f2c0520c4cc213e238c7f3c674c5a3 (diff) |
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/thesaurus/libnth/nthesimp.cxx')
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 9c008ef4ad9d..d0bdc0b46a7b 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -30,11 +30,14 @@ #include <osl/mutex.hxx> #include <unotools/pathoptions.hxx> #include <unotools/lingucfg.hxx> +#include <unotools/resmgr.hxx> #include <rtl/string.hxx> #include <rtl/ustrbuf.hxx> #include <rtl/textenc.h> +#include <svtools/strings.hrc> + #include "nthesimp.hxx" #include <linguistic/misc.hxx> #include <linguistic/lngprops.hxx> @@ -517,9 +520,10 @@ Reference< XInterface > SAL_CALL Thesaurus_CreateInstance( return xService; } -OUString SAL_CALL Thesaurus::getServiceDisplayName( const Locale& /*rLocale*/ ) +OUString SAL_CALL Thesaurus::getServiceDisplayName(const Locale& rLocale) { - return OUString( "Mythes Thesaurus" ); + std::locale loc(Translate::Create("svt", LanguageTag(rLocale))); + return Translate::get(STR_DESCRIPTION_MYTHES, loc); } void SAL_CALL Thesaurus::initialize( const Sequence< Any >& rArguments ) |