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

Showing 1-2 of 2 messages
Re: Changing one vs many translations to not use gettext plural Marc Egli 5/19/13 6:33 AM
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?
Re: Changing one vs many translations to not use gettext plural claudep 5/20/13 8:21 AM
I also think that ngettext is designed for defined plurals, so +1 from
me.

Claude
--
www.2xlibre.net