Hello,
Function below does not work after new woocommerce and Pro updates
add_filter(‘gettext’, ‘x_translate_text1’ );
function x_translate_text1($translated) {
$translated = str_ireplace(‘I’ve read and accept the terms & conditions’, ‘Perskaičiau ir sutinku su sąlygomis ir taisyklėmis’, $translated);
return $translated;
}
I’ve also tried this but it crashed my website
// Translate texts
// =============================================================================
function translate_texts($translated) {
$translated = str_ireplace(‘I’ve read and accept the <a href="%s" "
"class=“woocommerce-terms-and-conditions-link”>terms & conditions’, ‘insert your translation here’, $translated);$translated);
return $translated;
}
add_filter(‘gettext’, ‘translate_texts’ );
// =============================================================================
How do I translate I’ve read and accept the terms and conditions in woocommerce checkout?
Summary
Website:
http://www.mhealth.lt/parduotuve