On Fri, Mar 6, 2009 at 11:21 PM, Malcolm Tredinnick
<malc...@pointy-stick.com> wrote:
>
> On Fri, 2009-03-06 at 07:01 -0800, patrickk wrote:
>> so, now here´s a little tutorial for translating app-names throughout
>> the admin-interface:
>
> Nice summary. :-)
>
>> 3. change app-names in index.html /// on line 18 replace {% blocktrans
>> with app.name as name %}{{ name }}{% endblocktrans %} with {% trans
>> app.name %}
>
> Not sure what's going on there, but it's a bug. Blocktrans shouldn't be
> behaving strangely (using "trans" isn't wrong and we could just switch
> to that, but I'd like to understand what's going with "blocktrans",
> too).
>
> That's why I thought this should have just worked with marking the names
> for translation in a file somewhere. Hmm ... mysterious. :-(
>
>>
>> 4. change breadcrumbs in change_list.html /// on line 25 replace
>> {{ app_label|capfirst }} with {% trans app_label %}
>>
>> 5. change breadcrumbs in change_form.html /// on line 28 replace
>> { app_label|capfirst }} with {% trans app_label %}
>>
>> 6. change app-names in app_index.html /// on line 11 replace {%
>> blocktrans with app.name as name %}{{ name }}{% endblocktrans %} with
>> {% trans app.name %}
>>
>> 7. change title in base_site.html /// on line 69 replace {{ title }}
>> with {% trans title %}

I've opened [1]ticket 10436 for this , please test the patch attached
and/or post
feedback about it or the ticket description notes.

>
> All of those are bugs (the same bug: not marking app name for
> translation). If you'd like to open a ticket and drop in a patch, it's
> an more-or-less obviously correct set of changes to make.
>
> Put it in the "internationalisation" component.
>

I've selected django.contrib.admin instead, change it to internationalization
if you consider it more correct.

-- 
Ramiro Morales
http://rmorales.net

1. http://code.djangoproject.com/ticket/10436

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

Reply via email to