add_filter(‘gettext’, ‘translate_text’);
add_filter(‘ngettext’, ‘translate_text’);
function translate_text($translated) {
$translated = str_ireplace(‘You order’, ‘La teva comanda’, $translated);
$translated = str_ireplace(‘Basic information’, ‘Informació Bàsica’, $translated);
$translated = str_ireplace(‘Additional information’, ‘Informació Addicional’, $translated);
$translated = str_ireplace(‘No products in the cart.’, ‘No hi ha productes a la cistella’, $translated);
return $translated;
}