Description
The zh-tw language is detected as zh.
Steps to reproduce
The Preferred language is configured as <Browser setting>, and the language setting of the browser is zh-tw. However, the system texts shown in Moin Moin 1.6 is zh, not zh-tw.
Example
The following are the requests sent to MoinMin 1.6. Note that the first Accept-Language is zh-tw in both case:
- HTTP request sent from Firefox 2.0.0.7:
GET /MoinI18n/zh-tw HTTP/1.1 Host: moinmaster.wikiwikiweb.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: zh-tw,en-us;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: MOIN_SESSION=... Cache-Control: max-age=0
- HTTP request sent from IE 6.0:
GET /MoinI18n/zh-tw HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, */* Referer: http://moinmaster.wikiwikiweb.de/action/userprefs/MoinI18n/zh-tw?action=Load Accept-Language: zh-tw,en-us;q=0.5 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Host: moinmaster.wikiwikiweb.de Connection: Keep-Alive Cookie: MOIN_SESSION=...
Component selection
- general
Details
MoinMoin Version |
Release 1.6.0alpha |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
<Browser setting> |
Workaround
Discussion
Plan
- Priority:
- Assigned to:
- Status: fixed in moin 1.6 by changeset 2224:14ad31676a80 (fixes pt-br also), has to get ported to 1.7