Bug 121144 - In traditional Chinese interface, Donate to LibreOffice button in Help menu directs user to zh-CN page instead of zh-TW
Summary: In traditional Chinese interface, Donate to LibreOffice button in Help menu d...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.1.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-03 13:40 UTC by Cheng-Chia Tseng
Modified: 2018-11-06 15:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cheng-Chia Tseng 2018-11-03 13:40:53 UTC
Description:
In traditional Chinese interface (zh-TW locale), the "Donate to LibreOffice" button in Help menu redirects user to zh-CN page instead of zh-TW one.

Steps to Reproduce:
1. Switch to Chinese (Traditional) user interface, that is zh-TW locale
2. Click "說明 > 贊助 LibreOffice" to donate to LibreOffice
3. LibreOffice launches a browser and try to load https://hub.libreoffice.org/donation/?BCP47=zh-TW&LOlang=zh page

Actual Results:
The site redirects user to https://donate.libreoffice.org/zh-CN/?pk_campaign=hub page for zh-CN locale

Expected Results:
The site redirects user to https://donate.libreoffice.org/zh-TW/?pk_campaign=hub page for zh-TW locale


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 V Stuart Foote 2018-11-03 15:30:51 UTC
Donation local is assigned by locale [1], and donation page for zh-TW [2] has been built. Guess this would mean the donation/?BCP47=zh-TW&LOlang=zh is incorrectly using the fallback. 

=-ref-=
[1] https://opengrok.libreoffice.org/xref/core/sfx2/source/appl/appserv.cxx#566

[2] https://donate.libreoffice.org/zh-TW/?pk_campaign=hub
Comment 2 Franklin Weng 2018-11-04 01:34:15 UTC
(In reply to V Stuart Foote from comment #1)
> Donation local is assigned by locale [1], and donation page for zh-TW [2]
> has been built. Guess this would mean the donation/?BCP47=zh-TW&LOlang=zh is
> incorrectly using the fallback. 
> 
> =-ref-=
> [1]
> https://opengrok.libreoffice.org/xref/core/sfx2/source/appl/appserv.cxx#566
> 
> [2] https://donate.libreoffice.org/zh-TW/?pk_campaign=hub


Confirmed.

Same as #115795, using LOlang=zh would cause similar problems.

However I've tried to change it to LOlocale = utl::ConfigManager::getUILocale(), but it then jumped into English pages.  Maybe it would need to fix at the hub side too.
Comment 3 Franklin Weng 2018-11-06 15:23:02 UTC
Fixed by Guilhem from the hub.libreoffice.org side.  It works now.