I18N: Use better context for post statuses.

See #35054.
Built from https://develop.svn.wordpress.org/trunk@35903


git-svn-id: http://core.svn.wordpress.org/trunk@35867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-12-13 19:18:26 +00:00
parent fe131bacd1
commit d5d5d64e3d
3 changed files with 8 additions and 9 deletions

View File

@ -1683,8 +1683,7 @@ function _post_states($post) {
if ( 'draft' == $post->post_status && 'draft' != $post_status ) if ( 'draft' == $post->post_status && 'draft' != $post_status )
$post_states['draft'] = __('Draft'); $post_states['draft'] = __('Draft');
if ( 'pending' == $post->post_status && 'pending' != $post_status ) if ( 'pending' == $post->post_status && 'pending' != $post_status )
/* translators: post state */ $post_states['pending'] = _x('Pending', 'post status');
$post_states['pending'] = _x('Pending', 'post state');
if ( is_sticky($post->ID) ) if ( is_sticky($post->ID) )
$post_states['sticky'] = __('Sticky'); $post_states['sticky'] = __('Sticky');

View File

@ -110,42 +110,42 @@ function create_initial_post_types() {
) ); ) );
register_post_status( 'publish', array( register_post_status( 'publish', array(
'label' => _x( 'Published', 'post' ), 'label' => _x( 'Published', 'post status' ),
'public' => true, 'public' => true,
'_builtin' => true, /* internal use only. */ '_builtin' => true, /* internal use only. */
'label_count' => _n_noop( 'Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>' ), 'label_count' => _n_noop( 'Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>' ),
) ); ) );
register_post_status( 'future', array( register_post_status( 'future', array(
'label' => _x( 'Scheduled', 'post' ), 'label' => _x( 'Scheduled', 'post status' ),
'protected' => true, 'protected' => true,
'_builtin' => true, /* internal use only. */ '_builtin' => true, /* internal use only. */
'label_count' => _n_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>' ), 'label_count' => _n_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>' ),
) ); ) );
register_post_status( 'draft', array( register_post_status( 'draft', array(
'label' => _x( 'Draft', 'post' ), 'label' => _x( 'Draft', 'post status' ),
'protected' => true, 'protected' => true,
'_builtin' => true, /* internal use only. */ '_builtin' => true, /* internal use only. */
'label_count' => _n_noop( 'Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>' ), 'label_count' => _n_noop( 'Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>' ),
) ); ) );
register_post_status( 'pending', array( register_post_status( 'pending', array(
'label' => _x( 'Pending', 'post' ), 'label' => _x( 'Pending', 'post status' ),
'protected' => true, 'protected' => true,
'_builtin' => true, /* internal use only. */ '_builtin' => true, /* internal use only. */
'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ), 'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ),
) ); ) );
register_post_status( 'private', array( register_post_status( 'private', array(
'label' => _x( 'Private', 'post' ), 'label' => _x( 'Private', 'post status' ),
'private' => true, 'private' => true,
'_builtin' => true, /* internal use only. */ '_builtin' => true, /* internal use only. */
'label_count' => _n_noop( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>' ), 'label_count' => _n_noop( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>' ),
) ); ) );
register_post_status( 'trash', array( register_post_status( 'trash', array(
'label' => _x( 'Trash', 'post' ), 'label' => _x( 'Trash', 'post status' ),
'internal' => true, 'internal' => true,
'_builtin' => true, /* internal use only. */ '_builtin' => true, /* internal use only. */
'label_count' => _n_noop( 'Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>' ), 'label_count' => _n_noop( 'Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>' ),

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-35902'; $wp_version = '4.5-alpha-35903';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.