Translate added string
-
Hello,
We are very happy with Loco Translate. Works awesome!
But now I have a question..I add a snipped in function.php (see below) and want to translate the new added string via loco translate. I use the plugin “woocommerce-subscriptions” to translate that. So I try to sync that “woocommerce-subscriptions” file but the new string is not showing up.
Question is now, how do I have to translate new added strings via Loco Translate? ??
function eg_show_product_removed_message( $url ) { global $woocommerce, $eg_set_product_removed_message; if ( isset( $eg_set_product_removed_message ) && is_numeric( $eg_set_product_removed_message ) ) { wc_add_notice( sprintf( _n( '%s product has been removed from your cart. Products and subscriptions can not be purchased at the same time.', '%s products have been removed from your cart. Products and subscriptions can not be purchased at the same time.', $eg_set_product_removed_message, 'woocommerce-subscriptions' ), $eg_set_product_removed_message ), 'error' ); } return $url; } add_filter( 'add_to_cart_redirect', 'eg_show_product_removed_message', 11, 1 );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Translate added string’ is closed to new replies.