From 80fd300ebf6542926ee57d7f238d9363297a896a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 24 Oct 2017 22:46:27 +0000 Subject: [PATCH] I18N: Use a consistent pattern for translator comments for placeholders in some more Customizer strings. See #41974. git-svn-id: https://develop.svn.wordpress.org/trunk@42006 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 2 +- src/wp-admin/includes/theme.php | 2 +- src/wp-includes/class-wp-customize-manager.php | 6 +++--- .../customize/class-wp-customize-theme-control.php | 2 +- .../customize/class-wp-customize-themes-section.php | 2 +- src/wp-includes/script-loader.php | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index dfc4cb90e8..605242df8e 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -228,7 +228,7 @@ if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>

unpublished customization changes. You can edit, but there’s no need to publish now. It will be published automatically with those changes.' ), esc_url( add_query_arg( diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index 6670d026f6..41c4a8d3e4 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -659,7 +659,7 @@ function customize_themes_print_templates() { {{{ data.stars }}} diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index be3115f3ba..21760bad4f 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -4609,11 +4609,11 @@ final class WP_Customize_Manager { 'previewableDevices' => $this->get_previewable_devices(), 'l10n' => array( 'confirmDeleteTheme' => __( 'Are you sure you want to delete this theme?' ), - /* translators: %d is the number of theme search results, which cannot currently consider singular vs. plural forms */ + /* translators: %d: number of theme search results, which cannot currently consider singular vs. plural forms */ 'themeSearchResults' => __( '%d themes found' ), - /* translators: %d is the number of themes being displayed, which cannot currently consider singular vs. plural forms */ + /* translators: %d: number of themes being displayed, which cannot currently consider singular vs. plural forms */ 'announceThemeCount' => __( 'Displaying %d themes' ), - /* translators: %s is the theme name */ + /* translators: %s: theme name */ 'announceThemeDetails' => __( 'Showing details for theme: %s' ), ), ); diff --git a/src/wp-includes/customize/class-wp-customize-theme-control.php b/src/wp-includes/customize/class-wp-customize-theme-control.php index 7bcd278aa6..b80e93d194 100644 --- a/src/wp-includes/customize/class-wp-customize-theme-control.php +++ b/src/wp-includes/customize/class-wp-customize-theme-control.php @@ -91,7 +91,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {

' . __( 'Update now' ) . '' ); ?>

diff --git a/src/wp-includes/customize/class-wp-customize-themes-section.php b/src/wp-includes/customize/class-wp-customize-themes-section.php index 40f5b38123..42796bf475 100644 --- a/src/wp-includes/customize/class-wp-customize-themes-section.php +++ b/src/wp-includes/customize/class-wp-customize-themes-section.php @@ -87,7 +87,7 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {

%s', __( 'Search WordPress.org themes' ) ) ); diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index ad5a075e05..6c2312c397 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -594,7 +594,7 @@ function wp_default_scripts( &$scripts ) { 'scheduleDescription' => __( 'Schedule your customization changes to publish ("go live") at a future date.' ), 'themePreviewUnavailable' => __( 'Sorry, you can’t preview new themes when you have changes scheduled or saved as a draft. Please publish your changes, or wait until they publish to preview new themes.' ), 'themeInstallUnavailable' => sprintf( - /* translators: %s is URL to Add Themes admin screen */ + /* translators: %s: URL to Add Themes admin screen */ __( 'You won’t be able to install new themes from here yet since your install requires SFTP credentials. For now, please add themes in the admin.' ), esc_url( admin_url( 'theme-install.php' ) ) ),