Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#16525 closed Bug (wontfix)

Bug in get_language_from_request on python 2.4 and Ukrainian language

Reported by: AndrewG Owned by: nobody
Component: Internationalization Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django 1.3, CentOS 5 (python 2.4).

HTTP_ACCEPT_LANGUAGE = 'uk,ru;q=0.8,en-us;q=0.5,en;q=0.3'

But get_language_from_request return ru.

normalized = locale.locale_alias.get(to_locale(accept_lang, True))

Not work, because:
locale_alias haven't "uk", in python 2.4. Its hard-coded.

Change History (2)

comment:1 by Aymeric Augustin, 13 years ago

Resolution: wontfix
Status: newclosed

I'm sorry, but I'm going to close this bug as "wontfix": Django 1.4 won't support Python 2.4, and the problem isn't serious enough to be fixed in the maintenance branche (see the backport policy).

comment:2 by Russell Keith-Magee, 13 years ago

This probably warrants some clarification: If someone were to present a ready-to-use patch, with test case, that didn't require a major performance overhead in order to support Python 2.4, then we would probably fix this. However, in the absence of a patch, we're closing the issue as an edge case we're willing to live with.

If you want to provide a patch, feel free to reopen this ticket.

Note: See TracTickets for help on using tickets.
Back to Top