Make WordPress Core

Changeset 48991


Ignore:
Timestamp:
09/18/2020 10:35:41 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update the URL for PHP date formats table in translator comments.

Props hareesh-pillai, iandunn.
Fixes #51332.

Location:
trunk/src
Files:
15 edited

Legend:

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

    r48958 r48991  
    216216            /* translators: 1: Comment date, 2: Comment time. */
    217217            __( '%1$s at %2$s' ),
    218             /* translators: Comment date format. See https://www.php.net/date */
     218            /* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */
    219219            get_comment_date( __( 'Y/m/d' ), $comment ),
    220             /* translators: Comment time format. See https://www.php.net/date */
     220            /* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */
    221221            get_comment_date( __( 'g:i a' ), $comment )
    222222        );
  • trunk/src/wp-admin/edit-form-advanced.php

    r48942 r48991  
    172172    /* translators: Publish box date string. 1: Date, 2: Time. */
    173173    __( '%1$s at %2$s' ),
    174     /* translators: Publish box date format, see https://www.php.net/date */
     174    /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
    175175    date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
    176     /* translators: Publish box time format, see https://www.php.net/date */
     176    /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
    177177    date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
    178178);
  • trunk/src/wp-admin/edit-form-comment.php

    r48594 r48991  
    125125    /* translators: 1: Comment date, 2: Comment time. */
    126126    __( '%1$s at %2$s' ),
    127     /* translators: Publish box date format, see https://www.php.net/date */
     127    /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
    128128    date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ),
    129     /* translators: Publish box time format, see https://www.php.net/date */
     129    /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
    130130    date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) )
    131131);
  • trunk/src/wp-admin/includes/ajax-actions.php

    r48946 r48991  
    22062206            $time = '';
    22072207        } else {
    2208             /* translators: Date format in table columns, see https://www.php.net/date */
     2208            /* translators: Date format in table columns, see https://www.php.net/manual/datetime.format.php */
    22092209            $time = mysql2date( __( 'Y/m/d' ), $post->post_date );
    22102210        }
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r48943 r48991  
    956956            /* translators: 1: Comment date, 2: Comment time. */
    957957            __( '%1$s at %2$s' ),
    958             /* translators: Comment date format. See https://www.php.net/date */
     958            /* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */
    959959            get_comment_date( __( 'Y/m/d' ), $comment ),
    960             /* translators: Comment time format. See https://www.php.net/date */
     960            /* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */
    961961            get_comment_date( __( 'g:i a' ), $comment )
    962962        );
  • trunk/src/wp-admin/includes/class-wp-community-events.php

    r48110 r48991  
    376376                 * are available, without having to open the link.
    377377                 */
    378                 /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/date */
     378                /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */
    379379                $formatted_date = date_i18n( __( 'l, M j, Y' ), $timestamp );
    380380                $formatted_time = date_i18n( get_option( 'time_format' ), $timestamp );
     
    385385
    386386                    if ( 'meetup' !== $event['type'] && $formatted_end_date !== $formatted_date ) {
    387                         /* translators: Upcoming events month format. See https://www.php.net/date */
     387                        /* translators: Upcoming events month format. See https://www.php.net/manual/datetime.format.php */
    388388                        $start_month = date_i18n( _x( 'F', 'upcoming events month format' ), $timestamp );
    389389                        $end_month   = date_i18n( _x( 'F', 'upcoming events month format' ), $end_timestamp );
     
    394394                                __( '%1$s %2$d–%3$d, %4$d' ),
    395395                                $start_month,
    396                                 /* translators: Upcoming events day format. See https://www.php.net/date */
     396                                /* translators: Upcoming events day format. See https://www.php.net/manual/datetime.format.php */
    397397                                date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ),
    398398                                date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ),
    399                                 /* translators: Upcoming events year format. See https://www.php.net/date */
     399                                /* translators: Upcoming events year format. See https://www.php.net/manual/datetime.format.php */
    400400                                date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp )
    401401                            );
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r48668 r48991  
    10821082                /* translators: 1: Post date, 2: Post time. */
    10831083                __( '%1$s at %2$s' ),
    1084                 /* translators: Post date format. See https://www.php.net/date */
     1084                /* translators: Post date format. See https://www.php.net/manual/datetime.format.php */
    10851085                get_the_time( __( 'Y/m/d' ), $post ),
    1086                 /* translators: Post time format. See https://www.php.net/date */
     1086                /* translators: Post time format. See https://www.php.net/manual/datetime.format.php */
    10871087                get_the_time( __( 'g:i a' ), $post )
    10881088            );
  • trunk/src/wp-admin/includes/dashboard.php

    r48586 r48991  
    966966                $relative = __( 'Tomorrow' );
    967967            } elseif ( gmdate( 'Y', $time ) !== $year ) {
    968                 /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/date */
     968                /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/manual/datetime.format.php */
    969969                $relative = date_i18n( __( 'M jS Y' ), $time );
    970970            } else {
    971                 /* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/date */
     971                /* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/manual/datetime.format.php */
    972972                $relative = date_i18n( __( 'M jS' ), $time );
    973973            }
  • trunk/src/wp-admin/includes/meta-boxes.php

    r48594 r48991  
    213213
    214214        <?php
    215         /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/date */
     215        /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */
    216216        $date_string = __( '%1$s at %2$s' );
    217         /* translators: Publish box date format, see https://www.php.net/date */
     217        /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
    218218        $date_format = _x( 'M j, Y', 'publish box date format' );
    219         /* translators: Publish box time format, see https://www.php.net/date */
     219        /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
    220220        $time_format = _x( 'H:i', 'publish box time format' );
    221221
     
    405405            <?php
    406406            $uploaded_on = sprintf(
    407                 /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/date */
     407                /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */
    408408                __( '%1$s at %2$s' ),
    409                 /* translators: Publish box date format, see https://www.php.net/date */
     409                /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
    410410                date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
    411                 /* translators: Publish box time format, see https://www.php.net/date */
     411                /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
    412412                date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
    413413            );
  • trunk/src/wp-admin/includes/misc.php

    r48823 r48991  
    12471247            );
    12481248        } else {
    1249             /* translators: Draft saved date format, see https://www.php.net/date */
     1249            /* translators: Draft saved date format, see https://www.php.net/manual/datetime.format.php */
    12501250            $draft_saved_date_format = __( 'g:i:s a' );
    12511251            $response['wp_autosave'] = array(
  • trunk/src/wp-admin/includes/schema.php

    r48586 r48991  
    423423        'default_pingback_flag'           => 1,
    424424        'posts_per_page'                  => 10,
    425         /* translators: Default date format, see https://www.php.net/date */
     425        /* translators: Default date format, see https://www.php.net/manual/datetime.format.php */
    426426        'date_format'                     => __( 'F j, Y' ),
    427         /* translators: Default time format, see https://www.php.net/date */
     427        /* translators: Default time format, see https://www.php.net/manual/datetime.format.php */
    428428        'time_format'                     => __( 'g:i a' ),
    429         /* translators: Links last updated date format, see https://www.php.net/date */
     429        /* translators: Links last updated date format, see https://www.php.net/manual/datetime.format.php */
    430430        'links_updated_date_format'       => __( 'F j, Y g:i a' ),
    431431        'comment_moderation'              => 0,
  • trunk/src/wp-admin/options-general.php

    r47550 r48991  
    1919$title       = __( 'General Settings' );
    2020$parent_file = 'options-general.php';
    21 /* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/date */
     21/* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/manual/datetime.format.php */
    2222$timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' );
    2323
  • trunk/src/wp-includes/class-wp-locale.php

    r47808 r48991  
    360360     */
    361361    public function _strings_for_pot() {
    362         /* translators: Localized date format, see https://www.php.net/date */
     362        /* translators: Localized date format, see https://www.php.net/manual/datetime.format.php */
    363363        __( 'F j, Y' );
    364         /* translators: Localized time format, see https://www.php.net/date */
     364        /* translators: Localized time format, see https://www.php.net/manual/datetime.format.php */
    365365        __( 'g:i a' );
    366         /* translators: Localized date and time format, see https://www.php.net/date */
     366        /* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */
    367367        __( 'F j, Y g:i a' );
    368368    }
  • trunk/src/wp-includes/post-template.php

    r48574 r48991  
    18251825    }
    18261826
    1827     /* translators: Revision date format, see https://www.php.net/date */
     1827    /* translators: Revision date format, see https://www.php.net/manual/datetime.format.php */
    18281828    $datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
    18291829    /* translators: %s: Revision date. */
     
    18671867
    18681868    $author = get_the_author_meta( 'display_name', $revision->post_author );
    1869     /* translators: Revision date format, see https://www.php.net/date */
     1869    /* translators: Revision date format, see https://www.php.net/manual/datetime.format.php */
    18701870    $datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
    18711871
  • trunk/src/wp-includes/script-loader.php

    r48923 r48991  
    345345                    ),
    346346                    'formats'  => array(
    347                         /* translators: Time format, see https://www.php.net/date */
     347                        /* translators: Time format, see https://www.php.net/manual/datetime.format.php */
    348348                        'time'                => get_option( 'time_format', __( 'g:i a' ) ),
    349                         /* translators: Date format, see https://www.php.net/date */
     349                        /* translators: Date format, see https://www.php.net/manual/datetime.format.php */
    350350                        'date'                => get_option( 'date_format', __( 'F j, Y' ) ),
    351                         /* translators: Date/Time format, see https://www.php.net/date */
     351                        /* translators: Date/Time format, see https://www.php.net/manual/datetime.format.php */
    352352                        'datetime'            => __( 'F j, Y g:i a' ),
    353                         /* translators: Abbreviated date/time format, see https://www.php.net/date */
     353                        /* translators: Abbreviated date/time format, see https://www.php.net/manual/datetime.format.php */
    354354                        'datetimeAbbreviated' => __( 'M j, Y g:i a' ),
    355355                    ),
Note: See TracChangeset for help on using the changeset viewer.