I'm developing my site in English, and when I'm done, I'll be turning it into Arabic. I'm using a function and wondering whether I should wrap it into a gettext call for WPML to get or just leave it as it is and it will be converted into Arabic automatically (since it's numbers and not text)?

Should I do this?

<?php echo $woocommerce->cart->cart_contents_count;?>

Or keep it like this?

<?php echo sprintf(__('%d', $woocommerce->cart->cart_contents_count));?>


closed as off-topic by fuxia Nov 15 '14 at 13:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.


It is better to use gettext calls, according to WPML Guidelines.

  • Alright, thanks! Can never go wrong with following the guidelines. – yaharga Nov 15 '14 at 12:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.