#3832: i18n of application names in admin
-------------------------------+--------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: closed | Component: Admin interface
Version: SVN | Resolution: duplicate
Keywords: admin i18n | Stage: Design decision needed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-------------------------------+--------------------------------------------
Comment (by simonbun <[EMAIL PROTECTED]>):
For what it's worth, there's a trivial workaround for this problem.
1) put your app name with gettext_lazy call in your model file. I just put
it at the top of my models.py file: _('myappname')
2) override the admin's index.html template and change out
{{{
<caption>{% blocktrans with app.name as name %}{{ name }}{% endblocktrans
%}</caption>
}}}
with
{{{
<caption>{% trans app.name %}</caption>
}}}
in the app_list loop.
Hackish & not so elegant, but it does work.
--
Ticket URL: <http://code.djangoproject.com/ticket/3832#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---