2👍
✅
After getting deep into Django sources, this is not possible to do it in admin usecases without overriding many of functions.
5👍
You need to put in your .po file:
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
Then, in your template you use the plural form passing a valid counter. Gettext have all information needed:
- It knows how many plurals there are
- It knows how to calc the plural for a number
- Django passes the msg_id for plural and a counter
- Get a queryset's current order_by ordering
- How to run multiple Django sites on Nginx and uWSGI?
- Django query filter by number of ManyToMany objects
- How to update a file location in a FileField?
Source:stackexchange.com