Title: Translating a plural function
Last modified: August 24, 2016

---

# Translating a plural function

 *  [jernej123](https://wordpress.org/support/users/jernej123/)
 * (@jernej123)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translating-a-plural-function/)
 * <?php echo sprintf(_n(‘%d – Article’, ‘%d – Articles’, $woocommerce->cart->cart_contents_count,‘
   topshop’), $woocommerce->cart->cart_contents_count);?> – <?php echo $woocommerce-
   >cart->get_cart_total(); ?>
 * this is a _n() function, which i am using to display the number of the choosen
   articles, that an user chooses.
 * i want it to be translatable, so the Article and the Articles could be translatable
 * has anyone have na idea how to accomplish this?
 * jernej

The topic ‘Translating a plural function’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [string](https://wordpress.org/support/topic-tag/string/)
 * [string translation](https://wordpress.org/support/topic-tag/string-translation/)
 * [_n](https://wordpress.org/support/topic-tag/_n/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [jernej123](https://wordpress.org/support/users/jernej123/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/translating-a-plural-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
