2007/10/31, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > On Wed, 2007-10-31 at 13:40 +0800, Jason Cui wrote: > > 2007/10/31, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > > On Tue, 2007-10-30 at 00:37 -0700, Jason Cui wrote: > > > When I update my site from 0.96 to 0.96.1,my > > internationalize function > > > won't work for firefox, but fine for IE. > > > I use english in views and templates, and trans it to > > chinese in po > > > file, and I have to local folder named en and zh, now, any > > firefox > > > users can only see english page, change the language options > > is > > > useless, but IE has no problem, show chinese page. > > > > Can anybody else confirm this? > > > > Malcolm > > If my firefox's language setting has only zh and zh_cn options, it > > will show chinese page, > > when I add en to this setting, it will always show english page, even > > if I set en as the last one. > > I've had some time now to look at this. > > It turns out that security bugfix has exposed a different bug in Django. > It will only show up for the zh-cn, zh-tw and pt-br locales, which is > why it wasn't noticed during testing prior to the security release. > > The workaround for now is to open up django/conf/global_settings.py and, > in the LANGUAGES list, find the line that says > > ('zh-cn', gettext_noop('Simplified Chinese')), > > and replace it with > > ('zh_CN', gettext_noop('Simplified Chinese')), > > (For completeness, make similar changes to the zh-tw and pt-br lines, > too. Replace the trailing hyphen and country modifier with an underscore > and the all-capital-letter version.) > > I'm pretty sure this is the right (as in "simplest") fix for this > problem globally, too. So it'll probably be what we end up landing in > trunk. I'll talk to the other maintainers about whether we want to > quickly make new releases or what to do here to mitigate this. > > Apologies for the temporary problems this has caused. We try our best, > but sometimes things fall through the cracks. > > Regards, > Malcolm > > > Thank you very much for your excellent work.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---