From 4cf5550d8d7f227d760f779f250a8fb2cfa2c8c9 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 21 Nov 2016 01:22:32 +0000 Subject: [PATCH] I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment. Adds context to one string used in two different contexts for the new user and new site signup email notification. More to come. See #38882 Built from https://develop.svn.wordpress.org/trunk@39323 git-svn-id: http://core.svn.wordpress.org/trunk@39263 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 1 + wp-admin/includes/upgrade.php | 1 + wp-admin/install.php | 10 +++++++--- wp-admin/nav-menus.php | 1 + wp-admin/options-discussion.php | 1 + wp-admin/revision.php | 1 + wp-admin/update-core.php | 6 ++++++ wp-includes/feed-atom-comments.php | 12 +++++++++--- wp-includes/feed-rss2-comments.php | 12 +++++++++--- wp-includes/functions.php | 1 + wp-includes/load.php | 1 + wp-includes/ms-functions.php | 18 ++++++++++++++---- wp-includes/pluggable.php | 1 + wp-includes/script-loader.php | 1 + wp-includes/version.php | 2 +- wp-includes/wp-db.php | 11 ++++++++--- wp-login.php | 2 ++ 17 files changed, 65 insertions(+), 17 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 74899e37cb..306745d864 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -200,6 +200,7 @@ function core_update_footer( $msg = '' ) { switch ( $cur->response ) { case 'development' : + /* translators: 1: WordPress version number, 2: WordPress updates admin screen URL */ return sprintf( __( 'You are using a development version (%1$s). Cool! Please stay updated.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) ); case 'upgrade' : diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 63c59a4565..94a122509c 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -375,6 +375,7 @@ function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) { $email = $user->user_email; $name = $user->user_login; $login_url = wp_login_url(); + /* translators: New site notification email. 1: New site URL, 2: User login, 3: User password or password reset link, 4: Login URL */ $message = sprintf( __( "Your new WordPress site has been successfully set up at: %1\$s diff --git a/wp-admin/install.php b/wp-admin/install.php index d22ff6ca86..ed9d06d19c 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -232,12 +232,16 @@ $mysql_version = $wpdb->db_version(); $php_compat = version_compare( $php_version, $required_php_version, '>=' ); $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); -if ( !$mysql_compat && !$php_compat ) +if ( !$mysql_compat && !$php_compat ) { + /* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Minimum required MySQL version number, 4: Current PHP version number, 5: Current MySQL version number */ $compat = sprintf( __( 'You cannot install because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); -elseif ( !$php_compat ) +} elseif ( !$php_compat ) { + /* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number */ $compat = sprintf( __( 'You cannot install because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ); -elseif ( !$mysql_compat ) +} elseif ( !$mysql_compat ) { + /* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number */ $compat = sprintf( __( 'You cannot install because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_mysql_version, $mysql_version ); +} if ( !$mysql_compat || !$php_compat ) { display_header(); diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index a00eb885de..19348c2348 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -518,6 +518,7 @@ if ( ! current_theme_supports( 'menus' ) && ! $num_locations ) if ( ! $locations_screen ) : // Main tab $overview = '

' . __( 'This screen is used for managing your custom navigation menus.' ) . '

'; + /* translators: 1: Widgets admin screen URL, 2 and 3: The name of the default themes */ $overview .= '

' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Custom Menu” widget on the Widgets screen. If your theme does not support the custom menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Sixteen', 'Twenty Seventeen' ) . '

'; $overview .= '

' . __( 'From this screen you can:' ) . '

'; $overview .= '