I am trying to translate the plural form of comments in the comment section using PO/MO.
in comments.php the code goes like this:
<?php
printf( _nx( '%1$s Comment', '%1$s Comments', get_comments_number(), 'comments', 'theme_domain' ),
?>
I have tried two methods in my .PO file:
Method 1
#.*comments*
msgid "%1$s Comment"
msgid_plural "%1$s *traduction*"
msgstr[0] "%1$s *traduction*"
msgstr[1] "%1$s *traduction*"
Method 2
#.*comments*
msgid "%1$s traduction"
msgstr "%1$s *traduction*"
#.*comments*
msgid "%1$s Comments"
msgstr "%1$s *traductions*"
#.*comments*
msgid "comments"
msgstr "*traductions*"
Could someone tell me which method use when you have several argument in a _nx string?
Many thanks,