How can you tell ugettext that the plural form is not the singular form even if they are equal in English?
class News(models.Model):
class Meta:
verbose_name = _('news')
verbose_name_plural = _('news')
makemessages gives this:
#: models.py:134, models.:135
msgid "news"
msgstr "noticia"
Spliting this definition breaks the compilation with "duplicate message definition..."
Workarounds I found:
Try:
from django.utils.translation import pgettext
class News(models.Model):
class Meta:
verbose_name = pgettext("news singular", "news")
verbose_name_plural = pgettext("news plural", "news")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With