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. git-svn-id: https://develop.svn.wordpress.org/trunk@44171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9e49ba8a97
commit
ebb6b7f703
@ -402,16 +402,20 @@ function wp_default_packages_inline_scripts( &$scripts ) {
|
||||
'meridiem' => (object) $wp_locale->meridiem,
|
||||
'relative' => array(
|
||||
/* translators: %s: duration */
|
||||
'future' => __( '%s from now', 'default' ),
|
||||
'future' => __( '%s from now' ),
|
||||
/* translators: %s: duration */
|
||||
'past' => __( '%s ago', 'default' ),
|
||||
'past' => __( '%s ago' ),
|
||||
),
|
||||
),
|
||||
'formats' => array(
|
||||
'time' => get_option( 'time_format', __( 'g:i a', 'default' ) ),
|
||||
'date' => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
|
||||
'datetime' => __( 'F j, Y g:i a', 'default' ),
|
||||
'datetimeAbbreviated' => __( 'M j, Y g:i a', 'default' ),
|
||||
/* translators: Time format, see https://secure.php.net/date */
|
||||
'time' => get_option( 'time_format', __( 'g:i a' ) ),
|
||||
/* translators: Date format, see https://secure.php.net/date */
|
||||
'date' => get_option( 'date_format', __( 'F j, Y' ) ),
|
||||
/* translators: Date/Time format, see https://secure.php.net/date */
|
||||
'datetime' => __( 'F j, Y g:i a' ),
|
||||
/* translators: Abbreviated date/time format, see https://secure.php.net/date */
|
||||
'datetimeAbbreviated' => __( 'M j, Y g:i a' ),
|
||||
),
|
||||
'timezone' => array(
|
||||
'offset' => get_option( 'gmt_offset', 0 ),
|
||||
|
Loading…
Reference in New Issue
Block a user