wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
translate_nooped_plural › WordPress Function
Seit3.1.0
Veraltetn/v
› translate_nooped_plural ( $nooped_plural, $count, $domain = 'default' )
Parameter: (3) |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Translates and returns the singular or plural form of a string that's been registered with _n_noop() or _nx_noop().
Used when you want to use a translatable plural string once the number is known. Example: $message = _n_noop( '%s post', '%s posts', 'text-domain' ); ... printf( translate_nooped_plural( $message, $count, 'text-domain' ), number_format_i18n( $count ) );Ähnliche Funktionen: translate_user_role, _wp_translate_postdata, translate, translate_smiley, translations_api
Quellcode
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 ); } }