diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-12-14 08:46:32 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-12-14 11:32:37 +0100 |
commit | ca35b857cc99dcd909e5c2662043ea6a4ffdf244 (patch) | |
tree | 87520175b471a753d0f9f8a8f0c4a171f9092765 /sfx2 | |
parent | eaccbef4f4f9509152efb7613f2ff48a2d6e7a5e (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>
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 7e98a7984ed2..869945874d48 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -104,6 +104,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()) { |