From 7ad61068e1734e71447c7474d69212920d835f76 Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Tue, 15 Aug 2017 14:39:41 +0300 Subject: [PATCH] i18n: Simpler translation string with placeholders Replace: `The class %s provided by woocommerce_logging_class filter must implement WC_Logger_Interface.` With: `The class %1$s provided by %2$s filter must implement %3$s.` --- includes/wc-core-functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 096ec27881e..e0d84f4fc38 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -1530,8 +1530,11 @@ function wc_get_logger() { wc_doing_it_wrong( __FUNCTION__, sprintf( - __( 'The class %s provided by woocommerce_logging_class filter must implement WC_Logger_Interface.', 'woocommerce' ), - esc_html( is_object( $class ) ? get_class( $class ) : $class ) + /* translators: 1: class name 2: woocommerce_logging_class 3: WC_Logger_Interface */ + __( 'The class %1$s provided by %2$s filter must implement %3$s.', 'woocommerce' ), + '' . esc_html( is_object( $class ) ? get_class( $class ) : $class ) . '', + 'woocommerce_logging_class', + 'WC_Logger_Interface' ), '3.0' );