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/options-permalink.php

    r45926 r45932  
    3333        'content' => '<p>' . __( 'Permalinks can contain useful information, such as the post date, title, or other elements. You can choose from any of the suggested permalink formats, or you can craft your own if you select Custom Structure.' ) . '</p>' .
    3434            '<p>' . sprintf(
    35                 /* translators: '%' character */
     35                /* translators: '%' character. */
    3636                __( 'If you pick an option other than Plain, your general URL path with structure tags (terms surrounded by %s) will also appear in the custom structure field and your path can be further modified there.' ),
    3737                '<code>%</code>'
     
    183183    <?php
    184184        printf(
    185             /* translators: %s: Documentation URL */
     185            /* translators: %s: Documentation URL. */
    186186            __( 'WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s">number of tags are available</a>, and here are some examples to get you started.' ),
    187187            __( 'https://wordpress.org/support/article/using-permalinks/' )
     
    240240                <?php
    241241                $available_tags = array(
    242                     /* translators: %s: permalink structure tag */
     242                    /* translators: %s: Permalink structure tag. */
    243243                    'year'     => __( '%s (The year of the post, four digits, for example 2004.)' ),
    244                     /* translators: %s: permalink structure tag */
     244                    /* translators: %s: Permalink structure tag. */
    245245                    'monthnum' => __( '%s (Month of the year, for example 05.)' ),
    246                     /* translators: %s: permalink structure tag */
     246                    /* translators: %s: Permalink structure tag. */
    247247                    'day'      => __( '%s (Day of the month, for example 28.)' ),
    248                     /* translators: %s: permalink structure tag */
     248                    /* translators: %s: Permalink structure tag. */
    249249                    'hour'     => __( '%s (Hour of the day, for example 15.)' ),
    250                     /* translators: %s: permalink structure tag */
     250                    /* translators: %s: Permalink structure tag. */
    251251                    'minute'   => __( '%s (Minute of the hour, for example 43.)' ),
    252                     /* translators: %s: permalink structure tag */
     252                    /* translators: %s: Permalink structure tag. */
    253253                    'second'   => __( '%s (Second of the minute, for example 33.)' ),
    254                     /* translators: %s: permalink structure tag */
     254                    /* translators: %s: Permalink structure tag. */
    255255                    'post_id'  => __( '%s (The unique ID of the post, for example 423.)' ),
    256                     /* translators: %s: permalink structure tag */
     256                    /* translators: %s: Permalink structure tag. */
    257257                    'postname' => __( '%s (The sanitized post title (slug).)' ),
    258                     /* translators: %s: permalink structure tag */
     258                    /* translators: %s: Permalink structure tag. */
    259259                    'category' => __( '%s (Category slug. Nested sub-categories appear as nested directories in the URL.)' ),
    260                     /* translators: %s: permalink structure tag */
     260                    /* translators: %s: Permalink structure tag. */
    261261                    'author'   => __( '%s (A sanitized version of the author name.)' ),
    262262                );
     
    271271                $available_tags = apply_filters( 'available_permalink_structure_tags', $available_tags );
    272272
    273                 /* translators: %s: permalink structure tag */
     273                /* translators: %s: Permalink structure tag. */
    274274                $structure_tag_added = __( '%s added to permalink structure' );
    275275
    276                 /* translators: %s: permalink structure tag */
     276                /* translators: %s: Permalink structure tag. */
    277277                $structure_tag_already_used = __( '%s (already used in permalink structure)' );
    278278
     
    306306<p>
    307307<?php
    308 /* translators: %s: placeholder that must come at the start of the URL */
     308/* translators: %s: Placeholder that must come at the start of the URL. */
    309309printf( __( 'If you like, you may enter custom structures for your category and tag URLs here. For example, using <code>topics</code> as your category base would make your category links like <code>%s/topics/uncategorized/</code>. If you leave these blank the defaults will be used.' ), get_option( 'home' ) . $blog_prefix . $prefix );
    310310?>
     
    313313<table class="form-table" role="presentation">
    314314    <tr>
    315         <th><label for="category_base"><?php /* translators: prefix for category permalinks */ _e( 'Category base' ); ?></label></th>
     315        <th><label for="category_base"><?php /* translators: Prefix for category permalinks. */ _e( 'Category base' ); ?></label></th>
    316316        <td><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td>
    317317    </tr>
     
    336336                <?php
    337337                printf(
    338                     /* translators: 1: web.config, 2: Documentation URL, 3: CTRL + a, 4: element code */
     338                    /* translators: 1: web.config, 2: Documentation URL, 3: CTRL + a, 4: Element code. */
    339339                    __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s to select all. Then insert this rule inside of the %4$s element in %1$s file.' ),
    340340                    '<code>web.config</code>',
Note: See TracChangeset for help on using the changeset viewer.