Change app name in Admin (Newforms-admin)

11 views
Skip to first unread message

Anderson Santos

unread,
Jun 6, 2008, 1:43:19 PM6/6/08
to Django users
I was wondering how to translate application name in Admin page and I
only found messages back to 2006 with a suggestion to include a
variable "__verbose_name__" in the application's __init__.py file and
no ticket at all.

There are any news about it? Wouldn't be good if at least the newforms-
admin provide a way to translate the application names in the admin
interface? I have some applications in portuguese and japanese, in
english by default but not all users are used to the english terms. I
know, I can change the index template, but I mean for a robust way to
translate applications without hacking templates.

Rajesh Dhawan

unread,
Jun 6, 2008, 2:15:38 PM6/6/08
to Django users
Hi,

On Jun 6, 1:43 pm, Anderson Santos <anderson.santos...@gmail.com>
wrote:
> I was wondering how to translate application name in Admin page and I
> only found messages back to 2006 with a suggestion to include a
> variable "__verbose_name__" in the application's __init__.py file and
> no ticket at all.
>
> There are any news about it? Wouldn't be good if at least the newforms-
> admin provide a way to translate the application names in the admin
> interface?

If you add an app_label field to your Model's Meta class, Django
(newforms-admin branch) will then use that value for the application
name. In your case, use a translatable string for Meta.app_label. If
you have several models in the application, they will *all* need to
have app_label in their Meta classes.

-Rajesh D
Reply all
Reply to author
Forward
0 new messages