Jannis Leidel wrote:
>
> On 05.07.2011, at 09:26, Jonathan Slenders wrote:
>
>> I'm also +1 on {% language lang_code %}... {% endlanguage %}
>>
>> We are using exactly this template tag for maybe about half a year
>> already. Not for i18n urls, but for formatting numbers. The decimal
>> separator in Dutch is a comma, but sometimes we want to be sure to
>> have a dot a some part of the template. (When rendering SVG, JSON or
>> other markup lanugages.)
>>
>> So, this is certainly a very versatile approach.
>
> Great, thanks all for your opinions, I actually went ahead yesterday
> and added it in https://code.djangoproject.com/changeset/16501
>
> Jannis
>
Isn't this about more than language, but also locale?
In Grantlee I implemented this as a with_locale tag:
http://gitorious.org/grantlee/grantlee/blobs/master/examples/contacts/themes/linguist/sleepy/main.html
And then eg dates are also localized:
http://steveire.files.wordpress.com/2010/11/contacts_multi_lang_headers.png
--
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en.