Tagged: woocommerce
hey,
I would like to change the checkout button text ‘Pénztár’ on dropdown cart to ‘Távább a fizetéshez’.
I use WPML and Woocommerce (up-to-date versions).
I try this code, but doesnt work:
/**
* Change text strings
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Pénztár' :
$translated_text = __( 'Tovább a fizetéshez', 'woocommerce' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
How can I solve this? Can you help me or this is a WPML issue?
Best regards
Peter
Hey Peter!
You can try using this plugin to translate the string – https://wordpress.org/plugins/loco-translate/ or you can go to wp-content/plugins/woocommerce/i18n/languages and edit language files using this free software – https://poedit.net/
Cheers!
Yigit
Thanks, its work without conflict WPML :D
Nice!
Goodbye!
Peter