From ce4c0d67dcbe9c6dc1c2cb9df348cb381addaa82 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Aug 2016 23:05:31 +0000 Subject: [PATCH] I18N: Add translator comments for strings in `wp-includes/admin-bar.php`. Props ramiy. Fixes #37794. Built from https://develop.svn.wordpress.org/trunk@38340 git-svn-id: http://core.svn.wordpress.org/trunk@38281 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 9 ++++++--- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index b57dfaeb37..2f7c02a497 100644 --- a/wp-includes/admin-bar.php +++ b/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, '…' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 56b816fcb3..b8e2ab4d15 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38337'; +$wp_version = '4.7-alpha-38340'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.