Thread Starter
gdtv
(@gdtv)
I finally do it like this:
printf( 'The total price of %1$s and %2$s.', _n( '1 pen', '%d pens', $pen_count ), _n( '1 book', '%d books', $book_count ) );
Thread Starter
gdtv
(@gdtv)
@bcworkz
thanks for you reply, but if “breakup the phrase”, I can not translate them to chinese , the two phrase does not conform to Chinese grammar.
printf( _n('The total price of %d pen', 'The total price of %d pens', $x, 'my-domain'), $x );
printf( _n(' and %d book', ' and %d books', $y, 'my-domain'), $y );
the chinese result will be:
N支笔的总价和N本书
this sentence does not conform to Chinese grammar.