Make WordPress Core


Ignore:
Timestamp:
12/19/2009 10:51:29 AM (15 years ago)
Author:
westi
Message:

Deprecate _nc() as _nx() is a much better was of specifying contexts. Fixes #11404 props nacin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/l10n.php

    r12257 r12459  
    240240
    241241/**
    242  * @see _n() A version of _n(), which supports contexts --
    243  * strips everything from the translation after the last bar
    244  *
    245  */
    246 function _nc( $single, $plural, $number, $domain = 'default' ) {
    247     return before_last_bar( _n( $single, $plural, $number, $domain ) );
    248 }
    249 
     242 * A hybrid of _n() and _x(). It supports contexts and plurals.
     243 *
     244 * @see _n()
     245 * @see _x()
     246 *
     247 */
    250248function _nx($single, $plural, $number, $context, $domain = 'default') {
    251249    $translations = &get_translations_for_domain( $domain );
Note: See TracChangeset for help on using the changeset viewer.