I use WMPL plugin to make Storefront multilingual (two languages). WPML does a pretty good job translating all content but I really have troubles with translating some theme's strings. The translated strings are shown always in English. Seems like some text function doesn't work properly.
For example a "Product Details" button in Catalogue Listing (the sting itself is located in ../themes/StoreFront/gavern/wc-functions.php) with the following code:
- Code: Select all
//product details button on catalog pages
if(!(get_option($gk_tpl->name . '_woocommerce_show_details_button', 'Y') == 'N')) :
function add_product_details_button() {
$product_id = null;
echo '<a class="btn wc-product-details" href="'.get_permalink($product_id).'">'.__('Product details', GKTPLNAME).'</a>';
}
add_action( 'woocommerce_after_shop_loop_item', 'add_product_details_button' );
endif;
The WPML sees that string and I can apply the translation, but it always shows English version on frontend.
Do you guys use any text filters described [url]here: https://wpml.org/forums/topic/string-tr ... orking-12/[/url]? Because I coundn't find any. The same thing with other strings, like like %d item and %d items for the Cart widget. Is any workaround?
Thank you!