summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
authorMing Hua <plateauwolf@qq.com>2020-12-22 17:22:26 +0800
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2020-12-23 11:36:42 +0100
commitce614dcc6d099ce14acae22b48dacf299ef470fb (patch)
tree1aebd22117fd95b9e2fa80b15eabe52617eaf3fd /cui/source/dialogs
parent421d3fe399e798212fb6c1a14b4f2de1e545eb3c (diff)
tdf#127401 Fix release notes URL for simplified Chinese (zh-CN) UI
Use getBcp47() instead of getLanguage() to construct release notes URL for About dialog, just like what commit 787647b488d02be2acbbad4fa7873508dcb926c2 did for WhatsNew infobar. Should also affect other locales using ll-CC style wiki notation with both language and country codes, like pt-BR. Change-Id: Ic4698946f500b5901eb0c519f1fd4e3a4b8456cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108147 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/about.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index a4701019c938..021e9e4c8856 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -122,9 +122,10 @@ AboutDialog::AboutDialog(weld::Window *pParent)
localizeWebserviceURI(sURL);
m_pWebsiteButton->set_uri(sURL);
+ // See also SID_WHATSNEW in sfx2/source/appl/appserv.cxx
sURL = officecfg::Office::Common::Menus::ReleaseNotesURL::get() +
"?LOvers=" + utl::ConfigManager::getProductVersion() + "&LOlocale=" +
- LanguageTag(utl::ConfigManager::getUILocale()).getLanguage();
+ LanguageTag(utl::ConfigManager::getUILocale()).getBcp47();
m_pReleaseNotesButton->set_uri(sURL);
// Handler