there was a discussion about this issue a while ago - adrian said
that he wants to add the possibility to translate app_names (don“t
know if this feature has been added though).
changing index.html is a rather uncomfortable solution from my point
of view.
thanks,
patrick
Am 10.07.2007 um 01:11 schrieb Chris Rich:
>
> Cool thanks,
> Yeah I was didn't think there was a meta class for the app names.
> I'll go fiddle around with it.
>
> Chris
>
> On Jul 9, 3:23 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
>>> Quick question. Is there any way to add a verbose name for
>>> one of my apps? I have an app named my_transfers and in the
>>> admin index view
>>
>> Ah...I missed that it was the *app* not the Model that you were
>> looking for.
>>
>> According to django/contrib/admin/templates/admin/index.html
>>
>> you want to affect the value of {{app_list.name}} This is
>> assigned in the django/contrib/admin/templatetags/adminapplist.py
>>
>> Tracing this back to db/models/base.py where it's assigned, and
>> looking at several other places in the code, this looks like this
>> needs to be a name that can be used in identifier contexts.
>>
>> However, since it's just being pulled into the template, you can
>> tweak the django/contrib/admin/templates/admin/index.html and its
>> kin to pull a prettified app-name if desired for presentation
>> purposes, and fall back to the original code if not specified.
>>
>> -tim
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---