add_filter('ngettext', 'change_woocommerce_item_text', 20, 5); function change_woocommerce_item_text($translation, $single, $plural, $number, $domain ) { if ($domain == 'extra') { if ($translation == '%d Item') { return '%d Article'; } if ($translation == '%d Items') { return '%d Articles'; } if ($translation == '%d Item in Cart') { return '%d Article dans le Panier'; } if ($translation == '%d Items in Cart') { return '%d Articles dans le Panier'; } } return $translation; }