N
N
northicewind2011-07-28 16:51:48
Django
northicewind, 2011-07-28 16:51:48

Russification of the model name in the django admin panel?

Hello colleagues. Help deal with the issue.
There is an Image model

class Image(models.Model):<br>
    ...<br>
    class Meta:<br>
        verbose_name = u'Изображение'<br>
        verbose_name_plural = u'Изображения'<br>

And everything seems to be shown normally, but in the admin panel, when editing model data, it is displayed.
5d4238c6.png
Is there a way to translate this part of the admin panel normally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ano, 2011-07-28
@northicewind

I'm afraid the only way is to override the admin/pagination.html template because it says stupidly
{{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question