Support » Fixing WordPress » 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.