Sunday, October 24, 2010

How to switch L10N off in django

LANGUAGE_CODE = 'ru-RU'

USE_I18N = True

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = False
{{ post.date_added|date:"b" }} gives "окт" in templates.

If I set USE_I18N = False then it gives oct as it should be. Is this a
bug ? How can I solve this problem ? Are there any possibilities to
disable USE_I18N in template (in part of it) ?

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment