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

See #38882

Built from https://develop.svn.wordpress.org/trunk@39326


git-svn-id: http://core.svn.wordpress.org/trunk@39266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn
2016-11-21 02:46:30 +00:00
parent 1b2ed70f39
commit c2d709e9d6
20 changed files with 115 additions and 29 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.