Revert "Resolves tdf#127401 - Chinese locale pointing to wrong hub forward address"
This reverts commit 2788cc07e9d0d078b53a7280d524175c03c51e12.
Reason for revert: <INSERT REASONING HERE>
Change-Id: I47277e7344d5533cc09a3fd6637a0780b36fe739
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95427
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index c61a8ab..6dd813f 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -551,7 +551,6 @@
{
// Open donation page based on language + script (BCP47) with language as fall back.
OUString aLang = LanguageTag(utl::ConfigManager::getUILocale()).getLanguage();
if (aLang == "zh") aLang = "zh-cn";//tdf#127401
OUString aBcp47 = LanguageTag(utl::ConfigManager::getUILocale()).getBcp47();
OUString sURL(officecfg::Office::Common::Menus::DonationURL::get() + //https://hub.libreoffice.org/donation/
"?BCP47=" + aBcp47 + "&LOlang=" + aLang );
@@ -561,11 +560,9 @@
case SID_WHATSNEW:
{
// Open release notes depending on version and locale
OUString aLang = LanguageTag(utl::ConfigManager::getUILocale()).getLanguage();
if (aLang == "zh") aLang = "zh-cn";//tdf#127401
OUString sURL(officecfg::Office::Common::Menus::ReleaseNotesURL::get() + //https://hub.libreoffice.org/ReleaseNotes/
"?LOvers=" + utl::ConfigManager::getProductVersion() +
"&LOlocale=" + aLang );
"&LOlocale=" + LanguageTag(utl::ConfigManager::getUILocale()).getBcp47() );
sfx2::openUriExternally(sURL, false);
break;
}