summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMing Hua <plateauwolf@qq.com>2020-12-22 17:22:26 +0800
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2020-12-27 07:20:37 +0100
commitbbf7cf0da359dfdd0f6ee7516eb05a9adc8a2354 (patch)
tree617c4806412a81bb1beb1c700089298996023737
parent8dd2e9900d4f00dbc7ce289d9ce9a9c6739b4851 (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> (cherry picked from commit ce614dcc6d099ce14acae22b48dacf299ef470fb) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108179 Reviewed-by: Ming Hua <plateauwolf@qq.com> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-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