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

Bug#233262: base-config: apt-setup template apt-setup/another incomplete in french



Christian Perrier wrote:
Quoting Christian Perrier (bubulle@debian.org):

Package: base-config
Version: 2.12
Severity: normal
Tags: d-i

When running in french language, the apt-setup/another template is
incomplete. It seems that the MESSAGE variable which is set just before
calling db_input is empty while it should contain the output of ngettext.

This is not french-specific, but happens also for german and, I guess, for
all languages but english (MESSAGE is not empty when using english)



I strongly suspect this comes from a misunderstanding of plural forms
handling.

By looking at the ru.po files, I found three forms msgstr[0],
msgstr[1] and msgstr[2].

Isn't the [0] form for being used when COUNT=0, the [1] when COUNT=1
and [2] when COUNT>1

This would explain what I found. All languages but lt, ru and uk would
then need adding a [2] form for plural.

This is what I did for french, though not being really sure... May
someone confirm? Denis?

Ukrainian and Russian use one form for singular (also used for numbers ending 1) and two forms for plurals. So there is 3 translations in po files. As far as I know there are only 2 forms in French. So you must use only 2 translations for French.

See also info gettext "Plural forms" ;-)



Reply to: