I18N: Add a context for remaining "Schedule" strings.
Props Mirucon. Fixes #42165. git-svn-id: https://develop.svn.wordpress.org/trunk@42005 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9d294d7ea1
commit
6768a2cd2a
@ -289,8 +289,8 @@ if ( current_user_can( "delete_post", $post->ID ) ) {
|
|||||||
if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) {
|
if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) {
|
||||||
if ( $can_publish ) :
|
if ( $can_publish ) :
|
||||||
if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
|
if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
|
||||||
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php echo esc_attr_x( 'Schedule', 'post action/button label' ); ?>" />
|
||||||
<?php submit_button( __( 'Schedule' ), 'primary large', 'publish', false ); ?>
|
<?php submit_button( _x( 'Schedule', 'post action/button label' ), 'primary large', 'publish', false ); ?>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
|
||||||
<?php submit_button( __( 'Publish' ), 'primary large', 'publish', false ); ?>
|
<?php submit_button( __( 'Publish' ), 'primary large', 'publish', false ); ?>
|
||||||
|
@ -551,7 +551,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'draftSaved' => __( 'Draft Saved' ),
|
'draftSaved' => __( 'Draft Saved' ),
|
||||||
'updating' => __( 'Updating' ),
|
'updating' => __( 'Updating' ),
|
||||||
'schedule' => _x( 'Schedule', 'customizer changeset action/button label' ),
|
'schedule' => _x( 'Schedule', 'customizer changeset action/button label' ),
|
||||||
'scheduled' => __( 'Scheduled' ),
|
'scheduled' => _x( 'Scheduled', 'customizer changeset status' ),
|
||||||
'invalid' => __( 'Invalid' ),
|
'invalid' => __( 'Invalid' ),
|
||||||
'saveBeforeShare' => __( 'Please save your changes in order to share the preview.' ),
|
'saveBeforeShare' => __( 'Please save your changes in order to share the preview.' ),
|
||||||
'futureDateError' => __( 'You must supply a future date to schedule.' ),
|
'futureDateError' => __( 'You must supply a future date to schedule.' ),
|
||||||
|
Loading…
Reference in New Issue
Block a user