From d3519b09e8280d947cc5cf8ebcf064bfb4166db1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 19 Sep 2022 22:13:21 +0000 Subject: [PATCH] I18N: Remove `` tags from translatable strings in `WP_List_Table::get_views_links()`. To simplify the strings and exclude any parts that don't require translation, the `` tags wrapping a placeholder can be moved out of the string and added to the placeholder value. Follow-up to [54215]. See #42066. git-svn-id: https://develop.svn.wordpress.org/trunk@54222 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-list-table.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php index fd24141a2c..87973139dd 100644 --- a/src/wp-admin/includes/class-wp-list-table.php +++ b/src/wp-admin/includes/class-wp-list-table.php @@ -1533,8 +1533,8 @@ class WP_List_Table { __METHOD__, sprintf( /* translators: %s: The $link_data argument. */ - __( 'The %s argument must be an array.' ), - '$link_data' + __( 'The %s argument must be an array.' ), + '$link_data' ), '6.1.0' ); @@ -1549,9 +1549,9 @@ class WP_List_Table { __METHOD__, sprintf( /* translators: %1$s: The argument name. %2$s: The view name. */ - __( 'The %1$s argument must be a non-empty string for %2$s.' ), - 'url', - esc_html( $view ) + __( 'The %1$s argument must be a non-empty string for %2$s.' ), + 'url', + '' . esc_html( $view ) . '' ), '6.1.0' ); @@ -1564,9 +1564,9 @@ class WP_List_Table { __METHOD__, sprintf( /* translators: %1$s: The argument name. %2$s: The view name. */ - __( 'The %1$s argument must be a non-empty string for %2$s.' ), - 'label', - esc_html( $view ) + __( 'The %1$s argument must be a non-empty string for %2$s.' ), + 'label', + '' . esc_html( $view ) . '' ), '6.1.0' );