Translate strings with plurals
-
I want to translate %d product to %d producto and %d products to %d productos
Here is the original code:
<span> <?php echo sprintf(_n('<span class="total-items hidden-xs">%d product</span>', '<span class="total-items hidden-xs">%d products</span>', $woocommerce->cart->cart_contents_count, 'okthemes'), $woocommerce->cart->cart_contents_count); echo $woocommerce->cart->get_cart_total(); ?> </span>
I filled these fields with no luck:
Original string: <span class=”total-items hidden-xs”>%d product</span>
Text domain: okthemes
Text context: empty
Replacement string: <span class=”total-items hidden-xs”>%d product</span>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Translate strings with plurals’ is closed to new replies.