On the translation page for developers:
The page lists how to use the plural form with _n(), however what if I want to use _n() and argument swapping?
eg. This is the normal usage of _n():
printf( _n( "You have written %d comment", "You have written %d comments", $count, 'my-plugin' ), $count );
What if I wanted to swap out the “You” for another variable like the user_login?
- The topic ‘Using _n() with argument swapping for translation’ is closed to new replies.