Register plural strings with context in POT file, but don't translate them.
<?php _nx_noop( $singular, $plural, $context, $domain ) ?>
array( 0 => $singular, 1 => $plural, 3 => $context 'singular' => $singular, 'plural' => $plural, 'context' => $context, 'domain' => $domain )
$labels = array( 'draft' => array( _nx_noop('%s Draft', '%s Drafts', 'post'), _nx_noop('%s Draft', '%s Drafts', 'page') ), 'publish' => array( _nx_noop('%s Published', '%s Published', 'post'), _nx_noop('%s Published', '%s Published', 'page') ) ); if( $post_type == 'page' ) { $labels = $labels[$post_status][1]; } else { $labels = $labels[$post_status][0]; } $usable_text = sprintf( translate_nooped_plural( $labels, $count, $domain ), $count );
_nx_noop() is located in /wp-includes/l10n.php
.
L10n: translate(), __(), _e(), _n(), _x(), _ex(), _nx(), esc_attr__(), esc_attr_e(), esc_attr_x(), esc_html__(), esc_html_e(), esc_html_x(), _n_noop(), _nx_noop(), translate_nooped_plural()