Make WordPress Core

Ticket #44360: wp-includes.diff

File wp-includes.diff, 38.3 KB (added by niq1982, 7 years ago)

Fixes the translator comments in all files in /wp-includes/* root

  • src/wp-includes/admin-bar.php

    diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php
    index c21916e..90396e3 100644
    a b function wp_admin_bar_comments_menu( $wp_admin_bar ) { 
    883883
    884884        $awaiting_mod  = wp_count_comments();
    885885        $awaiting_mod  = $awaiting_mod->moderated;
     886        /* translators: %s: amount of comments awaiting moderation */
    886887        $awaiting_text = sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
    887888
    888889        $icon   = '<span class="ab-icon"></span>';
  • src/wp-includes/author-template.php

    diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php
    index 9ef4dac..3978178 100644
    a b function the_author( $deprecated = '', $deprecated_echo = true ) { 
    6464        if ( true !== $deprecated_echo ) {
    6565                _deprecated_argument(
    6666                        __FUNCTION__, '1.5.0',
    67                         /* translators: %s: get_the_author() */
    6867                        sprintf(
     68                                /* translators: %s: get_the_author() */
    6969                                __( 'Use %s instead if you do not want the value echoed.' ),
    7070                                '<code>get_the_author()</code>'
    7171                        )
  • src/wp-includes/bookmark-template.php

    diff --git a/src/wp-includes/bookmark-template.php b/src/wp-includes/bookmark-template.php
    index 3545ecb..c01ba82 100644
    a b function _walk_bookmarks( $bookmarks, $args = '' ) { 
    8686                        if ( '00' != substr( $bookmark->link_updated_f, 0, 2 ) ) {
    8787                                $title .= ' (';
    8888                                $title .= sprintf(
     89                                        /* translators: %s: Date/time */
    8990                                        __( 'Last updated: %s' ),
    9091                                        date(
    9192                                                get_option( 'links_updated_date_format' ),
  • src/wp-includes/category-template.php

    diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php
    index 9e4ae83..7062fd3 100644
    a b function wp_dropdown_categories( $args = '' ) { 
    354354        if ( isset( $args['type'] ) && 'link' == $args['type'] ) {
    355355                _deprecated_argument(
    356356                        __FUNCTION__, '3.0.0',
    357                         /* translators: 1: "type => link", 2: "taxonomy => link_category" */
    358357                        sprintf(
     358                                /* translators: 1: "type => link", 2: "taxonomy => link_category" */
    359359                                __( '%1$s is deprecated. Use %2$s instead.' ),
    360360                                '<code>type => link</code>',
    361361                                '<code>taxonomy => link_category</code>'
    function wp_generate_tag_cloud( $tags, $args = '' ) { 
    833833        } elseif ( ! empty( $args['topic_count_text_callback'] ) ) {
    834834                // Look for the alternative callback style. Ignore the previous default.
    835835                if ( $args['topic_count_text_callback'] === 'default_topic_count_text' ) {
     836                        /* translators: %s: amount of items (tags) */
    836837                        $translate_nooped_plural = _n_noop( '%s item', '%s items' );
    837838                } else {
    838839                        $translate_nooped_plural = false;
    function wp_generate_tag_cloud( $tags, $args = '' ) { 
    842843                $translate_nooped_plural = _n_noop( $args['single_text'], $args['multiple_text'] );
    843844        } else {
    844845                // This is the default for when no callback, plural, or argument is passed in.
     846                /* translators: %s: amount of items (tags) */
    845847                $translate_nooped_plural = _n_noop( '%s item', '%s items' );
    846848        }
    847849
  • src/wp-includes/category.php

    diff --git a/src/wp-includes/category.php b/src/wp-includes/category.php
    index 0258353..af28a8a 100644
    a b function get_categories( $args = '' ) { 
    4343        if ( isset( $args['type'] ) && 'link' == $args['type'] ) {
    4444                _deprecated_argument(
    4545                        __FUNCTION__, '3.0.0',
    46                         /* translators: 1: "type => link", 2: "taxonomy => link_category" */
    4746                        sprintf(
     47                                /* translators: 1: "type => link", 2: "taxonomy => link_category" */
    4848                                __( '%1$s is deprecated. Use %2$s instead.' ),
    4949                                '<code>type => link</code>',
    5050                                '<code>taxonomy => link_category</code>'
  • src/wp-includes/class-walker-category.php

    diff --git a/src/wp-includes/class-walker-category.php b/src/wp-includes/class-walker-category.php
    index 5373b7d..8870fca 100644
    a b class Walker_Category extends Walker { 
    134134                        $link .= '<a href="' . esc_url( get_term_feed_link( $category->term_id, $category->taxonomy, $args['feed_type'] ) ) . '"';
    135135
    136136                        if ( empty( $args['feed'] ) ) {
     137                                /* translators: %s: category name */
    137138                                $alt = ' alt="' . sprintf( __( 'Feed for all posts filed under %s' ), $cat_name ) . '"';
    138139                        } else {
    139140                                $alt   = ' alt="' . $args['feed'] . '"';
  • src/wp-includes/class-walker-comment.php

    diff --git a/src/wp-includes/class-walker-comment.php b/src/wp-includes/class-walker-comment.php
    index e5cb372..07ef992 100644
    a b class Walker_Comment extends Walker { 
    274274                                echo get_avatar( $comment, $args['avatar_size'] );}
    275275?>
    276276                        <?php
    277                                 /* translators: %s: comment author link */
    278277                                printf(
     278                                        /* translators: %s: comment author link */
    279279                                        __( '%s <span class="says">says:</span>' ),
    280280                                        sprintf( '<cite class="fn">%s</cite>', get_comment_author_link( $comment ) )
    281281                                );
    class Walker_Comment extends Walker { 
    352352                                                        echo get_avatar( $comment, $args['avatar_size'] );}
    353353?>
    354354                                                <?php
    355                                                         /* translators: %s: comment author link */
    356355                                                        printf(
     356                                                                /* translators: %s: comment author link */
    357357                                                                __( '%s <span class="says">says:</span>' ),
    358358                                                                sprintf( '<b class="fn">%s</b>', get_comment_author_link( $comment ) )
    359359                                                        );
  • src/wp-includes/class-wp-customize-manager.php

    diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
    index 6da71a1..a79920a 100644
    a b final class WP_Customize_Manager { 
    37993799        public function remove_panel( $id ) {
    38003800                // Removing core components this way is _doing_it_wrong().
    38013801                if ( in_array( $id, $this->components, true ) ) {
    3802                         /* translators: 1: panel id, 2: link to 'customize_loaded_components' filter reference */
    38033802                        $message = sprintf(
     3803                                /* translators: 1: panel id, 2: link to 'customize_loaded_components' filter reference */
    38043804                                __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ),
    38053805                                $id,
    38063806                                '<a href="' . esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ) . '"><code>customize_loaded_components</code></a>'
  • src/wp-includes/class-wp-customize-nav-menus.php

    diff --git a/src/wp-includes/class-wp-customize-nav-menus.php b/src/wp-includes/class-wp-customize-nav-menus.php
    index 1a55fa6..28d30b4 100644
    a b final class WP_Customize_Nav_Menus { 
    463463                                'invalidTitleTpl'        => __( '%s (Invalid)' ),
    464464                                /* translators: %s: title of menu item in draft status */
    465465                                'pendingTitleTpl'        => __( '%s (Pending)' ),
     466                                /* translators: %d: amount of items found  */
    466467                                'itemsFound'             => __( 'Number of items found: %d' ),
     468                                /* translators: %d: number of items found  */
    467469                                'itemsFoundMore'         => __( 'Additional items found: %d' ),
    468470                                'itemsLoadingMore'       => __( 'Loading more results... please wait.' ),
    469471                                'reorderModeOn'          => __( 'Reorder mode enabled' ),
  • src/wp-includes/class-wp-query.php

    diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php
    index f8ead26..f25fd80 100644
    a b class WP_Query { 
    17431743                if ( isset( $q['caller_get_posts'] ) ) {
    17441744                        _deprecated_argument(
    17451745                                'WP_Query', '3.1.0',
    1746                                 /* translators: 1: caller_get_posts, 2: ignore_sticky_posts */
    17471746                                sprintf(
     1747                                        /* translators: 1: caller_get_posts, 2: ignore_sticky_posts */
    17481748                                        __( '%1$s is deprecated. Use %2$s instead.' ),
    17491749                                        '<code>caller_get_posts</code>',
    17501750                                        '<code>ignore_sticky_posts</code>'
  • src/wp-includes/class-wp-theme.php

    diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php
    index 7b933f9..f39b07d 100644
    a b final class WP_Theme implements ArrayAccess { 
    225225                } elseif ( ! file_exists( $this->theme_root . '/' . $theme_file ) ) {
    226226                        $this->headers['Name'] = $this->stylesheet;
    227227                        if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet ) ) {
     228                                /* translators: %s: directory/filepath */
    228229                                $this->errors = new WP_Error( 'theme_not_found', sprintf( __( 'The theme directory "%s" does not exist.' ), esc_html( $this->stylesheet ) ) );
    229230                        } else {
    230231                                $this->errors = new WP_Error( 'theme_no_stylesheet', __( 'Stylesheet is missing.' ) );
    final class WP_Theme implements ArrayAccess { 
    317318                                $theme_root_template = $directories[ $this->template ]['theme_root'];
    318319                        } else {
    319320                                // Parent theme is missing.
     321                                /* translators: %s: theme name / slug */
    320322                                $this->errors = new WP_Error( 'theme_no_parent', sprintf( __( 'The parent theme is missing. Please install the "%s" parent theme.' ), esc_html( $this->template ) ) );
    321323                                $this->cache_add(
    322324                                        'theme', array(
    final class WP_Theme implements ArrayAccess { 
    336338                        // If we are a parent, then there is a problem. Only two generations allowed! Cancel things out.
    337339                        if ( $_child instanceof WP_Theme && $_child->template == $this->stylesheet ) {
    338340                                $_child->parent = null;
     341                                /* translators: %s: theme name / slug */
    339342                                $_child->errors = new WP_Error( 'theme_parent_invalid', sprintf( __( 'The "%s" theme is not a valid parent theme.' ), esc_html( $_child->template ) ) );
    340343                                $_child->cache_add(
    341344                                        'theme', array(
    final class WP_Theme implements ArrayAccess { 
    347350                                );
    348351                                // The two themes actually reference each other with the Template header.
    349352                                if ( $_child->stylesheet == $this->template ) {
     353                                        /* translators: %s: theme name / slug */
    350354                                        $this->errors = new WP_Error( 'theme_parent_invalid', sprintf( __( 'The "%s" theme is not a valid parent theme.' ), esc_html( $this->template ) ) );
    351355                                        $this->cache_add(
    352356                                                'theme', array(
  • src/wp-includes/comment-template.php

    diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
    index f7626f5..629d81f 100644
    a b function trackback_url( $deprecated_echo = true ) { 
    11531153        if ( true !== $deprecated_echo ) {
    11541154                _deprecated_argument(
    11551155                        __FUNCTION__, '2.5.0',
    1156                         /* translators: %s: get_trackback_url() */
    11571156                        sprintf(
     1157                                /* translators: %s: get_trackback_url() */
    11581158                                __( 'Use %s instead if you do not want the value echoed.' ),
    11591159                                '<code>get_trackback_url()</code>'
    11601160                        )
    function comment_form_title( $noreplytext = false, $replytext = false, $linktopa 
    19261926                $noreplytext = __( 'Leave a Reply' );
    19271927        }
    19281928        if ( false === $replytext ) {
     1929                /* translators: %s: author of the comment being replied to */
    19291930                $replytext = __( 'Leave a Reply to %s' );
    19301931        }
    19311932
    function comment_form( $args = array(), $post_id = null ) { 
    22732274                'cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
    22742275                                         '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>',
    22752276        );
    2276 
     2277        /* translators: %s: an asterisk symbol */
    22772278        $required_text = sprintf( ' ' . __( 'Required fields are marked %s' ), '<span class="required">*</span>' );
    22782279
    22792280        /**
    function comment_form( $args = array(), $post_id = null ) { 
    23122313                'class_submit'         => 'submit',
    23132314                'name_submit'          => 'submit',
    23142315                'title_reply'          => __( 'Leave a Reply' ),
     2316                /* translators: %s: author of the comment being replied to */
    23152317                'title_reply_to'       => __( 'Leave a Reply to %s' ),
    23162318                'title_reply_before'   => '<h3 id="reply-title" class="comment-reply-title">',
    23172319                'title_reply_after'    => '</h3>',
  • src/wp-includes/date.php

    diff --git a/src/wp-includes/date.php b/src/wp-includes/date.php
    index 8d82db7..054dde8 100644
    a b class WP_Date_Query { 
    429429                if ( $day_exists && $month_exists && $year_exists ) {
    430430                        // 1. Checking day, month, year combination.
    431431                        if ( ! wp_checkdate( $date_query['month'], $date_query['day'], $date_query['year'], sprintf( '%s-%s-%s', $date_query['year'], $date_query['month'], $date_query['day'] ) ) ) {
    432                                 /* translators: 1: year, 2: month, 3: day of month */
    433432                                $day_month_year_error_msg = sprintf(
     433                                        /* translators: 1: year, 2: month, 3: day of month */
    434434                                        __( 'The following values do not describe a valid date: year %1$s, month %2$s, day %3$s.' ),
    435435                                        '<code>' . esc_html( $date_query['year'] ) . '</code>',
    436436                                        '<code>' . esc_html( $date_query['month'] ) . '</code>',
    class WP_Date_Query { 
    445445                         * We use 2012 because, as a leap year, it's the most permissive.
    446446                         */
    447447                        if ( ! wp_checkdate( $date_query['month'], $date_query['day'], 2012, sprintf( '2012-%s-%s', $date_query['month'], $date_query['day'] ) ) ) {
    448                                 /* translators: 1: month, 2: day of month */
    449448                                $day_month_year_error_msg = sprintf(
     449                                        /* translators: 1: month, 2: day of month */
    450450                                        __( 'The following values do not describe a valid date: month %1$s, day %2$s.' ),
    451451                                        '<code>' . esc_html( $date_query['month'] ) . '</code>',
    452452                                        '<code>' . esc_html( $date_query['day'] ) . '</code>'
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 60229ee..83caec3 100644
    a b function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { 
    22832283
    22842284        $ifp = @ fopen( $new_file, 'wb' );
    22852285        if ( ! $ifp ) {
     2286                /* translators: %s: filename */
    22862287                return array( 'error' => sprintf( __( 'Could not write file %s' ), $new_file ) );
    22872288        }
    22882289
    function _deprecated_constructor( $class, $version, $parent_class = '' ) { 
    40544055        if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) {
    40554056                if ( function_exists( '__' ) ) {
    40564057                        if ( ! empty( $parent_class ) ) {
    4057                                 /* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */
    40584058                                trigger_error(
    40594059                                        sprintf(
     4060                                                /* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */
    40604061                                                __( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ),
    40614062                                                $class, $parent_class, $version, '<pre>__construct()</pre>'
    40624063                                        )
    40634064                                );
    40644065                        } else {
    4065                                 /* translators: 1: PHP class name, 2: version number, 3: __construct() method */
    40664066                                trigger_error(
    40674067                                        sprintf(
     4068                                                /* translators: 1: PHP class name, 2: version number, 3: __construct() method */
    40684069                                                __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    40694070                                                $class, $version, '<pre>__construct()</pre>'
    40704071                                        )
    function _doing_it_wrong( $function, $message, $version ) { 
    43114312                                /* translators: %s: version number */
    43124313                                $version = sprintf( __( '(This message was added in version %s.)' ), $version );
    43134314                        }
    4314                         /* translators: %s: Codex URL */
    43154315                        $message .= ' ' . sprintf(
     4316                                /* translators: %s: Codex URL */
    43164317                                __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),
    43174318                                __( 'https://codex.wordpress.org/Debugging_in_WordPress' )
    43184319                        );
  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index 57a7b67..da58a8b 100644
    a b function wp_get_document_title() { 
    10321032
    10331033        // Add a page number if necessary.
    10341034        if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
     1035                /* translators: %s: page number */
    10351036                $title['page'] = sprintf( __( 'Page %s' ), max( $paged, $page ) );
    10361037        }
    10371038
  • src/wp-includes/link-template.php

    diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
    index 815c539..7afc9f0 100644
    a b function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo 
    16981698                if ( ! empty( $excluded_terms ) && ! is_array( $excluded_terms ) ) {
    16991699                        // back-compat, $excluded_terms used to be $excluded_terms with IDs separated by " and "
    17001700                        if ( false !== strpos( $excluded_terms, ' and ' ) ) {
     1701                                /* translators: %s: the word 'and' */
    17011702                                _deprecated_argument( __FUNCTION__, '3.3.0', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) );
    17021703                                $excluded_terms = explode( ' and ', $excluded_terms );
    17031704                        } else {
  • src/wp-includes/load.php

    diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
    index 81014fd..711ef65 100644
    a b function wp_set_wpdb_vars() { 
    487487        if ( is_wp_error( $prefix ) ) {
    488488                wp_load_translations_early();
    489489                wp_die(
    490                         /* translators: 1: $table_prefix, 2: wp-config.php */
    491490                        sprintf(
     491                                /* translators: 1: $table_prefix, 2: wp-config.php */
    492492                                __( '<strong>ERROR</strong>: %1$s in %2$s can only contain numbers, letters, and underscores.' ),
    493493                                '<code>$table_prefix</code>',
    494494                                '<code>wp-config.php</code>'
  • src/wp-includes/media-template.php

    diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
    index 0dbba58..c39b295 100644
    a b function wp_print_media_templates() { 
    211211                        <h2 class="upload-message">{{ data.message }}</h2>
    212212                <# } #>
    213213                <?php if ( ! _device_can_upload() ) : ?>
     214                        <?php /* translators: %s: URL */ ?>
    214215                        <h2 class="upload-instructions"><?php printf( __( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ), 'https://apps.wordpress.org/' ); ?></h2>
    215216                <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
    216217                        <h2 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h2>
    function wp_print_media_templates() { 
    252253
    253254                                <p class="max-upload-size">
    254255                                <?php
     256                                        /* translators: %s: file size */
    255257                                        printf( __( 'Maximum upload file size: %s.' ), esc_html( size_format( $max_upload_size ) ) );
    256258                                ?>
    257259                                </p>
  • src/wp-includes/media.php

    diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
    index c93c3db..25e6a6a 100644
    a b function wp_enqueue_media( $args = array() ) { 
    35653565                );
    35663566        }
    35673567        foreach ( $months as $month_year ) {
     3568                /* translators: 1: month; 2: year */
    35683569                $month_year->text = sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month_year->month ), $month_year->year );
    35693570        }
    35703571
  • src/wp-includes/ms-functions.php

    diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php
    index f2dbbc7..197e77b 100644
    a b function wpmu_signup_user_notification( $user_login, $user_email, $key, $meta = 
    10411041                 */
    10421042                apply_filters(
    10431043                        'wpmu_signup_user_notification_email',
     1044                        /* translators: %s: activation link */
    10441045                        __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ),
    10451046                        $user_login, $user_email, $key, $meta
    10461047                ),
    function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) { 
    13681369        $siteurl  = site_url();
    13691370        restore_current_blog();
    13701371
    1371         /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */
    13721372        $msg = sprintf(
     1373                /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */
    13731374                __(
    13741375                        'New Site: %1$s
    13751376URL: %2$s
    Disable these notifications: %4$s' 
    13871388         * @param string $msg Email body.
    13881389         */
    13891390        $msg = apply_filters( 'newblog_notify_siteadmin', $msg );
    1390 
     1391        /* translators: %s: new site URL */
    13911392        wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg );
    13921393        return true;
    13931394}
    function newuser_notify_siteadmin( $user_id ) { 
    14171418        $user = get_userdata( $user_id );
    14181419
    14191420        $options_site_url = esc_url( network_admin_url( 'settings.php' ) );
    1420         /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */
    14211421        $msg = sprintf(
     1422                /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */
    14221423                __(
    14231424                        'New User: %1$s
    14241425Remote IP address: %2$s
    Disable these notifications: %3$s' 
    14371438         * @param WP_User $user WP_User instance of the new user.
    14381439         */
    14391440        $msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user );
     1441        /* translators: %s: user login name */
    14401442        wp_mail( $email, sprintf( __( 'New User Registration: %s' ), $user->user_login ), $msg );
    14411443        return true;
    14421444}
    function maybe_add_existing_user_to_blog() { 
    22512253        }
    22522254
    22532255        if ( empty( $details ) || is_wp_error( add_existing_user_to_blog( $details ) ) ) {
     2256                /* translators: %s: home URL */
    22542257                wp_die( sprintf( __( 'An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.' ), home_url() ) );
    22552258        }
    2256 
     2259        /* translators: 1: home URL; 2: admin URL */
    22572260        wp_die( sprintf( __( 'You have been added to this site. Please visit the <a href="%1$s">homepage</a> or <a href="%2$s">log in</a> using your username and password.' ), home_url(), admin_url() ), __( 'WordPress &rsaquo; Success' ), array( 'response' => 200 ) );
    22582261}
    22592262
    All at ###SITENAME### 
    28252828        $content      = str_replace( '###EMAIL###', $value, $content );
    28262829        $content      = str_replace( '###SITENAME###', wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ), $content );
    28272830        $content      = str_replace( '###SITEURL###', network_home_url(), $content );
    2828 
     2831       
     2832        /* translators: %s: site name */
    28292833        wp_mail( $value, sprintf( __( '[%s] New Network Admin Email Address' ), wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ) ), $content );
    28302834
    28312835        if ( $switched_locale ) {
  • src/wp-includes/ms-load.php

    diff --git a/src/wp-includes/ms-load.php b/src/wp-includes/ms-load.php
    index 932ae76..1ac78d1 100644
    a b function ms_site_check() { 
    105105                } else {
    106106                        $admin_email = str_replace( '@', ' AT ', get_site_option( 'admin_email', 'support@' . get_network()->domain ) );
    107107                        wp_die(
    108                                 /* translators: %s: admin email link */
    109108                                sprintf(
     109                                        /* translators: %s: admin email link */
    110110                                        __( 'This site has not been activated yet. If you are having problems activating your site, please contact %s.' ),
    111111                                        sprintf( '<a href="mailto:%s">%s</a>', $admin_email )
    112112                                )
    function ms_not_installed( $domain, $path ) { 
    485485                ) . '</p>';
    486486        }
    487487        $msg .= '<p><strong>' . __( 'What do I do now?' ) . '</strong> ';
    488         /* translators: %s: Codex URL */
    489488        $msg .= sprintf(
     489                /* translators: %s: Codex URL */
    490490                __( 'Read the <a href="%s" target="_blank">bug report</a> page. Some of the guidelines there may help you figure out what went wrong.' ),
    491491                __( 'https://codex.wordpress.org/Debugging_a_WordPress_Network' )
    492492        );
  • src/wp-includes/nav-menu.php

    diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php
    index 6ce589b..bec2ddb 100644
    a b function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) { 
    327327        ) {
    328328                return new WP_Error(
    329329                        'menu_exists',
    330                         /* translators: %s: menu name */
    331330                        sprintf(
     331                                /* translators: %s: menu name */
    332332                                __( 'The menu name %s conflicts with another menu name. Please try another.' ),
    333333                                '<strong>' . esc_html( $menu_data['menu-name'] ) . '</strong>'
    334334                        )
    function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) { 
    342342                if ( $menu_exists ) {
    343343                        return new WP_Error(
    344344                                'menu_exists',
    345                                 /* translators: %s: menu name */
    346345                                sprintf(
     346                                        /* translators: %s: menu name */
    347347                                        __( 'The menu name %s conflicts with another menu name. Please try another.' ),
    348348                                        '<strong>' . esc_html( $menu_data['menu-name'] ) . '</strong>'
    349349                                )
  • src/wp-includes/option.php

    diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
    index a80de70..c9e142b 100644
    a b function get_option( $option, $default = false ) { 
    164164 */
    165165function wp_protect_special_option( $option ) {
    166166        if ( 'alloptions' === $option || 'notoptions' === $option ) {
     167                /* translators: %s: name of an option */
    167168                wp_die( sprintf( __( '%s is a protected WP option and may not be modified' ), esc_html( $option ) ) );
    168169        }
    169170}
    function register_setting( $option_group, $option_name, $args = array() ) { 
    20932094        if ( 'misc' == $option_group ) {
    20942095                _deprecated_argument(
    20952096                        __FUNCTION__, '3.0.0',
    2096                         /* translators: %s: misc */
    20972097                        sprintf(
     2098                                /* translators: %s: misc */
    20982099                                __( 'The "%s" options group has been removed. Use another settings group.' ),
    20992100                                'misc'
    21002101                        )
    function register_setting( $option_group, $option_name, $args = array() ) { 
    21052106        if ( 'privacy' == $option_group ) {
    21062107                _deprecated_argument(
    21072108                        __FUNCTION__, '3.5.0',
    2108                         /* translators: %s: privacy */
    21092109                        sprintf(
     2110                                /* translators: %s: privacy */
    21102111                                __( 'The "%s" options group has been removed. Use another settings group.' ),
    21112112                                'privacy'
    21122113                        )
    function unregister_setting( $option_group, $option_name, $deprecated = '' ) { 
    21432144        if ( 'misc' == $option_group ) {
    21442145                _deprecated_argument(
    21452146                        __FUNCTION__, '3.0.0',
    2146                         /* translators: %s: misc */
    21472147                        sprintf(
     2148                                /* translators: %s: misc */
    21482149                                __( 'The "%s" options group has been removed. Use another settings group.' ),
    21492150                                'misc'
    21502151                        )
    function unregister_setting( $option_group, $option_name, $deprecated = '' ) { 
    21552156        if ( 'privacy' == $option_group ) {
    21562157                _deprecated_argument(
    21572158                        __FUNCTION__, '3.5.0',
    2158                         /* translators: %s: privacy */
    21592159                        sprintf(
     2160                                /* translators: %s: privacy */
    21602161                                __( 'The "%s" options group has been removed. Use another settings group.' ),
    21612162                                'privacy'
    21622163                        )
    function unregister_setting( $option_group, $option_name, $deprecated = '' ) { 
    21712172        if ( '' !== $deprecated ) {
    21722173                _deprecated_argument(
    21732174                        __FUNCTION__, '4.7.0',
    2174                         /* translators: 1: $sanitize_callback, 2: register_setting() */
    21752175                        sprintf(
     2176                                /* translators: 1: $sanitize_callback, 2: register_setting() */
    21762177                                __( '%1$s is deprecated. The callback from %2$s is used instead.' ),
    21772178                                '<code>$sanitize_callback</code>',
    21782179                                '<code>register_setting()</code>'
  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index cb06297..2bd602b 100644
    a b if ( ! function_exists( 'wp_notify_postauthor' ) ) : 
    15681568                                break;
    15691569                }
    15701570                $notify_message .= get_permalink( $comment->comment_post_ID ) . "#comments\r\n\r\n";
     1571                /* translators: %s: link to comment */
    15711572                $notify_message .= sprintf( __( 'Permalink: %s' ), get_comment_link( $comment ) ) . "\r\n";
    15721573
    15731574                if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) {
    if ( ! function_exists( 'wp_notify_moderator' ) ) : 
    17491750                /* translators: Comment moderation. %s: Comment action URL */
    17501751                $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment_id}#wpbody-content" ) ) . "\r\n";
    17511752
    1752                 /* translators: Comment moderation. %s: Number of comments awaiting approval */
    17531753                $notify_message .= sprintf(
     1754                        /* translators: Comment moderation. %s: Number of comments awaiting approval */
    17541755                        _n(
    17551756                                'Currently %s comment is waiting for approval. Please visit the moderation panel:',
    17561757                                'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting
  • src/wp-includes/post-template.php

    diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
    index c888cd1..6cefa20 100644
    a b function get_the_title( $post = 0 ) { 
    134134                         *                         Default 'Protected: %s'.
    135135                         * @param WP_Post $post    Current post object.
    136136                         */
     137                        /* translators: %s: protected post title */
    137138                        $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post );
    138139                        $title                  = sprintf( $protected_title_format, $title );
    139140                } elseif ( isset( $post->post_status ) && 'private' == $post->post_status ) {
    function get_the_title( $post = 0 ) { 
    149150                         *                         Default 'Private: %s'.
    150151                         * @param WP_Post $post    Current post object.
    151152                         */
     153                        /* translators: %s: private post title */
    152154                        $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post );
    153155                        $title                = sprintf( $private_title_format, $title );
    154156                }
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index 98ad57f..e6850dd 100644
    a b function create_initial_post_types() { 
    248248                        'label'       => _x( 'Published', 'post status' ),
    249249                        'public'      => true,
    250250                        '_builtin'    => true, /* internal use only. */
     251                        /* translators: %s: amount of published items */
    251252                        'label_count' => _n_noop( 'Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>' ),
    252253                )
    253254        );
    function create_initial_post_types() { 
    257258                        'label'       => _x( 'Scheduled', 'post status' ),
    258259                        'protected'   => true,
    259260                        '_builtin'    => true, /* internal use only. */
     261                        /* translators: %s: amount of scheduled items */
    260262                        'label_count' => _n_noop( 'Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>' ),
    261263                )
    262264        );
    function create_initial_post_types() { 
    266268                        'label'       => _x( 'Draft', 'post status' ),
    267269                        'protected'   => true,
    268270                        '_builtin'    => true, /* internal use only. */
     271                        /* translators: %s: amount of items marked as draft */
    269272                        'label_count' => _n_noop( 'Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>' ),
    270273                )
    271274        );
    function create_initial_post_types() { 
    275278                        'label'       => _x( 'Pending', 'post status' ),
    276279                        'protected'   => true,
    277280                        '_builtin'    => true, /* internal use only. */
     281                        /* translators: %s: amount of items marked as pending */
    278282                        'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ),
    279283                )
    280284        );
    function create_initial_post_types() { 
    284288                        'label'       => _x( 'Private', 'post status' ),
    285289                        'private'     => true,
    286290                        '_builtin'    => true, /* internal use only. */
     291                        /* translators: %s: amount of items marked as private */
    287292                        'label_count' => _n_noop( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>' ),
    288293                )
    289294        );
    function create_initial_post_types() { 
    293298                        'label'                     => _x( 'Trash', 'post status' ),
    294299                        'internal'                  => true,
    295300                        '_builtin'                  => true, /* internal use only. */
     301                        /* translators: %s: amount of items marked as trash */
    296302                        'label_count'               => _n_noop( 'Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>' ),
    297303                        'show_in_admin_status_list' => true,
    298304                )
    function wp_count_attachments( $mime_type = '' ) { 
    25072513 */
    25082514function get_post_mime_types() {
    25092515        $post_mime_types = array(   //  array( adj, noun )
     2516                /* translators: %s: amount of images */
    25102517                'image' => array( __( 'Images' ), __( 'Manage Images' ), _n_noop( 'Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>' ) ),
     2518                /* translators: %s: amount of audio files */
    25112519                'audio' => array( __( 'Audio' ), __( 'Manage Audio' ), _n_noop( 'Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>' ) ),
     2520                /* translators: %s: amount of videos */
    25122521                'video' => array( __( 'Video' ), __( 'Manage Video' ), _n_noop( 'Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>' ) ),
    25132522        );
    25142523
  • src/wp-includes/rest-api.php

    diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php
    index 0cce9fa..2dcc5de 100644
    a b function rest_validate_value_from_schema( $value, $args, $param = '' ) { 
    11121112                                        return $is_valid;
    11131113                                }
    11141114                        } elseif ( isset( $args['additionalProperties'] ) && false === $args['additionalProperties'] ) {
     1115                                /* translators: %s: property of an object */
    11151116                                return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not a valid property of Object.' ), $property ) );
    11161117                        }
    11171118                }
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index 1242181..0dc4121 100644
    a b function wp_default_scripts( &$scripts ) { 
    305305        // Error messages for Plupload.
    306306        $uploader_l10n = array(
    307307                'queue_limit_exceeded'      => __( 'You have attempted to queue too many files.' ),
     308                /* translators: %s: filename */
    308309                'file_exceeds_size_limit'   => __( '%s exceeds the maximum upload size for this site.' ),
    309310                'zero_byte_file'            => __( 'This file is empty. Please try another.' ),
    310311                'invalid_filetype'          => __( 'Sorry, this file type is not permitted for security reasons.' ),
    function wp_default_scripts( &$scripts ) { 
    318319                'upload_failed'             => __( 'Upload failed.' ),
    319320                /* translators: 1: Opening link tag, 2: Closing link tag */
    320321                'big_upload_failed'         => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.' ),
     322                /* translators: %s: filename */
    321323                'big_upload_queued'         => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.' ),
    322324                'io_error'                  => __( 'IO error.' ),
    323325                'security_error'            => __( 'Security error.' ),
    function wp_default_scripts( &$scripts ) { 
    326328                'dismiss'                   => __( 'Dismiss' ),
    327329                'crunching'                 => __( 'Crunching&hellip;' ),
    328330                'deleted'                   => __( 'moved to the trash.' ),
     331                /* translators: %s: filename */
    329332                'error_uploading'           => __( '&#8220;%s&#8221; has failed to upload.' ),
    330333        );
    331334
    function wp_default_scripts( &$scripts ) { 
    933936                                        'unknownError'             => __( 'Something went wrong.' ),
    934937                                        'connectionError'          => __( 'Connection lost or the server is busy. Please try again later.' ),
    935938                                        'nonceError'               => __( 'An error has occurred. Please reload the page and try again.' ),
     939                                        /* translators: %s: amount of plugins found */
    936940                                        'pluginsFound'             => __( 'Number of plugins found: %d' ),
    937941                                        'noPluginsFound'           => __( 'No plugins found. Try a different search.' ),
    938942                                ),
  • src/wp-includes/theme.php

    diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
    index 4e4edd8..85baf0a 100644
    a b function add_theme_support( $feature ) { 
    25402540                                /* translators: 1: title-tag, 2: wp_loaded */
    25412541                                _doing_it_wrong(
    25422542                                        "add_theme_support( 'title-tag' )", sprintf(
     2543                                                /* translators: 1: title-tag; 2: wp_loaded */
    25432544                                                __( 'Theme support for %1$s should be registered before the %2$s hook.' ),
    25442545                                                '<code>title-tag</code>', '<code>wp_loaded</code>'
    25452546                                        ), '4.1.0'
  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index d309e2f..a393fd5 100644
    a b function register_new_user( $user_login, $user_email ) { 
    24762476        $user_pass = wp_generate_password( 12, false );
    24772477        $user_id   = wp_create_user( $sanitized_user_login, $user_pass, $user_email );
    24782478        if ( ! $user_id || is_wp_error( $user_id ) ) {
     2479                /* translators: %s: admin e-mail address */
    24792480                $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );
    24802481                return $errors;
    24812482        }
    All at ###SITENAME### 
    27862787                $content = str_replace( '###EMAIL###', $_POST['email'], $content );
    27872788                $content = str_replace( '###SITENAME###', wp_specialchars_decode( $sitename, ENT_QUOTES ), $content );
    27882789                $content = str_replace( '###SITEURL###', network_home_url(), $content );
    2789 
     2790               
     2791                /* translators: %s: blog/site name */
    27902792                wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content );
    27912793
    27922794                $_POST['email'] = $current_user->user_email;
  • src/wp-includes/widgets.php

    diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
    index 467647c..bcec821 100644
    a b function register_sidebars( $number = 1, $args = array() ) { 
    175175                $_args = $args;
    176176
    177177                if ( $number > 1 ) {
     178                        /* translators: %d: number of the sidebar */
    178179                        $_args['name'] = isset( $args['name'] ) ? sprintf( $args['name'], $i ) : sprintf( __( 'Sidebar %d' ), $i );
    179180                } else {
    180181                        $_args['name'] = isset( $args['name'] ) ? $args['name'] : __( 'Sidebar' );
    function register_sidebar( $args = array() ) { 
    247248        $id_is_empty = empty( $args['id'] );
    248249
    249250        $defaults = array(
     251                /* translators: %d: number of the sidebar */
    250252                'name'          => sprintf( __( 'Sidebar %d' ), $i ),
    251253                'id'            => "sidebar-$i",
    252254                'description'   => '',
  • src/wp-includes/wp-db.php

    diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php
    index e170ffe..e00e008 100644
    a b class wpdb { 
    12991299                // This is not meant to be foolproof -- but it will catch obviously incorrect usage.
    13001300                if ( strpos( $query, '%' ) === false ) {
    13011301                        wp_load_translations_early();
     1302                        /* translators: %s: name of the function */
    13021303                        _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' );
    13031304                }
    13041305
    class wpdb { 
    13151316                foreach ( $args as $arg ) {
    13161317                        if ( ! is_scalar( $arg ) && ! is_null( $arg ) ) {
    13171318                                wp_load_translations_early();
     1319                                /* translators: %s: value type */
    13181320                                _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'Unsupported value type (%s).' ), gettype( $arg ) ), '4.8.2' );
    13191321                        }
    13201322                }
    class wpdb { 
    13631365                                wp_load_translations_early();
    13641366                                _doing_it_wrong(
    13651367                                        'wpdb::prepare',
    1366                                         /* translators: 1: number of placeholders, 2: number of arguments passed */
    13671368                                        sprintf(
     1369                                                /* translators: 1: number of placeholders, 2: number of arguments passed */
    13681370                                                __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2$d).' ),
    13691371                                                $placeholders,
    13701372                                                count( $args )