El dg 21 de 12 de 2008 a les 08:49 +0200, en/na F Wolff va escriure:
> On So, 2008-12-21 at 02:24 +0100, Pere Pujal i Carabantes wrote:
> > El ds 20 de 12 de 2008 a les 14:19 +0100, en/na Pere Pujal i Carabantes
> > va escriure:
> > > Hi!
> > > ################
> > > gettext(ed) in gallery/index.php3 but not appearing in the .pot file:
> > >
> > > echo sprintf(gettext("The following is a gallery of %1$d pictures drawn
> > > by %2$d children (and adults) around the world using Tux Paint:"),
> > > $num_picts, $num_artists);
> > >
> > Changing this to ...gallery of %1d pictures....by %2d children....
> > and just works, appears in the po files and, if translated, displays in
> > the site.
This don't allow to swap the variables, instead just changing the double
quotes to single quotes, seems to work right even with swapped
> This should be using ngettext to handle the noun forms correctly.
> "pictures" and "children" might need to change according to the values
> of the variables. Since there are two dependent variables in the
> sentence, we'll have to have at least two separate calls to ngettext to
> handle them correctly.
Is ngettext really needed?, the two variables are currently 520 pictures
and 160 childs, I doubt they will never go below 100.