pinax / symposion

a Django project for conference websites
BSD 3-Clause "New" or "Revised" License
299 stars 147 forks source link

Apps name i18n/l10n #93

Closed miurahr closed 9 years ago

miurahr commented 9 years ago

When specified label and verbose_name in apps.py, django 1.7 ignores verbose_name and use label.title() for admin interface.

For example;

class SponsorshipConfig(AppConfig):
    name = "symposion.sponsorship"
    label = "symposion_sponsorship"
    verbose_name = "Symposion Sponsorship"

That make admin screen tiltle "Symposim_Sponsorship" that is as same as lable.title().

When trying to i18n app such as

class SponsorshipConfig(AppConfig):
    name = "symposion.sponsorship"
    label = "symposion_sponsorship"
    verbose_name = _("Symposion Sponsorship")

then it is no work. I see admin screen with titled "Symposion_Sponsorship" that is as same as label.title()

class SponsorshipConfig(AppConfig):
    name = "symposion.sponsorship"
    verbose_name = _("Symposion Sponsorship")

is working i18n/l10n well. I see a translated string in admin screen.

miurahr commented 9 years ago

This is a problem not on symposion but on django-admin-tools, sorry.