fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

translate clear option

Bruno AUBRUN

Hello,

I’m using your product and I Would like to translate the “clear” option in different langage. (Franch, Deutch, Spanish and Italian) How it’s possible?

(We’re using WPML for langage)

Capture d’écran 2023-01-05 153139.png

 

Best Regards

Wesley LIBLIN

www.mondevanille.com

Rezwan Shiblu

Hi there,

You can follow this – https://wpml.org/documentation/automatic-translation/using-automatic-translation-with-custom-languages/

Or,

You can use the below code in your child theme functions.php file

add_filter( 'gettext', function ( $strings ) {
/**
* Holding translations/changes.
* 'to translate' => 'the translation or rewording'
*/
$text = array(
'Clear' => 'Delete'
);
$strings = str_ireplace( array_keys( $text ), $text, $strings );
return $strings;
}, 20 );

Thank you.

Bruno AUBRUN

Thanks for your answer. We will check that as soon as possible.

Best regards.

 

Rezwan Shiblu

Hi there,

You are welcome.

Thank you.