#15287: Error messages in generic views are partialy translated -----------------------------------------------------+---------------------- Reporter: szczav | Owner: nobody Status: new | Milestone: Component: Generic views | Version: SVN Keywords: generic views http404 translation error | Triage Stage: Unreviewed Has patch: 0 | -----------------------------------------------------+---------------------- Http404 error messages in class based generic views are not translated, but model names passed to them are. Example: raise Http404("No %s available" % model._meta.verbose_name)
Messages should be translated completely or not translated at all. As I see in Django source code they are almost always not translated. I think that ```model._meta.verbose_name``` should be replaced by ```model._meta.object_name```. It's related with #12418. -- Ticket URL: <http://code.djangoproject.com/ticket/15287> Django <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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.