Re: [email@example.com: Re: Speaker directory]
On Sat, Jan 10, 2004 at 03:02:16PM +0100, Gerfried Fuchs wrote:
> * Denis Barbier <firstname.lastname@example.org> [2004-01-10 01:02]:
> > On Fri, Jan 09, 2004 at 01:54:03AM -0800, Matt Kraai wrote:
> > [...]
> >> Look at http://www.debian.org/events/speakers/
> >> Ideally, it would say "topic" when there's 1 topic, and "topics" when
> >> there are multiple. However, I'm not sure if this is easily possible.
> > This is not trivial, a new <ngettext> tag must be added to mp4h to
> > handle plural forms.
> Shouldn't be somehow possible to count the embedded <topic> tags in the
> <topics> container and perl print "Topic" . ($count == 1) ? "" : "s" or
> something like that should be doable, shouldn't it?
Yes it would work for English and most European languages, but please
read "info ngettext" to learn why handling of plural forms cannot be
done this way.