summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2018-09-18 20:15:43 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2018-09-19 12:53:44 +0200
commitc11a2c0e42add67785413bbb0afc79e7ab92161f (patch)
tree15789c0f162dec91f5016dbf5cbf463bfe7d39dc
parent13ebc1b15a61d2607096c37b03f986a0122227ea (diff)
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 <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit 17d981d795f18422e1435180d42baeba509c1280) Reviewed-on: https://gerrit.libreoffice.org/60742 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r--sfx2/source/view/viewfrm.cxx5
1 files changed, 4 insertions, 1 deletions
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 <boost/optional.hpp>
+#include <unotools/configmgr.hxx>
+
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&)
{