#8626: Translations from "en_US" locale being used even though request.LANGUAGE_CODE is "en" -------------------------------------+------------------------------------- Reporter: | Owner: nobody francisoreilly | Status: closed Type: | Component: Uncategorized | Internationalization Milestone: 1.0 | Severity: Normal Version: SVN | Keywords: locale language en- Resolution: wontfix | us en-US Triage Stage: Accepted | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 1 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- Changes (by d_leblond@…):
* ui_ux: => 0 * type: => Uncategorized * severity: => Normal * easy: => 0 Comment: I ran into this problem today. with the following imported: from django.utils.translation import activate you can do: activate(request.LANGUAGE_CODE) this will properly set the language when request.LANGUAGE_CODE is 'en' (instead of the improper en-us default) -- Ticket URL: <https://code.djangoproject.com/ticket/8626#comment:11> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.