Re: Changing one vs many translations to not use gettext plural

17 views
Skip to first unread message

Marc Egli

unread,
May 19, 2013, 9:33:11 AM5/19/13
to djang...@googlegroups.com
Sorry for the missing translation tag. Here is an updated version:
https://github.com/frog32/django/commit/8b10363e08e4404a0023da46baee80f2efcb00b5

Am Sonntag, 19. Mai 2013 12:21:55 UTC+2 schrieb Marc Egli:
ticket #20455 (https://code.djangoproject.com/ticket/20455) shows a problem that occurs when using gettext plural without using the actual number in the string.

A solution would be to change these translation to the following form:
{% if count == 1 %}There is a bug.{% else %}There are many bugs.{% endif %}


Is there any language which doesn't work using these two separate strings?

Claude Paroz

unread,
May 20, 2013, 11:21:18 AM5/20/13
to djang...@googlegroups.com
I also think that ngettext is designed for defined plurals, so +1 from
me.

Claude
--
www.2xlibre.net

Reply all
Reply to author
Forward
0 new messages