[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: d-i, debconf, po-debconf and plural forms



(originally private message from Ivan Masar, the Slovak
translator.... I think it is worth answering in public)

Quoting helix84 (helix84@centrum.sk):
> hello, these strings from sublevel3 need plural forms:

>"The RAID${LEVEL} array will consist of both active and spare
>partitions. The active partitions are those used, while the spare
>devices will only be used if one or more of the active devices fail. A
>minimum of ${MINIMUM} active devices is required."

>"You have chosen to create a RAID${LEVEL} array with ${COUNT} active devices."

>"You have chosen to create a RAID${LEVEL} array with ${COUNT} spare devices."


IIRC, they are not the only ones. However, po-debconf currently does
*not* allow using plural forms. That's a weakness which is known for a
long time and for which there is no workaround.

The problem is that the value of variables is not known at the moment
the translated strings are built from the PO files, in the templates
file that goes in /var/lib/dpkg/info when a packages uses debconf.

You should consider that numbers will never be 0 or 1 in that case. I
know this is not enough for some languages with compliated plural
forms but that helps a little. 

Sorry for that limitation....of course, anyone finding a solution to
this is welcomed. It would need (invasive) changes in po-debconf AND
debconf.







Reply to: