Sorry I misspelled it in the other thread. I would like to keep it going in this thread – thanks!
Greg
Well, you were responded to in the other thread…
You could try https://docs.woocommerce.com/document/woocommerce-localization/#section-6
You can use the plugin mentioned in the above article to translate the text string, or another like https://wordpress.org/plugins/loco-translate/. Otherwise, you can also write some custom code to change the string like this: http://speakinginbytes.com/2013/10/gettext-filter-wordpress/
You could try https://docs.woocommerce.com/document/woocommerce-localization/#section-6 – I installed the plugin and I can see where you change it and read some of the documentation but what would be the Original String and Text Domain? I would assume the Test Content would be “shipping” and the Replacement String would be “Processing Fee” – am I correct? Thank you!
I would assume the Test Content would be “shipping” and the Replacement String would be “Processing Fee” – am I correct?
Yes – “Shipping” should be the original string.
thanks got it now – did some searching and ended up adding this to my functions.php file:
add_filter(‘gettext’, ‘translate_reply’);
add_filter(‘ngettext’, ‘translate_reply’);
function translate_reply($translated) {
$translated = str_ireplace(‘Shipping’, ‘Processing Fee’, $translated);
return $translated;
}