[Libreoffice-commits] core.git: cui/source
Ming Hua (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 23 10:37:20 UTC 2020
cui/source/dialogs/about.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ce614dcc6d099ce14acae22b48dacf299ef470fb
Author: Ming Hua <plateauwolf at qq.com>
AuthorDate: Tue Dec 22 17:22:26 2020 +0800
Commit: Heiko Tietze <heiko.tietze at documentfoundation.org>
CommitDate: Wed Dec 23 11:36:42 2020 +0100
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 at documentfoundation.org>
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
More information about the Libreoffice-commits
mailing list