Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r45926 r45932  
    141141        // Default category
    142142        $cat_name = __( 'Uncategorized' );
    143         /* translators: Default category slug */
     143        /* translators: Default category slug. */
    144144        $cat_slug = sanitize_title( _x( 'Uncategorized', 'Default category slug' ) );
    145145
     
    194194            if ( ! $first_post ) {
    195195                $first_post = "<!-- wp:paragraph -->\n<p>" .
    196                 /* translators: first post content, %s: site link */
     196                /* translators: First post content. %s: Site link. */
    197197                __( 'Welcome to %s. This is your first post. Edit or delete it, then start writing!' ) .
    198198                "</p>\n<!-- /wp:paragraph -->";
     
    209209        } else {
    210210            $first_post = "<!-- wp:paragraph -->\n<p>" .
    211             /* translators: first post content, %s: site link */
     211            /* translators: First post content. %s: Site link. */
    212212            __( 'Welcome to WordPress. This is your first post. Edit or delete it, then start writing!' ) .
    213213            "</p>\n<!-- /wp:paragraph -->";
     
    223223                'post_excerpt'          => '',
    224224                'post_title'            => __( 'Hello world!' ),
    225                 /* translators: Default post slug */
     225                /* translators: Default post slug. */
    226226                'post_name'             => sanitize_title( _x( 'hello-world', 'Default post slug' ) ),
    227227                'post_modified'         => $now,
     
    278278        if ( empty( $first_page ) ) {
    279279            $first_page = "<!-- wp:paragraph -->\n<p>";
    280             /* translators: first page content */
     280            /* translators: First page content. */
    281281            $first_page .= __( "This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:" );
    282282            $first_page .= "</p>\n<!-- /wp:paragraph -->\n\n";
    283283
    284284            $first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>";
    285             /* translators: first page content */
     285            /* translators: First page content. */
    286286            $first_page .= __( "Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)" );
    287287            $first_page .= "</p></blockquote>\n<!-- /wp:quote -->\n\n";
    288288
    289289            $first_page .= "<!-- wp:paragraph -->\n<p>";
    290             /* translators: first page content */
     290            /* translators: First page content. */
    291291            $first_page .= __( '...or something like this:' );
    292292            $first_page .= "</p>\n<!-- /wp:paragraph -->\n\n";
    293293
    294294            $first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>";
    295             /* translators: first page content */
     295            /* translators: First page content. */
    296296            $first_page .= __( 'The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.' );
    297297            $first_page .= "</p></blockquote>\n<!-- /wp:quote -->\n\n";
     
    299299            $first_page .= "<!-- wp:paragraph -->\n<p>";
    300300            $first_page .= sprintf(
    301                 /* translators: first page content, %s: site admin URL */
     301                /* translators: First page content. %s: Site admin URL. */
    302302                __( 'As a new WordPress user, you should go to <a href="%s">your dashboard</a> to delete this page and create new pages for your content. Have fun!' ),
    303303                admin_url()
     
    317317                'comment_status'        => 'closed',
    318318                'post_title'            => __( 'Sample Page' ),
    319                 /* translators: Default page slug */
     319                /* translators: Default page slug. */
    320320                'post_name'             => __( 'sample-page' ),
    321321                'post_modified'         => $now,
     
    362362                    'comment_status'        => 'closed',
    363363                    'post_title'            => __( 'Privacy Policy' ),
    364                     /* translators: Privacy Policy page slug */
     364                    /* translators: Privacy Policy page slug. */
    365365                    'post_name'             => __( 'privacy-policy' ),
    366366                    'post_modified'         => $now,
     
    586586
    587587        $message = sprintf(
    588             /* translators: New site notification email. 1: New site URL, 2: User login, 3: User password or password reset link, 4: Login URL */
     588            /* translators: New site notification email. 1: New site URL, 2: User login, 3: User password or password reset link, 4: Login URL. */
    589589            __(
    590590                'Your new WordPress site has been successfully set up at:
Note: See TracChangeset for help on using the changeset viewer.