#8626: Translations from "en_US" locale being used even though
request.LANGUAGE_CODE is "en"
-------------------------------------------+--------------------------------
Reporter: francisoreilly | Owner: nobody
Status: new | Milestone: 1.0
Component: Internationalization | Version: SVN
Resolution: | Keywords: locale language
en-us en-US
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by oggy):
This is very weird. From what I can see, the fault isn't on Django's part.
I have the exact same setup working perfectly (after fixing #7163) for
providing Serbian language in two scripts (sr and sr_LATN).
Unless I'm missing something, Python gettext (or gettext in general, don't
know anything about the implementation) will choose the en_US translation
over the en translation even if they both exist. But it only happens for
the en locale. I'm attaching a "diagnostic" diff for trans_real and a tgz
of your app with two Serbian locales added so you can see for yourself.
Phew, for once not having English as my primary language seems to make
things easier for me ;)
--
Ticket URL: <http://code.djangoproject.com/ticket/8626#comment:5>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---