[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ngettext usability issue - how to fix?
From: |
Bruno Haible |
Subject: |
Re: ngettext usability issue - how to fix? |
Date: |
Sat, 2 Jun 2007 17:52:08 +0200 |
User-agent: |
KMail/1.5.4 |
Eddy Petrișor asked:
> char *Helmet::WeaponWin(char *teamname, int wonitemscount)
> {
> return Format( ngettext("%s team has won %d helmet!",
> "%s team has won %d helmets!",
> nbr_ammo), teamname, wonitemscount);
> }
>
> char *NinjaRope::WeaponWin(char *teamname, int wonitemscount)
> {
> return Format( ngettext("%s team has won %d ninja rope!",
> "%s team has won %d ninja ropes!",
> nbr_ammo), teamname, wonitemscount);
> }
>
>
>
> .. (or something of this sort) would be ok?
Yes, with a replacement s/nbr_ammo/wonitemscount/ this would be one way
to present translatable plural-form strings in entire sentences.
Bruno