“Available on backorder” text not translated
-
We found that “Available on backorder” product status text was not translated on out site. As I traced code execution, I found that WooCommerce actually provides a correct translation in \WC_Product::get_availability_text:
$availability = $this->backorders_require_notification() ? __( 'Available on backorder', 'woocommerce' ) : '';But then it passes it through ‘woocommerce_get_availability_text’ text, which is handled by your plugin, specifically pvt_push_in_stock_text in inc/compatibility.php and the function replaces it with the same text but translated for another language domain:
$availability = esc_html__( 'Available on backorder', 'product-variant-table-for-woocommerce' );There is no translation for our language (Swedish) actually and the text goes out in English.
I’m not sure what is the reason for this filtering but could it at least use “woocommerce” language domain that already contains the phrase translations?
The topic ‘“Available on backorder” text not translated’ is closed to new replies.