Skip to content

Commit d3519b0

Browse files
I18N: Remove <code> 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 `<code>` 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
1 parent e2f9884 commit d3519b0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/wp-admin/includes/class-wp-list-table.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,8 @@ protected function get_views_links( $link_data = array() ) {
15331533
__METHOD__,
15341534
sprintf(
15351535
/* translators: %s: The $link_data argument. */
1536-
__( 'The <code>%s</code> argument must be an array.' ),
1537-
'$link_data'
1536+
__( 'The %s argument must be an array.' ),
1537+
'<code>$link_data</code>'
15381538
),
15391539
'6.1.0'
15401540
);
@@ -1549,9 +1549,9 @@ protected function get_views_links( $link_data = array() ) {
15491549
__METHOD__,
15501550
sprintf(
15511551
/* translators: %1$s: The argument name. %2$s: The view name. */
1552-
__( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
1553-
'url',
1554-
esc_html( $view )
1552+
__( 'The %1$s argument must be a non-empty string for %2$s.' ),
1553+
'<code>url</code>',
1554+
'<code>' . esc_html( $view ) . '</code>'
15551555
),
15561556
'6.1.0'
15571557
);
@@ -1564,9 +1564,9 @@ protected function get_views_links( $link_data = array() ) {
15641564
__METHOD__,
15651565
sprintf(
15661566
/* translators: %1$s: The argument name. %2$s: The view name. */
1567-
__( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
1568-
'label',
1569-
esc_html( $view )
1567+
__( 'The %1$s argument must be a non-empty string for %2$s.' ),
1568+
'<code>label</code>',
1569+
'<code>' . esc_html( $view ) . '</code>'
15701570
),
15711571
'6.1.0'
15721572
);

0 commit comments

Comments
 (0)