From 7ce117a0cad6ba7e1fcefe21c71b7c8877adbfd2 Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Tue, 15 Aug 2017 14:48:42 +0300 Subject: [PATCH] i18n: Simpler translation string with placeholders Replace: `The provided handler %s does not implement WC_Log_Handler_Interface.` With: `The provided handler %1$s does not implement %2$s.` --- includes/class-wc-logger.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-logger.php b/includes/class-wc-logger.php index f93bacafb6f..6dff663e836 100644 --- a/includes/class-wc-logger.php +++ b/includes/class-wc-logger.php @@ -54,8 +54,10 @@ class WC_Logger implements WC_Logger_Interface { wc_doing_it_wrong( __METHOD__, sprintf( - __( 'The provided handler %s does not implement WC_Log_Handler_Interface.', 'woocommerce' ), - esc_html( is_object( $handler ) ? get_class( $handler ) : $handler ) + /* translators: 1: class name 2: WC_Log_Handler_Interface */ + __( 'The provided handler %1$s does not implement %2$s.', 'woocommerce' ), + '' . esc_html( is_object( $handler ) ? get_class( $handler ) : $handler ) . '', + 'WC_Log_Handler_Interface' ), '3.0' );