diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-12-14 08:46:32 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-21 10:26:51 +0100 |
commit | 8c72cc5bf4b814ba78adab373ce8efb31f09fa2e (patch) | |
tree | 8efb41509f41bb6989f815df678572228867302a /sfx2 | |
parent | e0fb4afa676372ce28e15adb01f3f15d4a7f4a09 (diff) |
LOK: Honor the user's language when issuing help.
Change-Id: I2cfe5e5ae0e10dffb7b5672fccdc71af6060491d
Reviewed-on: https://gerrit.libreoffice.org/46435
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit ca35b857cc99dcd909e5c2662043ea6a4ffdf244)
Reviewed-on: https://gerrit.libreoffice.org/46969
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit bd00b979e2d7a1d63e65d1c49be90b9deacb1b56)
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index a281a6dd479a..694aaf787c97 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -102,6 +102,9 @@ static bool impl_hasHelpInstalled( const OUString &rLang ); /// Return the locale we prefer for displaying help static OUString const & HelpLocaleString() { + if (comphelper::LibreOfficeKit::isActive()) + return comphelper::LibreOfficeKit::getLanguageTag().getBcp47(); + static OUString aLocaleStr; if (aLocaleStr.isEmpty()) { |