Re: [PATCH v4 05/14] i18n: add--interactive: mark plural strings

2016-10-20 Thread Junio C Hamano
Vasco Almeida writes: > A Seg, 10-10-2016 às 12:54 +, Vasco Almeida escreveu: >> @@ -70,6 +72,8 @@ Git::I18N - Perl interface to Git's Gettext localizations >> >> printf __("The following error occurred: %s\n"), $error; >> >> + printf __n("commited %d file", "commited %d fil

Re: [PATCH v4 05/14] i18n: add--interactive: mark plural strings

2016-10-20 Thread Vasco Almeida
A Seg, 10-10-2016 às 12:54 +, Vasco Almeida escreveu: > @@ -70,6 +72,8 @@ Git::I18N - Perl interface to Git's Gettext localizations >   > printf __("The following error occurred: %s\n"), $error; >   > +   printf __n("commited %d file", "commited %d files", $files), $files; > + I fo

Re: [PATCH v4 05/14] i18n: add--interactive: mark plural strings

2016-10-20 Thread Vasco Almeida
A Qua, 19-10-2016 às 11:40 -0700, Junio C Hamano escreveu: > Vasco Almeida writes: > > > > > @@ -669,12 +669,18 @@ sub status_cmd { > >  sub say_n_paths { > >   my $did = shift @_; > >   my $cnt = scalar @_; > > - print "$did "; > > - if (1 < $cnt) { > > - print "$cnt paths\n";

Re: [PATCH v4 05/14] i18n: add--interactive: mark plural strings

2016-10-19 Thread Junio C Hamano
Vasco Almeida writes: > @@ -669,12 +669,18 @@ sub status_cmd { > sub say_n_paths { > my $did = shift @_; > my $cnt = scalar @_; > - print "$did "; > - if (1 < $cnt) { > - print "$cnt paths\n"; > - } > - else { > - print "one path\n"; > + if

[PATCH v4 05/14] i18n: add--interactive: mark plural strings

2016-10-10 Thread Vasco Almeida
Mark plural strings for translation. Unfold each action case in one entire sentence. Pass new keyword for xgettext to extract. Update test to include new subroutine __n() for plural strings handling. Update documentation to include a description of the new __n() subroutine. Signed-off-by: Vasc