translate_nooped_plural [ WordPress Function ]
translate_nooped_plural ( $nooped_plural, $count, $domain = 'default' )
| Parameters: |
|
| Defined at: |
|
Benzer Fonksiyonlar: translate_user_role, _wp_translate_postdata, translate, translate_smiley, translate_level_to_role
Translate the result of _n_noop() or _nx_noop()
Source
<?php
function translate_nooped_plural( $nooped_plural, $count, $domain = 'default' ) {
if ( $nooped_plural['domain'] )
$domain = $nooped_plural['domain'];
if ( $nooped_plural['context'] )
return _nx( $nooped_plural['singular'], $nooped_plural['plural'], $count, $nooped_plural['context'], $domain );
else
return _n( $nooped_plural['singular'], $nooped_plural['plural'], $count, $domain );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/translate nooped plural « WordPress Codex
Function Reference/translate nooped plural ... Usage. <?php translate_nooped_plural( $nooped_plural, $count, $domain ) ?> ...
codex.wordpress.org - #20188 (_n_noop() does not accept a textdomain) – WordPress Trac
After that, translate_nooped_plural() is used to translate a string according to the textdomain. We can consider this one an enhancement + maybelater, I think.
core.trac.wordpress.org - WordPress › Support » 3.0 Upgraded to 3.1 & Posts Edit Admin ...
Fatal error: Call to undefined function translate_nooped_plural() in /home7/ thejunc1/public_html/justfacts/wp-admin/includes/class-wp-posts-list-table.php on ...
wordpress.org - PHPXRef 0.7 : WordPress (Trunk) : /wp-includes/l10n.php source
269 * $message = $messages[$type]; 270 * $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count ); 271 * 272 * @since 2.5 273 ...
lab.yukei.net