Comment 1 for bug 1184810

Revision history for this message
Tim Peeters (tpeeters) wrote : Re: [i18n] Plural form does not work as documented

Even when using gettext the parameter needs to be passed twice:

An example for the us of this function is:

            printf (ngettext ("%d file removed", "%d files removed", n), n);

Please note that the numeric value n has to be passed to the printf function as well. It is not sufficient to pass it only to ngettext.

So we need to update our docs to match the way you are using it, or change the implementation of tr() to do that automatically. Still need to evaluate the consequences of the latter solution.