mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
e2f98843c8
commit
d3519b09e8
@ -1533,8 +1533,8 @@ class WP_List_Table {
|
||||
__METHOD__,
|
||||
sprintf(
|
||||
/* translators: %s: The $link_data argument. */
|
||||
__( 'The <code>%s</code> argument must be an array.' ),
|
||||
'$link_data'
|
||||
__( 'The %s argument must be an array.' ),
|
||||
'<code>$link_data</code>'
|
||||
),
|
||||
'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 <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
|
||||
'url',
|
||||
esc_html( $view )
|
||||
__( 'The %1$s argument must be a non-empty string for %2$s.' ),
|
||||
'<code>url</code>',
|
||||
'<code>' . esc_html( $view ) . '</code>'
|
||||
),
|
||||
'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 <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
|
||||
'label',
|
||||
esc_html( $view )
|
||||
__( 'The %1$s argument must be a non-empty string for %2$s.' ),
|
||||
'<code>label</code>',
|
||||
'<code>' . esc_html( $view ) . '</code>'
|
||||
),
|
||||
'6.1.0'
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user