Re: i18n/setlang TypeError :(((

2008-12-21 Thread pielgrzym
Thank you Karen :) My python install had some weird patches. Now everything works absolutely fine :) Thanks again :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: i18n/setlang TypeError :(((

2008-12-17 Thread Karen Tracey
On Wed, Dec 17, 2008 at 12:56 PM, pielgrzym wrote: > > Ok, I believe I've found a buggg ;) > > The problem is locale.translate can't handle utf encoded language > code. To avoid doing so I needed to add "lang_code = lang_code.encode > ('ascii')" to line 334 of django/utils/translation/trans_real.

Re: i18n/setlang TypeError :(((

2008-12-17 Thread pielgrzym
Ok, I believe I've found a buggg ;) The problem is locale.translate can't handle utf encoded language code. To avoid doing so I needed to add "lang_code = lang_code.encode ('ascii')" to line 334 of django/utils/translation/trans_real.py. Could someone take a peek if this is right (things started

i18n/setlang TypeError :(((

2008-12-17 Thread pielgrzym
Hello, I'm building a multilingual site with django. Everything seemed to go really slight: in the admin all the translation nicely include my locale .po files, same goes for {% trans %} tags in templates. Only one thing fails - manual language switch - I've followed really carefully the docs abo