Make WordPress Core

Changeset 44171


Ignore:
Timestamp:
12/14/2018 05:57:19 AM (6 years ago)
Author:
pento
Message:

Script Loader: Add translator comments and remove textdomains.

The inline script for wp-date incorrectly included a textdomain, and lacked translator comments.

Merges [43831] from the 5.0 branch to trunk.

Props mukesh27.
Fixes #45191, #45162.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/script-loader.php

    r44164 r44171  
    403403                        'relative'      => array(
    404404                            /* translators: %s: duration */
    405                             'future' => __( '%s from now', 'default' ),
     405                            'future' => __( '%s from now' ),
    406406                            /* translators: %s: duration */
    407                             'past'   => __( '%s ago', 'default' ),
     407                            'past'   => __( '%s ago' ),
    408408                        ),
    409409                    ),
    410410                    'formats'  => array(
    411                         'time'                => get_option( 'time_format', __( 'g:i a', 'default' ) ),
    412                         'date'                => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
    413                         'datetime'            => __( 'F j, Y g:i a', 'default' ),
    414                         'datetimeAbbreviated' => __( 'M j, Y g:i a', 'default' ),
     411                        /* translators: Time format, see https://secure.php.net/date */
     412                        'time'                => get_option( 'time_format', __( 'g:i a' ) ),
     413                        /* translators: Date format, see https://secure.php.net/date */
     414                        'date'                => get_option( 'date_format', __( 'F j, Y' ) ),
     415                        /* translators: Date/Time format, see https://secure.php.net/date */
     416                        'datetime'            => __( 'F j, Y g:i a' ),
     417                        /* translators: Abbreviated date/time format, see https://secure.php.net/date */
     418                        'datetimeAbbreviated' => __( 'M j, Y g:i a' ),
    415419                    ),
    416420                    'timezone' => array(
Note: See TracChangeset for help on using the changeset viewer.