I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882


git-svn-id: https://develop.svn.wordpress.org/trunk@39326 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2016-11-21 02:45:53 +00:00
parent 7faf699c69
commit 347040745d
19 changed files with 114 additions and 28 deletions

View File

@@ -32,17 +32,23 @@ if ( empty( $current_screen ) )
get_admin_page_title();
$title = esc_html( strip_tags( $title ) );
if ( is_network_admin() )
if ( is_network_admin() ) {
/* translators: Network admin screen title. 1: Network name */
$admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_network()->site_name ) );
elseif ( is_user_admin() )
} elseif ( is_user_admin() ) {
/* translators: User dashboard screen title. 1: Network name */
$admin_title = sprintf( __( 'User Dashboard: %s' ), esc_html( get_network()->site_name ) );
else
} else {
$admin_title = get_bloginfo( 'name' );
}
if ( $admin_title == $title )
if ( $admin_title == $title ) {
/* translators: Admin screen title. 1: Admin screen name */
$admin_title = sprintf( __( '%1$s — WordPress' ), $title );
else
} else {
/* translators: Admin screen title. 1: Admin screen name, 2: Network or site name */
$admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title );
}
/**
* Filters the title tag content for an admin page.