After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624431 - Automatically detection of language is not working for zh_CN.
Automatically detection of language is not working for zh_CN.
Status: RESOLVED DUPLICATE of bug 617365
Product: website
Classification: Infrastructure
Component: help.gnome.org
current
Other All
: Normal normal
: ---
Assigned To: GNOME Web maintainers
GNOME Web maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-15 08:06 UTC by Tao Wang
Modified: 2010-07-15 08:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tao Wang 2010-07-15 08:06:31 UTC
I visit library.gnome.org by Firefox and Chromium. It's English at first, and then, I clicked "中文 (中国大陆) (zh_CN)" from "Available Languages:" section, the page is correctly shown in Chinese.

However, whatever link I clicked on the page, say "http://library.gnome.org/devel/references", the page will become English again.

And I found this message right below the "Available Languages:" section: 

"Unable to display document in preferred language loaded from cookie, as translation probably does not exist.

Remove cookie"

I tried remove cookie and click zh_CN again, it just show the current page in Chinese, for any other link, it will turn back to English.

I also checked the link, http://www.cs.tut.fi/cgi-bin/run/~jkorpela/lang.cgi , which is used for detect the Accept-Language section. For the firefox, it returns:

Accept-Language: zh-cn,zh;q=0.5
	zh-cn 	1
	zh 	0.5

For Chromium:

Accept-Language: zh-CN,en-US;q=0.8,en;q=0.6
	zh-CN	1
	en-US	0.8
	en	0.6

The language setting is definitely correct, so it should be a bug in the language detection part of library.gnome.org.

Could you fix it? Thanks.
Comment 1 Tao Wang 2010-07-15 08:35:41 UTC
I think the bug is duplicate with those 2 bugs:

Bug 620035  - Setting language to "Polish" doesn't work across pages  

Bug 617365  - Language selected is lost when changing tab
Comment 2 Frederic Peters 2010-07-15 08:38:14 UTC
Thanks for the detailed info; I am merging this bug report with bug 617365 which is about the same issue.

*** This bug has been marked as a duplicate of bug 617365 ***