Hello
Can’t translate the “Out of stock” for a variable product! Even using functions.php
function custom_text_replace( $translated_text, $untranslated_text, $domain ) {
switch ( $untranslated_text ) {
case 'Rupture de stock':
$translated_text = __( 'Bientôt disponible', $domain );
break;
// Leave the default case out when using languages other than en_US
default:
$translated_text = $untranslated_text;
break;
}
return $translated_text;
}
add_filter( 'gettext', 'custom_text_replace', 20, 3 );
Thank you
-
This topic was modified 18 hours, 51 minutes ago by dweb360.