Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_n_noop [ WordPress Function ]

_n_noop ( $singular, $plural, $domain = null )
Parameters:
  • (string) $singular Single form to be i18ned
  • (string) $plural Plural form to be i18ned
  • (string) $domain Optional. The domain identifier the text will be retrieved in
Returns:
  • (array) array($singular, $plural)
Defined at:

Soorgelijke functies: _nx_noop, __ngettext_noop, in_the_loop


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 );

Source


<?php
function _n_noop$singular$plural$domain null ) {
    return array( 
=> $singular=> $plural'singular' => $singular'plural' => $plural'context' => null'domain' => $domain );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics