woocommerce_gzd_checkout_legal_text not translating
-
For some reason, the string that goes with the checkbox was not translating, so the english was showing up also when I was in the german site.:
“With your order, you agree to have read and understood our Terms and Conditions and your Right of Recission.”I managed to fix it by adding an explicit translation function to the wc_gzd_get_legal_text() function in:
woocommerce-germanized\includes\wc-gzd-cart-functions.php
on line 168:
$plain_text = <strong>__(</strong>( $text == '' ? get_option( 'woocommerce_gzd_checkout_legal_text' ) : $text )<strong>, 'woocommerce-germanized' )</strong>;
running
WPML 3.1.9.7
Woo 2.3.8
WCgermanized 1.3.1Is this a known bug?
I found it strange, because I saw that the string is properly translated and registered in the .po file(s)…
Will you wrap this patch into the next version? or is it something specific about my setup that I need to check?
thanks!
- The topic ‘woocommerce_gzd_checkout_legal_text not translating’ is closed to new replies.