Unable to translate strings in WooCommerce modules
-
Hi, there
I really like Polylang and it has been meeting my expectations since I discovered it. However, now I’m in need of changing some WooCommerce strings. Polylang works everywhere else in the site, but there.
For example I want to change WooCommerce view the cart button string:
$message = sprintf('<a href="%s" class="button wc-forward">%s</a> %s', get_permalink( wc_get_page_id( 'cart' ) ), pll__('View cart'), $added_text );
Somehow it doesn’t translate, although the strings appear in the admin section for translation. It doesn’t show empty string, it just displays ‘View cart’. If I use the same pll_(‘View cart’) anywhere else, it translates just fine.
Any ideas? Is WooCommerce blocking this thing or smth? I know there are .po and .mo translation files for WooCommerce, but they don’t actually behave like I want them to.
Thanks!
- The topic ‘Unable to translate strings in WooCommerce modules’ is closed to new replies.