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 528913 - Switching languages in libgo
Switching languages in libgo
Status: RESOLVED FIXED
Product: website
Classification: Infrastructure
Component: help.gnome.org
current
Other Linux
: Normal normal
: ---
Assigned To: GNOME Web maintainers
GNOME Web maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-19 14:49 UTC by Marc-Andre Lureau
Modified: 2009-07-16 11:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marc-Andre Lureau 2008-04-19 14:49:25 UTC
(I am using ff3, I don't know if it really matters)

Steps to reproduce the bug:

1. http://library.gnome.org/devel/guides (for example)
2. switch to french
3. go to http://library.gnome.org/devel/platform-overview/stable/
4. go back
5. switch to english
6. go to http://library.gnome.org/devel/platform-overview/stable/

-> the page is still in french.

Doing a "refresh" of the page solves it. But is it really something that cannot be fixed (note: I don't know anything about cookies, page & cache issues)
Comment 1 Frederic Peters 2008-04-19 16:33:36 UTC
The problem is there is no Vary: cookie header sent along the files, the served header is Vary: negotiate,accept-language.

But there is this line in the apache configuration:
  SetEnvIf Cookie "language=(.+)" prefer-language=$1 Header append Vary cookie
which should cause the cookie value to be appended, as step 5 would not remove the cookie but set it to "en".

However it could be worth testing with a global "Header append Vary cookie" as the absence of a cookie has to be considered.

Olav, what do you think about this?
Comment 2 Frederic Peters 2009-07-16 10:08:53 UTC
Hello sysadmins, this is about adding "Header append Vary cookie" to library.gnome.org httpd configuration.
Comment 3 Claude Paroz 2009-07-16 11:40:56 UTC
It works now for two-letter codes, but not for longer codes like pt_BR or zh_CN. Should I open another report for this?