From c11a2c0e42add67785413bbb0afc79e7ab92161f Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Tue, 18 Sep 2018 20:15:43 +0200 Subject: add locale to joinus link so hub can redirect to language specific pages Change-Id: Ibed6f899ad0219bf0211ac50c0595484ddba8c92 Reviewed-on: https://gerrit.libreoffice.org/60696 Tested-by: Jenkins Reviewed-by: Christian Lohmaier (cherry picked from commit 17d981d795f18422e1435180d42baeba509c1280) Reviewed-on: https://gerrit.libreoffice.org/60742 Reviewed-by: Adolfo Jayme Barrientos --- sfx2/source/view/viewfrm.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index e2194d6ba9c1..b0b972a4f572 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -91,6 +91,8 @@ #include +#include + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::ucb; @@ -1371,7 +1373,8 @@ IMPL_LINK_NOARG(SfxViewFrame, GetInvolvedHandler, Button*, void) { try { - sfx2::openUriExternally("https://hub.libreoffice.org/joinus", false); + OUString sURL("https://hub.libreoffice.org/joinus/?LOlocale=" + utl::ConfigManager::getLocale()); + sfx2::openUriExternally(sURL, false); } catch (const Exception&) { -- cgit