Closed Bug 841758 Opened 11 years ago Closed 11 years ago

zh-hk on mobile sends Accept-Language: zh-cn instead of zh-tw

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(firefox19- wontfix)

RESOLVED WORKSFORME
Tracking Status
firefox19 - wontfix

People

(Reporter: henry.fai.hang.chan, Unassigned)

Details

Attachments

(1 file)

zh-hk on mobile now uses zh-tw, but the Accept-Language header is still erroneously zh-cn.

Visit http://www.wyavtv.org/test-html5-video.php and scroll down to "HTTP_ACCEPT_LANGUAGE".
On my Samsung Galaxy Note II; Android 4.2, locale customized to zh-HK loading the URL and I see:

["HTTP_ACCEPT_LANGUAGE"]=> string(35) "zh-tw,zh;q=0.8,en-us;q=0.5,en;q=0.3"

Why does it work for me?
Attached image Screenshot
I'm on Galaxy W, Android 2.3.6
Locale is zh-HK as per factory setting

["HTTP_ACCEPT_LANGUAGE"]=> string(35) "zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3"

Why doesn't it work for me...?
Above was tested on 3G, Wifi gives the same result.
(In reply to henryfhchan from comment #4)
> Above was tested on 3G, Wifi gives the same result.

Does this bug reproduce if you uninstall and re-install Firefox?
The bug doesn't reproduce in fennec 19.0b6.
I checked about:config in nightly, and intl.accept_languages was set to "zh-cn, zh, en-us, en" and I am quite sure I have not tinkered with it.

I suspect that this was set during installation and was left there after the change in behavior.  Maybe Firefox should reset that pref with the landing of 839380?

Having the default pref as of intl.accept_languages as "zh-hk, zh-tw, zh, en-us, en" (vs "zh-tw, zh, en-us, en" after resetting prefs) would be an extra bonus ;)
(In reply to henryfhchan from comment #7)
> The bug doesn't reproduce in fennec 19.0b6.

Given that, and the fact that most Chinese speaking users will be installing Firefox for the first time, no need to take action for FF19.
I tried clean install 19.0b1 (intl.accept_languages; zh-ch,zh,en-us,en) -- I then upgraded to 19.b6 via Google Play (intl.accept_languages; zh-tw,zh,en-us,en); the switch changed for me.
Shouldn't be an issue anymore
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: