Help pages all in Chinese with no Accept-Language
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| ubuntu-docs (Ubuntu) |
High
|
Unassigned |
Bug Description
If you go to any help page on help.ubuntu.com, for example:
https:/
And you happen to be using a browser which does not send an Accept-Language header, the page will be shown in Chinese. No option or link is visible allowing the page to be shown in another language. Confirmed using source IP addresses from 3 countries, none of them China, so it doesn't seem to be geolocated.
Related branches
Adolfo Jayme (fitojb) wrote : | #1 |
Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in ubuntu-docs (Ubuntu): | |
status: | New → Confirmed |
no longer affects: | ubuntu-website |
tags: | added: website |
Gunnar Hjalmarsson (gunnarhj) wrote : | #3 |
This bug should be about to be fixed. Via revision 142 and 144 in the linked branch the previous
ForceLanguagePr
in the .htaccess file has been replaced with
LanguagePriority en
ForceLanguagePr
We will see tomorrow if it changes the behavior as expected.
Changed in ubuntu-docs (Ubuntu): | |
importance: | Undecided → High |
status: | Confirmed → Fix Committed |
Doug Smythies (dsmythies) wrote : | #4 |
Note that the directives do not work as the apache documentation says they should.
Test results that lead to Gunnar's change above:
Server = 12.04 (Apache 2.2):
Browswer = no language preference list:
1.) No .htaccess file at all: Result: English
2.) .htaccess with only "LanguagePriority en". Result: English
3.) .htaccess with only "LanguagePriority zh-CN". Result: Chinese
4.) .htaccess with "LanguagePriority zh-CN" and "ForceLanguageP
5.) .htaccess with "LanguagePriority en" and "ForceLanguageP
6.) .htaccess with only "ForceLanguageP
7.) No .htaccess file at all: Result: English (Sanity check)
8.) .htaccess with only "LanguagePriority en". Result: English
9.) .htaccess with only "LanguagePriority zh-CN". Result: Chinese
10.) .htaccess with only "LanguagePriority en". Result: English
11.) .htaccess with only "LanguagePriority de". Result: German
12.) .htaccess with "LanguagePriority de" and "ForceLanguageP
13.) .htaccess with "LanguagePriority de" and "ForceLanguageP
14.) .htaccess with "LanguagePriority zz" and "ForceLanguageP
15.) .htaccess with only "ForceLanguageP
Now, .htaccess with "LanguagePriority de" and "ForceLanguageP
16.) Language preference French. Result: French
17.) Language preference Afrikaans. Result: German (Note: we do not have this language).
18.) Language preferences en then en-US (my original settings). Result: English
19.) No .htaccess at all and Language preference Afrikaans. Result: English
20.) .htaccess with only "LanguagePriority de" and Language preference Afrikaans. Result: German
21.) .htaccess with "LanguagePriority de" and "ForceLanguageP
22.) .htaccess with "LanguagePriority de" and "ForceLanguageP
Server = 14.04 (Apache 2.4):
Browswer = no language preference list:
1.) No .htaccess file at all: Result: English
2.) .htaccess with only "LanguagePriority de". Result: German
3.) .htaccess with "LanguagePriority de" and "ForceLanguageP
4.) .htaccess with only "ForceLanguageP
5.) .htaccess with "LanguagePriority zz" and "ForceLanguageP
6.) .htaccess with "LanguagePriority zz" and "ForceLanguageP
7.) .htaccess with only "ForceLanguageP
Now, .htaccess with "LanguagePriority de" and "ForceLanguageP
8.) Language preference French. Result: French
9.) Language preference Afrikaans. Result: German (Note: we do not have this language).
10.) No .htaccess at all and Language preference Afrikaans. Result: English
11.) .htaccess with only "LanguagePriority de" and Language preference ...
Gunnar Hjalmarsson (gunnarhj) wrote : | #5 |
Right, Doug, without those tests it would have been difficult to figure out a working configuration. Thanks!
For the record it's worth mentioning that the crawlers of the search engines don't send Accept-Language headers. Hence the most serious consequence of this bug has been that titles and descriptions in search results at Google and friends have been displayed in random languages; in Google that language has usually been Chinese.
https:/
This is the reason why I set the importance of this bug to high.
Changed in ubuntu-docs (Ubuntu): | |
status: | Fix Committed → Fix Released |
Impractical workaround: append a dot and the language code to the URL. Example: https:/ /help.ubuntu. com/12. 04/ubuntu- help/index. html.es