Make WordPress Core

Changeset 42005


Ignore:
Timestamp:
10/24/2017 10:34:05 PM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add a context for remaining "Schedule" strings.

Props Mirucon.
Fixes #42165.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r41987 r42005  
    290290    if ( $can_publish ) :
    291291        if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    292         <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
    293         <?php submit_button( __( 'Schedule' ), 'primary large', 'publish', false ); ?>
     292        <input name="original_publish" type="hidden" id="original_publish" value="<?php echo esc_attr_x( 'Schedule', 'post action/button label' ); ?>" />
     293        <?php submit_button( _x( 'Schedule', 'post action/button label' ), 'primary large', 'publish', false ); ?>
    294294<?php   else : ?>
    295295        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
  • trunk/src/wp-includes/script-loader.php

    r41997 r42005  
    552552        'updating'           => __( 'Updating' ),
    553553        'schedule'           => _x( 'Schedule', 'customizer changeset action/button label' ),
    554         'scheduled'          => __( 'Scheduled' ),
     554        'scheduled'          => _x( 'Scheduled', 'customizer changeset status' ),
    555555        'invalid'            => __( 'Invalid' ),
    556556        'saveBeforeShare'    => __( 'Please save your changes in order to share the preview.' ),
Note: See TracChangeset for help on using the changeset viewer.