From d617598716467f3ed1535762a649efaa9ee6a2a9 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 13 Jul 2014 15:12:15 +0000 Subject: [PATCH] Customizer: Make panel title translatable too. props michalzuber. see #27406. Built from https://develop.svn.wordpress.org/trunk@29135 git-svn-id: http://core.svn.wordpress.org/trunk@28919 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/customize.php | 2 +- wp-includes/class-wp-customize-section.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 50119cd12b..dd03b4851b 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -131,7 +131,7 @@ do_action( 'customize_controls_print_scripts' ); /* translators: %s is the theme name in the Customize/Live Preview pane */ echo sprintf( __( 'You are previewing %s' ), '' . $wp_customize->theme()->display('Name') . '' ); } else { - /* translators: %s is the site title in the Customize pane */ + /* translators: %s is the site/panel title in the Customize pane */ echo sprintf( __( 'You are customizing %s' ), '' . get_bloginfo( 'name' ) . '' ); } ?> diff --git a/wp-includes/class-wp-customize-section.php b/wp-includes/class-wp-customize-section.php index 7d175a08ef..0315cc1aaa 100644 --- a/wp-includes/class-wp-customize-section.php +++ b/wp-includes/class-wp-customize-section.php @@ -245,8 +245,8 @@ class WP_Customize_Panel extends WP_Customize_Section {
  • ' . esc_html( $this->title ) . '' ); + /* translators: %s is the site/panel title in the Customize pane */ + echo sprintf( __( 'You are customizing %s' ), '' . esc_html( $this->title ) . '' ); ?>
    description ) ) : ?>