From bcc0fc20b381bb82df06fbad0fdf55b9d7b6b8bf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Aug 2016 23:04:33 +0000 Subject: [PATCH] I18N: Add translator comments for strings in `wp-includes/admin-bar.php`. Props ramiy. Fixes #37794. git-svn-id: https://develop.svn.wordpress.org/trunk@38340 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/admin-bar.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php index b57dfaeb37..2f7c02a497 100644 --- a/src/wp-includes/admin-bar.php +++ b/src/wp-includes/admin-bar.php @@ -196,7 +196,8 @@ function wp_admin_bar_my_account_item( $wp_admin_bar ) { } $avatar = get_avatar( $user_id, 26 ); - $howdy = sprintf( __('Howdy, %1$s'), $current_user->display_name ); + /* translators: %s: current user's display name */ + $howdy = sprintf( __( 'Howdy, %s' ), $current_user->display_name ); $class = empty( $avatar ) ? '' : 'with-avatar'; $wp_admin_bar->add_menu( array( @@ -293,9 +294,11 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) { } if ( is_network_admin() ) { - $blogname = sprintf( __('Network Admin: %s'), esc_html( get_current_site()->site_name ) ); + /* translators: %s: site name */ + $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) ); } elseif ( is_user_admin() ) { - $blogname = sprintf( __('User Dashboard: %s'), esc_html( get_current_site()->site_name ) ); + /* translators: %s: site name */ + $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); } $title = wp_html_excerpt( $blogname, 40, '…' );