[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Sep 19 10:54:07 UTC 2018


 sfx2/source/view/viewfrm.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit c11a2c0e42add67785413bbb0afc79e7ab92161f
Author:     Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
AuthorDate: Tue Sep 18 20:15:43 2018 +0200
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Wed Sep 19 12:53:44 2018 +0200

    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 at googlemail.com>
    (cherry picked from commit 17d981d795f18422e1435180d42baeba509c1280)
    Reviewed-on: https://gerrit.libreoffice.org/60742
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

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&)
     {


More information about the Libreoffice-commits mailing list