_n_noop [ WordPress Function ]
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Register plural strings in POT file, but don't translate them.
Used when you want to keep structures with translatable plural strings and use them later.
Example: $messages = array( 'post' => _n_noop('%s post', '%s posts'), 'page' => _n_noop('%s pages', '%s pages') ); ... $message = $messages[$type]; $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count );
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/ n noop « WordPress Codex
Description. Register plural strings in POT file, but don't translate them. Used when you want to keep structures with translatable plural strings and use them later ...
codex.wordpress.org - #20188 (_n_noop() does not accept a textdomain) – WordPress Trac
A plugin tryng to use register_post_status() will have a hard time making the ' label_count' property translatable, since _n_noop() doesn't have a textdomain ...
core.trac.wordpress.org - PHPXRef 0.7 : WordPress : Function Reference: _n_noop()
Function and Method Cross Reference. _n_noop(). Defined at: /wp-includes/l10n. php -> line 257. Referenced 21 times: /wp-admin/about.php -> line 167 ...
phpxref.ftwr.co.uk - _n_noop | A HitchHackers guide through WordPress
Feb 12, 2011 ... function _n_noop( $singular, $plural ) { return array( 0 => $singular, 1 => $plural, 'singular' => $singular, 'plural' => $plural, 'context' => null ); } ...
hitchhackerguide.com