I18N: Use better context for post statuses.
See #35054. git-svn-id: https://develop.svn.wordpress.org/trunk@35903 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4e130ed78f
commit
81a9fe9c09
|
@ -1683,8 +1683,7 @@ function _post_states($post) {
|
|||
if ( 'draft' == $post->post_status && 'draft' != $post_status )
|
||||
$post_states['draft'] = __('Draft');
|
||||
if ( 'pending' == $post->post_status && 'pending' != $post_status )
|
||||
/* translators: post state */
|
||||
$post_states['pending'] = _x('Pending', 'post state');
|
||||
$post_states['pending'] = _x('Pending', 'post status');
|
||||
if ( is_sticky($post->ID) )
|
||||
$post_states['sticky'] = __('Sticky');
|
||||
|
||||
|
|
|
@ -110,42 +110,42 @@ function create_initial_post_types() {
|
|||
) );
|
||||
|
||||
register_post_status( 'publish', array(
|
||||
'label' => _x( 'Published', 'post' ),
|
||||
'label' => _x( 'Published', 'post status' ),
|
||||
'public' => true,
|
||||
'_builtin' => true, /* internal use only. */
|
||||
'label_count' => _n_noop( 'Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>' ),
|
||||
) );
|
||||
|
||||
register_post_status( 'future', array(
|
||||
'label' => _x( 'Scheduled', 'post' ),
|
||||
'label' => _x( 'Scheduled', 'post status' ),
|
||||
'protected' => true,
|
||||
'_builtin' => true, /* internal use only. */
|
||||
'label_count' => _n_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>' ),
|
||||
) );
|
||||
|
||||
register_post_status( 'draft', array(
|
||||
'label' => _x( 'Draft', 'post' ),
|
||||
'label' => _x( 'Draft', 'post status' ),
|
||||
'protected' => true,
|
||||
'_builtin' => true, /* internal use only. */
|
||||
'label_count' => _n_noop( 'Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>' ),
|
||||
) );
|
||||
|
||||
register_post_status( 'pending', array(
|
||||
'label' => _x( 'Pending', 'post' ),
|
||||
'label' => _x( 'Pending', 'post status' ),
|
||||
'protected' => true,
|
||||
'_builtin' => true, /* internal use only. */
|
||||
'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ),
|
||||
) );
|
||||
|
||||
register_post_status( 'private', array(
|
||||
'label' => _x( 'Private', 'post' ),
|
||||
'label' => _x( 'Private', 'post status' ),
|
||||
'private' => true,
|
||||
'_builtin' => true, /* internal use only. */
|
||||
'label_count' => _n_noop( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>' ),
|
||||
) );
|
||||
|
||||
register_post_status( 'trash', array(
|
||||
'label' => _x( 'Trash', 'post' ),
|
||||
'label' => _x( 'Trash', 'post status' ),
|
||||
'internal' => true,
|
||||
'_builtin' => true, /* internal use only. */
|
||||
'label_count' => _n_noop( 'Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>' ),
|
||||
|
|
Loading…
Reference in New Issue