Could you try updating to trunk and see if it works for you? I commited a patch yesterday that should fix the problem but I'd like some independent confirmation.
Thanks, Chris 2009/2/15 konstantin <[email protected]> > > Problem seems to be in l10n/utils.py: > > locale.normalize('ru'): > gives > > 'ru_RU.ISO8859-5' > > while was expected: > > 'ru_RU.UTF-8' > > Problem rises on the discussion but I didn't found a clear solution. > Don't want to modify code but can't find another way. Not good. > > On 13 фев, 18:50, konstantin <[email protected]> wrote: > > Hi, > > > > I have translated satchmo's django.po to russian. It works quite well > > until LANGUAGE_CODE set to 'ru-ru'. I got: > > > > -- > > Caught an exception while rendering: bad settings.LANGUAGE_CODE > > > > Original Traceback (most recent call last): > > File "/usr/lib/python2.5/django/template/debug.py", line 71, in > > render_node > > result = node.render(context) > > File "/usr/lib/python2.5/django/template/debug.py", line 87, in > > render > > output = force_unicode(self.filter_expression.resolve(context)) > > File "/usr/lib/python2.5/django/template/__init__.py", line 559, in > > resolve > > new_obj = func(obj, *arg_vals) > > File "/usr/lib/python2.5/site-packages/Satchmo-0.9_pre-py2.5.egg/ > > satchmo_store/shop/templatetags/satchmo_currency.py", line 52, in > > currency > > return mark_safe(moneyfmt(value, **kwargs)) > > File "/usr/lib/python2.5/site-packages/Satchmo-0.9_pre-py2.5.egg/ > > l10n/utils.py", line 121, in moneyfmt > > conv = get_locale_conv(current_locale) > > File "/usr/lib/python2.5/site-packages/Satchmo-0.9_pre-py2.5.egg/ > > l10n/utils.py", line 37, in get_locale_conv > > raise ImproperlyConfigured("bad settings.LANGUAGE_CODE") > > ImproperlyConfigured: bad settings.LANGUAGE_CODE > > -- > > > > And template error: > > > > -- > > {{ cart|discount_cart_total:sale|currency }} > > -- > > > > My current environment: > > > > LANG=ru_RU.UTF-8 > > LC_CTYPE="ru_RU.UTF-8" > > LC_NUMERIC="ru_RU.UTF-8" > > LC_TIME="ru_RU.UTF-8" > > LC_COLLATE="ru_RU.UTF-8" > > LC_MONETARY="ru_RU.UTF-8" > > LC_MESSAGES="ru_RU.UTF-8" > > LC_PAPER="ru_RU.UTF-8" > > LC_NAME="ru_RU.UTF-8" > > LC_ADDRESS="ru_RU.UTF-8" > > LC_TELEPHONE="ru_RU.UTF-8" > > LC_MEASUREMENT="ru_RU.UTF-8" > > LC_IDENTIFICATION="ru_RU.UTF-8" > > LC_ALL= > > > > I do have ru.RU-UTF8 locale on my ubunu box. But it seems locale does > > not properly set in python. Did I missed something? How should I > > correctly set it? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" 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/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
