tickets: 7831
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7831 | 2008-07-19 07:55:10 | 2011-09-28 16:12:17 | 2022-03-06 03:40:40.217468 | Accepted | closed | Internationalization | dev | fixed | get_language_from_request should be case-insensitive while matching settings.LANGUAGES | HTTP_ACCEPT_LANGUAGE sent by browser will be different from its vendor or OS, for example: In XP, IE(6 or 7) will send '''zh-tw''', in Vista it will be '''zh-TW''' But firefox2 in some machine will send '''zh-tw''' or '''zh-TW''', In firefox3, it will send '''zh-tw''' always. (In my machine). This will cause this line in trans_real.py failed: {{{ if lang not in supported: continue }}} It should compare it with case-insensitive way to fulfill all situations. Thanks. | nobody | bear330 | locale, language, case, middleware | 0 | 1 | 0 | 0 | 0 | 0 |