[Libreoffice-commits] core.git: sfx2/source
Jan Holesovsky
kendy at collabora.com
Mon Jan 8 10:43:36 UTC 2018
sfx2/source/appl/sfxhelp.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit bd00b979e2d7a1d63e65d1c49be90b9deacb1b56
Author: Jan Holesovsky <kendy at collabora.com>
Date: Thu Dec 14 08:46:32 2017 +0100
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 at collabora.com>
Tested-by: Michael Meeks <michael.meeks at collabora.com>
(cherry picked from commit ca35b857cc99dcd909e5c2662043ea6a4ffdf244)
Reviewed-on: https://gerrit.libreoffice.org/46969
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index bce03be37adb..bdfba5d88435 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -103,6 +103,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())
{
More information about the Libreoffice-commits
mailing list